diff --git a/clients/big_query/lib/google_api/big_query/v2/api/datasets.ex b/clients/big_query/lib/google_api/big_query/v2/api/datasets.ex index 27ff6c8a28..0fb08f5c73 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/datasets.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/datasets.ex @@ -31,16 +31,20 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the dataset being deleted - * `dataset_id` (*type:* `String.t`) - Dataset ID of dataset being deleted + * `project_id` (*type:* `String.t`) - Required. Project ID of the dataset being deleted + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of dataset being deleted * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:deleteContents` (*type:* `boolean()`) - If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False * `opts` (*type:* `keyword()`) - Call options @@ -59,22 +63,26 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :deleteContents => :query } request = Request.new() |> Request.method(:delete) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -90,16 +98,21 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the requested dataset - * `dataset_id` (*type:* `String.t`) - Dataset ID of the requested dataset + * `project_id` (*type:* `String.t`) - Required. Project ID of the requested dataset + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the requested dataset * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:datasetView` (*type:* `String.t`) - Optional. Specifies the view that determines which dataset information is returned. By default, metadata and ACL information are returned. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -114,21 +127,26 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do | {:error, any()} def bigquery_datasets_get(connection, project_id, dataset_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query, + :datasetView => :query } request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -144,15 +162,19 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the new dataset + * `project_id` (*type:* `String.t`) - Required. Project ID of the new dataset * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Dataset.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -168,20 +190,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do | {:error, any()} def bigquery_datasets_insert(connection, project_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -193,23 +219,27 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do end @doc """ - Lists all datasets in the specified project to which you have been granted the READER dataset role. + Lists all datasets in the specified project to which the user has been granted the READER dataset role. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the datasets to be listed + * `project_id` (*type:* `String.t`) - Required. Project ID of the datasets to be listed * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:all` (*type:* `boolean()`) - Whether to list all datasets, including hidden ones - * `: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 for details. - * `:maxResults` (*type:* `integer()`) - The maximum number of results to return + * `: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](/bigquery/docs/labeling-datasets#filtering_datasets_using_labels) for details. + * `: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. * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results * `opts` (*type:* `keyword()`) - Call options @@ -225,13 +255,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do | {:error, any()} def bigquery_datasets_list(connection, project_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :all => :query, :filter => :query, :maxResults => :query, @@ -241,7 +275,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -253,21 +287,25 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do end @doc """ - Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics. + Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports RFC5789 patch semantics. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the dataset being updated - * `dataset_id` (*type:* `String.t`) - Dataset ID of the dataset being updated + * `project_id` (*type:* `String.t`) - Required. Project ID of the dataset being updated + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the dataset being updated * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Dataset.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -289,22 +327,102 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } request = Request.new() |> Request.method(:patch) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.BigQuery.V2.Model.Dataset{}]) + end + + @doc """ + Undeletes a dataset which is within time travel window based on datasetId. If a time is specified, the dataset version deleted at that time is undeleted, else the last live version is undeleted. + + ## Parameters + + * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server + * `project_id` (*type:* `String.t`) - Required. Project ID of the dataset to be undeleted + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of dataset being deleted + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.UndeleteDatasetRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.BigQuery.V2.Model.Dataset{}}` on success + * `{:error, info}` on failure + """ + @spec bigquery_datasets_undelete( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.BigQuery.V2.Model.Dataset.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def bigquery_datasets_undelete( + connection, + project_id, + dataset_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}:undelete", %{ + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -320,16 +438,20 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the dataset being updated - * `dataset_id` (*type:* `String.t`) - Dataset ID of the dataset being updated + * `project_id` (*type:* `String.t`) - Required. Project ID of the dataset being updated + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the dataset being updated * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Dataset.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -351,22 +473,26 @@ defmodule GoogleApi.BigQuery.V2.Api.Datasets do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } request = Request.new() |> Request.method(:put) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) diff --git a/clients/big_query/lib/google_api/big_query/v2/api/jobs.ex b/clients/big_query/lib/google_api/big_query/v2/api/jobs.ex index baab0e2039..724d9d33a3 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/jobs.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/jobs.ex @@ -31,17 +31,21 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - [Required] Project ID of the job to cancel - * `job_id` (*type:* `String.t`) - [Required] Job ID of the job to cancel + * `project_id` (*type:* `String.t`) - Required. Project ID of the job to cancel + * `job_id` (*type:* `String.t`) - Required. Job ID of the job to cancel * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:location` (*type:* `String.t`) - The geographic location of the job. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:location` (*type:* `String.t`) - The geographic location of the job. You must specify the location to run the job for the following scenarios: - If the location to run a job is not in the `us` or the `eu` multi-regional location - If the job's location is in a single region (for example, `us-central1`) For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -56,20 +60,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do | {:error, any()} def bigquery_jobs_cancel(connection, project_id, job_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :location => :query } request = Request.new() |> Request.method(:post) - |> Request.url("/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/jobs/{+jobId}/cancel", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), "jobId" => URI.encode(job_id, &URI.char_unreserved?/1) }) @@ -90,13 +98,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do * `project_id` (*type:* `String.t`) - Required. Project ID of the job for which metadata is to be deleted. * `job_id` (*type:* `String.t`) - Required. Job ID of the job for which metadata is to be deleted. If this is a parent job which has child jobs, the metadata from all child jobs will be deleted as well. Direct deletion of the metadata of child jobs is not allowed. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:location` (*type:* `String.t`) - The geographic location of the job. Required. See details at: https://cloud.google.com/bigquery/docs/locations#specifying_your_location. * `opts` (*type:* `keyword()`) - Call options @@ -109,13 +121,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} def bigquery_jobs_delete(connection, project_id, job_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :location => :query } @@ -140,17 +156,21 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - [Required] Project ID of the requested job - * `job_id` (*type:* `String.t`) - [Required] Job ID of the requested job + * `project_id` (*type:* `String.t`) - Required. Project ID of the requested job. + * `job_id` (*type:* `String.t`) - Required. Job ID of the requested job. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:location` (*type:* `String.t`) - The geographic location of the job. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:location` (*type:* `String.t`) - The geographic location of the job. You must specify the location to run the job for the following scenarios: - If the location to run a job is not in the `us` or the `eu` multi-regional location - If the job's location is in a single region (for example, `us-central1`) For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -165,22 +185,26 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do | {:error, any()} def bigquery_jobs_get(connection, project_id, job_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :location => :query } request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/jobs/{jobId}", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/jobs/{+jobId}", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "jobId" => URI.encode(job_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "jobId" => URI.encode(job_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -191,26 +215,31 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do end @doc """ - Retrieves the results of a query job. + RPC to get the results of a query job. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - [Required] Project ID of the query job - * `job_id` (*type:* `String.t`) - [Required] Job ID of the query job + * `project_id` (*type:* `String.t`) - Required. Project ID of the query job. + * `job_id` (*type:* `String.t`) - Required. Job ID of the query job. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:location` (*type:* `String.t`) - The geographic location where the job should run. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. - * `:maxResults` (*type:* `integer()`) - Maximum number of results to read - * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results - * `:startIndex` (*type:* `String.t`) - Zero-based index of the starting row - * `:timeoutMs` (*type:* `integer()`) - How long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes, the 'jobComplete' field in the response will be false + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:"formatOptions.useInt64Timestamp"` (*type:* `boolean()`) - Optional. Output timestamp as usec int64. Default is false. + * `:location` (*type:* `String.t`) - The geographic location of the job. You must specify the location to run the job for the following scenarios: - If the location to run a job is not in the `us` or the `eu` multi-regional location - If the job's location is in a single region (for example, `us-central1`) For more information, see https://cloud.google.com/bigquery/docs/locations#specifying_your_location. + * `:maxResults` (*type:* `integer()`) - Maximum number of results to read. + * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results. + * `:startIndex` (*type:* `String.t`) - Zero-based index of the starting row. + * `:timeoutMs` (*type:* `integer()`) - 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. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -237,13 +266,18 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, + :"formatOptions.useInt64Timestamp" => :query, :location => :query, :maxResults => :query, :pageToken => :query, @@ -254,9 +288,9 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/queries/{jobId}", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/queries/{+jobId}", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "jobId" => URI.encode(job_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "jobId" => URI.encode(job_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -267,20 +301,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do end @doc """ - Starts a new asynchronous job. Requires the Can View project role. + Starts a new asynchronous job. This API has two different kinds of endpoint URIs, as this method supports a variety of use cases. * The *Metadata* URI is used for most interactions, as it accepts the job configuration directly. * The *Upload* URI is ONLY for the case when you're sending both a load job configuration and a data stream together. In this case, the Upload URI accepts the job configuration and the data as two distinct multipart MIME parts. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the project that will be billed for the job + * `project_id` (*type:* `String.t`) - Project ID of project that will be billed for the job. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Job.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -296,20 +334,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do | {:error, any()} def bigquery_jobs_insert(connection, project_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/bigquery/v2/projects/{projectId}/jobs", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/jobs", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -321,23 +363,27 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do end @doc """ - Starts a new asynchronous job. Requires the Can View project role. + Starts a new asynchronous job. This API has two different kinds of endpoint URIs, as this method supports a variety of use cases. * The *Metadata* URI is used for most interactions, as it accepts the job configuration directly. * The *Upload* URI is ONLY for the case when you're sending both a load job configuration and a data stream together. In this case, the Upload URI accepts the job configuration and the data as two distinct multipart MIME parts. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the project that will be billed for the job + * `project_id` (*type:* `String.t`) - Project ID of project that will be billed for the job. * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". * `metadata` (*type:* `GoogleApi.BigQuery.V2.Model.Job.t`) - object metadata * `data` (*type:* `iodata`) - Content to upload, as a string or iolist * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -368,19 +414,23 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query } request = Request.new() |> Request.method(:post) - |> Request.url("/upload/bigquery/v2/projects/{projectId}/jobs", %{ + |> Request.url("/upload/bigquery/v2/projects/{+projectId}/jobs", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_param(:query, :uploadType, upload_type) @@ -395,21 +445,25 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do end @doc """ - Starts a new asynchronous job. Requires the Can View project role. + Starts a new asynchronous job. This API has two different kinds of endpoint URIs, as this method supports a variety of use cases. * The *Metadata* URI is used for most interactions, as it accepts the job configuration directly. * The *Upload* URI is ONLY for the case when you're sending both a load job configuration and a data stream together. In this case, the Upload URI accepts the job configuration and the data as two distinct multipart MIME parts. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the project that will be billed for the job + * `project_id` (*type:* `String.t`) - Project ID of project that will be billed for the job. * `upload_type` (*type:* `String.t`) - Upload type. Must be "resumable". * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Job.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -433,20 +487,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/resumable/upload/bigquery/v2/projects/{projectId}/jobs", %{ + |> Request.url("/resumable/upload/bigquery/v2/projects/{+projectId}/jobs", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_param(:query, :uploadType, upload_type) @@ -459,23 +517,27 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do end @doc """ - Starts a new asynchronous job. Requires the Can View project role. + Starts a new asynchronous job. This API has two different kinds of endpoint URIs, as this method supports a variety of use cases. * The *Metadata* URI is used for most interactions, as it accepts the job configuration directly. * The *Upload* URI is ONLY for the case when you're sending both a load job configuration and a data stream together. In this case, the Upload URI accepts the job configuration and the data as two distinct multipart MIME parts. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the project that will be billed for the job + * `project_id` (*type:* `String.t`) - Project ID of project that will be billed for the job. * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". * `metadata` (*type:* `GoogleApi.BigQuery.V2.Model.Job.t`) - object metadata * `data` (*type:* `String.t`) - Path to file containing content to upload * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -506,19 +568,23 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query } request = Request.new() |> Request.method(:post) - |> Request.url("/upload/bigquery/v2/projects/{projectId}/jobs", %{ + |> Request.url("/upload/bigquery/v2/projects/{+projectId}/jobs", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_param(:query, :uploadType, upload_type) @@ -538,21 +604,25 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the jobs to list + * `project_id` (*type:* `String.t`) - Project ID of the jobs to list. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:allUsers` (*type:* `boolean()`) - Whether to display jobs owned by all users in the project. Default false - * `:maxCreationTime` (*type:* `String.t`) - Max value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created before or at this timestamp are returned - * `:maxResults` (*type:* `integer()`) - Maximum number of results to return - * `:minCreationTime` (*type:* `String.t`) - Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned - * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results - * `:parentJobId` (*type:* `String.t`) - If set, retrieves only jobs whose parent is this job. Otherwise, retrieves only jobs which have no parent + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:allUsers` (*type:* `boolean()`) - Whether to display jobs owned by all users in the project. Default False. + * `:maxCreationTime` (*type:* `String.t`) - Max value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created before or at this timestamp are returned. + * `: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. + * `:minCreationTime` (*type:* `String.t`) - Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned. + * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results. + * `:parentJobId` (*type:* `String.t`) - If set, show only child jobs of the specified parent. Otherwise, show all top-level jobs. * `:projection` (*type:* `String.t`) - Restrict information returned to a set of selected fields * `:stateFilter` (*type:* `list(String.t)`) - Filter for job state * `opts` (*type:* `keyword()`) - Call options @@ -569,13 +639,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do | {:error, any()} def bigquery_jobs_list(connection, project_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :allUsers => :query, :maxCreationTime => :query, :maxResults => :query, @@ -589,7 +663,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/jobs", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/jobs", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -606,15 +680,19 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the project billed for the query + * `project_id` (*type:* `String.t`) - Required. Project ID of the query request. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.QueryRequest.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -630,20 +708,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Jobs do | {:error, any()} def bigquery_jobs_query(connection, project_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/bigquery/v2/projects/{projectId}/queries", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/queries", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) diff --git a/clients/big_query/lib/google_api/big_query/v2/api/models.ex b/clients/big_query/lib/google_api/big_query/v2/api/models.ex index 5fecc5d477..55d5391872 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/models.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/models.ex @@ -35,13 +35,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the model to delete. * `model_id` (*type:* `String.t`) - Required. Model ID of the model to delete. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -66,13 +70,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query } request = @@ -104,13 +112,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the requested model. * `model_id` (*type:* `String.t`) - Required. Model ID of the requested model. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -139,13 +151,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query } request = @@ -176,13 +192,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do * `project_id` (*type:* `String.t`) - Required. Project ID of the models to list. * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the models to list. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `: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. * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call to request the next page of results * `opts` (*type:* `keyword()`) - Call options @@ -199,13 +219,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do | {:error, any()} def bigquery_models_list(connection, project_id, dataset_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :maxResults => :query, :pageToken => :query } @@ -235,13 +259,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the model to patch. * `model_id` (*type:* `String.t`) - Required. Model ID of the model to patch. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Model.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -271,13 +299,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Models do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } diff --git a/clients/big_query/lib/google_api/big_query/v2/api/projects.ex b/clients/big_query/lib/google_api/big_query/v2/api/projects.ex index 2de605800d..5d18aec954 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/projects.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/projects.ex @@ -26,20 +26,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Projects do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Returns the email address of the service account for your project used for interactions with Google Cloud KMS. + RPC to get the service account for a project used for interactions with Google Cloud KMS ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID for which the service account is requested. + * `project_id` (*type:* `String.t`) - Required. ID of the project. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -64,19 +68,23 @@ defmodule GoogleApi.BigQuery.V2.Api.Projects do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query } request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/serviceAccount", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/serviceAccount", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -88,21 +96,25 @@ defmodule GoogleApi.BigQuery.V2.Api.Projects do end @doc """ - Lists all projects to which you have been granted any project role. + RPC to list projects to which the user has been granted any project role. Users of this method are encouraged to consider the [Resource Manager](https://cloud.google.com/resource-manager/docs/) API, which provides the underlying data for this method and has more capabilities. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:maxResults` (*type:* `integer()`) - Maximum number of results to return - * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:maxResults` (*type:* `integer()`) - `maxResults` unset returns all results, up to 50 per page. Additionally, the number of projects in a page may be fewer than `maxResults` because projects are retrieved and then filtered to only projects with the BigQuery API enabled. + * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results. If not present, no further pages are present. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -117,13 +129,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Projects do | {:error, any()} def bigquery_projects_list(connection, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :maxResults => :query, :pageToken => :query } diff --git a/clients/big_query/lib/google_api/big_query/v2/api/routines.ex b/clients/big_query/lib/google_api/big_query/v2/api/routines.ex index 47173d2727..40b4882914 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/routines.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/routines.ex @@ -35,13 +35,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the routine to delete * `routine_id` (*type:* `String.t`) - Required. Routine ID of the routine to delete * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -66,13 +70,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query } request = @@ -104,13 +112,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the requested routine * `routine_id` (*type:* `String.t`) - Required. Routine ID of the requested routine * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:readMask` (*type:* `String.t`) - If set, only the Routine fields in the field mask are returned in the response. If unset, all Routine fields are returned. * `opts` (*type:* `keyword()`) - Call options @@ -140,13 +152,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :readMask => :query } @@ -178,13 +194,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do * `project_id` (*type:* `String.t`) - Required. Project ID of the new routine * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the new routine * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Routine.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -206,13 +226,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } @@ -240,14 +264,18 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do * `project_id` (*type:* `String.t`) - Required. Project ID of the routines to list * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the routines to list * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:filter` (*type:* `String.t`) - If set, then only the Routines matching this filter are returned. The current supported form is either "routine_type:" or "routineType:", where is a RoutineType enum. Example: "routineType:SCALAR_FUNCTION". + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - If set, then only the Routines matching this filter are returned. The supported format is `routineType:{RoutineType}`, where `{RoutineType}` is a RoutineType enum. For example: `routineType:SCALAR_FUNCTION`. * `: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. * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results * `:readMask` (*type:* `String.t`) - If set, then only the Routine fields in the field mask, as well as project_id, dataset_id and routine_id, are returned in the response. If unset, then the following Routine fields are returned: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language. @@ -271,13 +299,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :filter => :query, :maxResults => :query, :pageToken => :query, @@ -309,13 +341,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the routine to update * `routine_id` (*type:* `String.t`) - Required. Routine ID of the routine to update * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Routine.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -345,13 +381,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Routines do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } diff --git a/clients/big_query/lib/google_api/big_query/v2/api/row_access_policies.ex b/clients/big_query/lib/google_api/big_query/v2/api/row_access_policies.ex index 79ec3a370f..1de62e8b77 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/row_access_policies.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/row_access_policies.ex @@ -33,13 +33,17 @@ defmodule GoogleApi.BigQuery.V2.Api.RowAccessPolicies do * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.GetIamPolicyRequest.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -65,13 +69,17 @@ defmodule GoogleApi.BigQuery.V2.Api.RowAccessPolicies do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } @@ -99,13 +107,17 @@ defmodule GoogleApi.BigQuery.V2.Api.RowAccessPolicies do * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of row access policies to list. * `table_id` (*type:* `String.t`) - Required. Table ID of the table to list row access policies. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:pageSize` (*type:* `integer()`) - The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection. * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results. * `opts` (*type:* `keyword()`) - Call options @@ -136,13 +148,17 @@ defmodule GoogleApi.BigQuery.V2.Api.RowAccessPolicies do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :pageSize => :query, :pageToken => :query } @@ -168,70 +184,6 @@ defmodule GoogleApi.BigQuery.V2.Api.RowAccessPolicies do ) end - @doc """ - Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - - ## Parameters - - * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. - * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. - * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. - * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. - * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.SetIamPolicyRequest.t`) - - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.BigQuery.V2.Model.Policy{}}` on success - * `{:error, info}` on failure - """ - @spec bigquery_row_access_policies_set_iam_policy( - Tesla.Env.client(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.BigQuery.V2.Model.Policy.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def bigquery_row_access_policies_set_iam_policy( - connection, - resource, - optional_params \\ [], - opts \\ [] - ) do - optional_params_config = %{ - :alt => :query, - :fields => :query, - :key => :query, - :oauth_token => :query, - :prettyPrint => :query, - :quotaUser => :query, - :userIp => :query, - :body => :body - } - - request = - Request.new() - |> Request.method(:post) - |> Request.url("/bigquery/v2/{+resource}:setIamPolicy", %{ - "resource" => URI.encode(resource, &URI.char_unreserved?/1) - }) - |> Request.add_optional_params(optional_params_config, optional_params) - |> Request.library_version(@library_version) - - connection - |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.BigQuery.V2.Model.Policy{}]) - end - @doc """ 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. @@ -240,13 +192,17 @@ defmodule GoogleApi.BigQuery.V2.Api.RowAccessPolicies do * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.TestIamPermissionsRequest.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -272,13 +228,17 @@ defmodule GoogleApi.BigQuery.V2.Api.RowAccessPolicies do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } diff --git a/clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex b/clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex index 1000f0297d..a695ab5d50 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/tabledata.ex @@ -26,22 +26,26 @@ defmodule GoogleApi.BigQuery.V2.Api.Tabledata do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Streams data into BigQuery one record at a time without needing to run a load job. Requires the WRITER dataset role. + Streams data into BigQuery one record at a time without needing to run a load job. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the destination table. - * `dataset_id` (*type:* `String.t`) - Dataset ID of the destination table. - * `table_id` (*type:* `String.t`) - Table ID of the destination table. + * `project_id` (*type:* `String.t`) - Required. Project ID of the destination. + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the destination. + * `table_id` (*type:* `String.t`) - Required. Table ID of the destination. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequest.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -71,13 +75,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tabledata do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } @@ -85,7 +93,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Tabledata do Request.new() |> Request.method(:post) |> Request.url( - "/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll", + "/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/insertAll", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), @@ -103,26 +111,31 @@ defmodule GoogleApi.BigQuery.V2.Api.Tabledata do end @doc """ - Retrieves table data from a specified set of rows. Requires the READER dataset role. + List the content of a table in rows. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the table to read - * `dataset_id` (*type:* `String.t`) - Dataset ID of the table to read - * `table_id` (*type:* `String.t`) - Table ID of the table to read + * `project_id` (*type:* `String.t`) - Required. Project id of the table to list. + * `dataset_id` (*type:* `String.t`) - Required. Dataset id of the table to list. + * `table_id` (*type:* `String.t`) - Required. Table id of the table to list. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:maxResults` (*type:* `integer()`) - Maximum number of results to return - * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, identifying the result set - * `:selectedFields` (*type:* `String.t`) - List of fields to return (comma-separated). If unspecified, all fields are returned - * `:startIndex` (*type:* `String.t`) - Zero-based index of the starting row to read + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:"formatOptions.useInt64Timestamp"` (*type:* `boolean()`) - Optional. Output timestamp as usec int64. Default is false. + * `:maxResults` (*type:* `integer()`) - Row limit of the table. + * `:pageToken` (*type:* `String.t`) - To retrieve the next page of table data, set this field to the string provided in the pageToken field of the response body from your previous call to tabledata.list. + * `:selectedFields` (*type:* `String.t`) - Subset of fields to return, supports select into sub fields. Example: selected_fields = "a,e.d.f"; + * `:startIndex` (*type:* `String.t`) - Start row index of the table. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -151,13 +164,18 @@ defmodule GoogleApi.BigQuery.V2.Api.Tabledata do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, + :"formatOptions.useInt64Timestamp" => :query, :maxResults => :query, :pageToken => :query, :selectedFields => :query, @@ -168,7 +186,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Tabledata do Request.new() |> Request.method(:get) |> Request.url( - "/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data", + "/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/data", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), diff --git a/clients/big_query/lib/google_api/big_query/v2/api/tables.ex b/clients/big_query/lib/google_api/big_query/v2/api/tables.ex index 60072db75a..5aa61d6ba0 100644 --- a/clients/big_query/lib/google_api/big_query/v2/api/tables.ex +++ b/clients/big_query/lib/google_api/big_query/v2/api/tables.ex @@ -31,17 +31,21 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the table to delete - * `dataset_id` (*type:* `String.t`) - Dataset ID of the table to delete - * `table_id` (*type:* `String.t`) - Table ID of the table to delete + * `project_id` (*type:* `String.t`) - Required. Project ID of the table to delete + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the table to delete + * `table_id` (*type:* `String.t`) - Required. Table ID of the table to delete * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -66,23 +70,30 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query + :uploadType => :query, + :upload_protocol => :query } request = Request.new() |> Request.method(:delete) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}", %{ - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), - "tableId" => URI.encode(table_id, &(URI.char_unreserved?(&1) || &1 == ?/)) - }) + |> Request.url( + "/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}", + %{ + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), + "tableId" => URI.encode(table_id, &URI.char_unreserved?/1) + } + ) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -97,19 +108,23 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the requested table - * `dataset_id` (*type:* `String.t`) - Dataset ID of the requested table - * `table_id` (*type:* `String.t`) - Table ID of the requested table + * `project_id` (*type:* `String.t`) - Required. Project ID of the requested table + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the requested table + * `table_id` (*type:* `String.t`) - Required. Table ID of the requested table * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:selectedFields` (*type:* `String.t`) - List of fields to return (comma-separated). If unspecified, all fields are returned - * `:view` (*type:* `String.t`) - Specifies the view that determines which table information is returned. By default, basic table information and storage statistics (STORAGE_STATS) are returned. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:selectedFields` (*type:* `String.t`) - List of table schema fields to return (comma-separated). If unspecified, all fields are returned. A fieldMask cannot be used here because the fields will automatically be converted from camelCase to snake_case and the conversion will fail if there are underscores. Since these are fields in BigQuery table schemas, underscores are allowed. + * `:view` (*type:* `String.t`) - Optional. Specifies the view that determines which table information is returned. By default, basic table information and storage statistics (STORAGE_STATS) are returned. * `opts` (*type:* `keyword()`) - Call options ## Returns @@ -138,13 +153,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :selectedFields => :query, :view => :query } @@ -152,11 +171,14 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}", %{ - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), - "tableId" => URI.encode(table_id, &(URI.char_unreserved?(&1) || &1 == ?/)) - }) + |> Request.url( + "/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}", + %{ + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), + "tableId" => URI.encode(table_id, &URI.char_unreserved?/1) + } + ) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -173,13 +195,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.GetIamPolicyRequest.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -195,13 +221,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do | {:error, any()} def bigquery_tables_get_iam_policy(connection, resource, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } @@ -225,16 +255,20 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the new table - * `dataset_id` (*type:* `String.t`) - Dataset ID of the new table + * `project_id` (*type:* `String.t`) - Required. Project ID of the new table + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the new table * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Table.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -256,20 +290,24 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1) }) @@ -287,17 +325,21 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the tables to list - * `dataset_id` (*type:* `String.t`) - Dataset ID of the tables to list + * `project_id` (*type:* `String.t`) - Required. Project ID of the tables to list + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the tables to list * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:maxResults` (*type:* `integer()`) - Maximum number of results to return + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `: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. * `:pageToken` (*type:* `String.t`) - Page token, returned by a previous call, to request the next page of results * `opts` (*type:* `keyword()`) - Call options @@ -313,13 +355,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do | {:error, any()} def bigquery_tables_list(connection, project_id, dataset_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :maxResults => :query, :pageToken => :query } @@ -327,7 +373,7 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do request = Request.new() |> Request.method(:get) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables", %{ + |> Request.url("/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables", %{ "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1) }) @@ -340,23 +386,27 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do end @doc """ - Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics. + Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports RFC5789 patch semantics. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the table to update - * `dataset_id` (*type:* `String.t`) - Dataset ID of the table to update - * `table_id` (*type:* `String.t`) - Table ID of the table to update + * `project_id` (*type:* `String.t`) - Required. Project ID of the table to update + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the table to update + * `table_id` (*type:* `String.t`) - Required. Table ID of the table to update * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:autodetect_schema` (*type:* `boolean()`) - When true will autodetect schema, else will keep original schema + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:autodetect_schema` (*type:* `boolean()`) - Optional. When true will autodetect schema, else will keep original schema * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Table.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -386,13 +436,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :autodetect_schema => :query, :body => :body } @@ -400,11 +454,14 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do request = Request.new() |> Request.method(:patch) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}", %{ - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), - "tableId" => URI.encode(table_id, &(URI.char_unreserved?(&1) || &1 == ?/)) - }) + |> Request.url( + "/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}", + %{ + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), + "tableId" => URI.encode(table_id, &URI.char_unreserved?/1) + } + ) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -421,13 +478,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.SetIamPolicyRequest.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -443,13 +504,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do | {:error, any()} def bigquery_tables_set_iam_policy(connection, resource, optional_params \\ [], opts \\ []) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } @@ -475,13 +540,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server * `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.TestIamPermissionsRequest.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -502,13 +571,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :body => :body } @@ -529,23 +602,27 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do end @doc """ - Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. + Updates information in an existing table. The update method replaces the entire Table resource, whereas the patch method only replaces fields that are provided in the submitted Table resource. ## Parameters * `connection` (*type:* `GoogleApi.BigQuery.V2.Connection.t`) - Connection to server - * `project_id` (*type:* `String.t`) - Project ID of the table to update - * `dataset_id` (*type:* `String.t`) - Dataset ID of the table to update - * `table_id` (*type:* `String.t`) - Table ID of the table to update + * `project_id` (*type:* `String.t`) - Required. Project ID of the table to update + * `dataset_id` (*type:* `String.t`) - Required. Dataset ID of the table to update + * `table_id` (*type:* `String.t`) - Required. Table ID of the table to update * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:alt` (*type:* `String.t`) - Data format for the response. + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters. - * `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead. - * `:autodetect_schema` (*type:* `boolean()`) - When true will autodetect schema, else will keep original schema + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:autodetect_schema` (*type:* `boolean()`) - Optional. When true will autodetect schema, else will keep original schema * `:body` (*type:* `GoogleApi.BigQuery.V2.Model.Table.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -575,13 +652,17 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do opts \\ [] ) do optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, :alt => :query, + :callback => :query, :fields => :query, :key => :query, :oauth_token => :query, :prettyPrint => :query, :quotaUser => :query, - :userIp => :query, + :uploadType => :query, + :upload_protocol => :query, :autodetect_schema => :query, :body => :body } @@ -589,11 +670,14 @@ defmodule GoogleApi.BigQuery.V2.Api.Tables do request = Request.new() |> Request.method(:put) - |> Request.url("/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}", %{ - "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), - "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), - "tableId" => URI.encode(table_id, &(URI.char_unreserved?(&1) || &1 == ?/)) - }) + |> Request.url( + "/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}", + %{ + "projectId" => URI.encode(project_id, &URI.char_unreserved?/1), + "datasetId" => URI.encode(dataset_id, &URI.char_unreserved?/1), + "tableId" => URI.encode(table_id, &URI.char_unreserved?/1) + } + ) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) diff --git a/clients/big_query/lib/google_api/big_query/v2/metadata.ex b/clients/big_query/lib/google_api/big_query/v2/metadata.ex index b222f247ce..e547e488c8 100644 --- a/clients/big_query/lib/google_api/big_query/v2/metadata.ex +++ b/clients/big_query/lib/google_api/big_query/v2/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.BigQuery.V2 do API client metadata for GoogleApi.BigQuery.V2. """ - @discovery_revision "20221015" + @discovery_revision "20240229" def discovery_revision(), do: @discovery_revision end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/aggregation_threshold_policy.ex b/clients/big_query/lib/google_api/big_query/v2/model/aggregation_threshold_policy.ex new file mode 100644 index 0000000000..8640eb8822 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/aggregation_threshold_policy.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.AggregationThresholdPolicy do + @moduledoc """ + Represents privacy policy associated with "aggregation threshold" method. + + ## Attributes + + * `privacyUnitColumns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The privacy unit column(s) associated with this policy. For now, only one column per data source object (table, view) is allowed as a privacy unit column. Representing as a repeated field in metadata for extensibility to multiple columns in future. Duplicates and Repeated struct fields are not allowed. For nested fields, use dot notation ("outer.inner") + * `threshold` (*type:* `String.t`, *default:* `nil`) - Optional. The threshold for the "aggregation threshold" policy. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :privacyUnitColumns => list(String.t()) | nil, + :threshold => String.t() | nil + } + + field(:privacyUnitColumns, type: :list) + field(:threshold) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.AggregationThresholdPolicy do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.AggregationThresholdPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.AggregationThresholdPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/argument.ex b/clients/big_query/lib/google_api/big_query/v2/model/argument.ex index a0a0f37a16..8ff1fd4cd0 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/argument.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/argument.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.BigQuery.V2.Model.Argument do * `argumentKind` (*type:* `String.t`, *default:* `nil`) - Optional. Defaults to FIXED_TYPE. * `dataType` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t`, *default:* `nil`) - Required unless argument_kind = ANY_TYPE. + * `isAggregate` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether the argument is an aggregate function parameter. Must be Unset for routine types other than AGGREGATE_FUNCTION. For AGGREGATE_FUNCTION, if set to false, it is equivalent to adding "NOT AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT AGGREGATE" clause in DDL. * `mode` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies whether the argument is input or output. Can be set for procedures only. * `name` (*type:* `String.t`, *default:* `nil`) - Optional. The name of this argument. Can be absent for function return argument. """ @@ -32,12 +33,14 @@ defmodule GoogleApi.BigQuery.V2.Model.Argument do @type t :: %__MODULE__{ :argumentKind => String.t() | nil, :dataType => GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t() | nil, + :isAggregate => boolean() | nil, :mode => String.t() | nil, :name => String.t() | nil } field(:argumentKind) field(:dataType, as: GoogleApi.BigQuery.V2.Model.StandardSqlDataType) + field(:isAggregate) field(:mode) field(:name) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/avro_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/avro_options.ex index c6199de030..be03b6af36 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/avro_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/avro_options.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.AvroOptions do @moduledoc """ - + Options for external data sources. ## Attributes - * `useAvroLogicalTypes` (*type:* `boolean()`, *default:* `nil`) - [Optional] If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). + * `useAvroLogicalTypes` (*type:* `boolean()`, *default:* `nil`) - Optional. If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_reason.ex b/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_reason.ex index 5061497a48..85eb33fa61 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_reason.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_reason.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.BiEngineReason do @moduledoc """ - + Reason why BI Engine didn't accelerate the query (or sub-query). ## Attributes - * `code` (*type:* `String.t`, *default:* `$(reason.code)`) - [Output-only] High-level BI Engine reason for partial or disabled acceleration. - * `message` (*type:* `String.t`, *default:* `$(reason.message)`) - [Output-only] Free form human-readable reason for partial or disabled acceleration. + * `code` (*type:* `String.t`, *default:* `nil`) - Output only. High-level BI Engine reason for partial or disabled acceleration + * `message` (*type:* `String.t`, *default:* `nil`) - Output only. Free form human-readable reason for partial or disabled acceleration. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_statistics.ex index 06715b31e3..6c58c0fad2 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bi_engine_statistics.ex @@ -17,21 +17,24 @@ defmodule GoogleApi.BigQuery.V2.Model.BiEngineStatistics do @moduledoc """ - + Statistics for a BI Engine specific query. Populated as part of JobStatistics2 ## Attributes - * `biEngineMode` (*type:* `String.t`, *default:* `$(stats.bi_engine_mode)`) - [Output-only] Specifies which mode of BI Engine acceleration was performed (if any). + * `accelerationMode` (*type:* `String.t`, *default:* `nil`) - Output only. Specifies which mode of BI Engine acceleration was performed (if any). + * `biEngineMode` (*type:* `String.t`, *default:* `nil`) - Output only. Specifies which mode of BI Engine acceleration was performed (if any). * `biEngineReasons` (*type:* `list(GoogleApi.BigQuery.V2.Model.BiEngineReason.t)`, *default:* `nil`) - In case of DISABLED or PARTIAL bi_engine_mode, these contain the explanatory reasons as to why BI Engine could not accelerate. In case the full query was accelerated, this field is not populated. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :accelerationMode => String.t() | nil, :biEngineMode => String.t() | nil, :biEngineReasons => list(GoogleApi.BigQuery.V2.Model.BiEngineReason.t()) | nil } + field(:accelerationMode) field(:biEngineMode) field(:biEngineReasons, as: GoogleApi.BigQuery.V2.Model.BiEngineReason, type: :list) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/big_lake_configuration.ex b/clients/big_query/lib/google_api/big_query/v2/model/big_lake_configuration.ex new file mode 100644 index 0000000000..b55117ffbb --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/big_lake_configuration.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.BigLakeConfiguration do + @moduledoc """ + Configuration for BigLake managed tables. + + ## Attributes + + * `connectionId` (*type:* `String.t`, *default:* `nil`) - Required. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection_id can have the form ".." or "projects//locations//connections/". + * `fileFormat` (*type:* `String.t`, *default:* `nil`) - Required. The file format the table data is stored in. + * `storageUri` (*type:* `String.t`, *default:* `nil`) - Required. The fully qualified location prefix of the external folder where table data is stored. The '*' wildcard character is not allowed. The URI should be in the format "gs://bucket/path_to_table/" + * `tableFormat` (*type:* `String.t`, *default:* `nil`) - Required. The table format the metadata only snapshots are stored in. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connectionId => String.t() | nil, + :fileFormat => String.t() | nil, + :storageUri => String.t() | nil, + :tableFormat => String.t() | nil + } + + field(:connectionId) + field(:fileFormat) + field(:storageUri) + field(:tableFormat) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.BigLakeConfiguration do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.BigLakeConfiguration.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.BigLakeConfiguration do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/big_query_model_training.ex b/clients/big_query/lib/google_api/big_query/v2/model/big_query_model_training.ex index ba2cc17a2a..234c2a78fb 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/big_query_model_training.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/big_query_model_training.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.BigQuery.V2.Model.BigQueryModelTraining do ## Attributes - * `currentIteration` (*type:* `integer()`, *default:* `nil`) - [Output-only, Beta] Index of current ML training iteration. Updated during create model query job to show job progress. - * `expectedTotalIterations` (*type:* `String.t`, *default:* `nil`) - [Output-only, Beta] Expected number of iterations for the create model query job specified as num_iterations in the input query. The actual total number of iterations may be less than this number due to early stop. + * `currentIteration` (*type:* `integer()`, *default:* `nil`) - Deprecated. + * `expectedTotalIterations` (*type:* `String.t`, *default:* `nil`) - Deprecated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex b/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex index aed6c02960..d674a7e4e8 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column.ex @@ -17,16 +17,16 @@ defmodule GoogleApi.BigQuery.V2.Model.BigtableColumn do @moduledoc """ - + Information related to a Bigtable column. ## Attributes - * `encoding` (*type:* `String.t`, *default:* `nil`) - [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. 'encoding' can also be set at the column family level. However, the setting at this level takes precedence if 'encoding' is set at both levels. - * `fieldName` (*type:* `String.t`, *default:* `nil`) - [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries. - * `onlyReadLatest` (*type:* `boolean()`, *default:* `nil`) - [Optional] If this is set, only the latest version of value in this column are exposed. 'onlyReadLatest' can also be set at the column family level. However, the setting at this level takes precedence if 'onlyReadLatest' is set at both levels. - * `qualifierEncoded` (*type:* `String.t`, *default:* `nil`) - [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name. - * `qualifierString` (*type:* `String.t`, *default:* `nil`) - - * `type` (*type:* `String.t`, *default:* `nil`) - [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels. + * `encoding` (*type:* `String.t`, *default:* `nil`) - Optional. The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. 'encoding' can also be set at the column family level. However, the setting at this level takes precedence if 'encoding' is set at both levels. + * `fieldName` (*type:* `String.t`, *default:* `nil`) - Optional. If the qualifier is not a valid BigQuery field identifier i.e. does not match a-zA-Z*, a valid identifier must be provided as the column field name and is used as field name in queries. + * `onlyReadLatest` (*type:* `boolean()`, *default:* `nil`) - Optional. If this is set, only the latest version of value in this column are exposed. 'onlyReadLatest' can also be set at the column family level. However, the setting at this level takes precedence if 'onlyReadLatest' is set at both levels. + * `qualifierEncoded` (*type:* `String.t`, *default:* `nil`) - [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match a-zA-Z*, a valid identifier must be provided as field_name. + * `qualifierString` (*type:* `String.t`, *default:* `nil`) - Qualifier string. + * `type` (*type:* `String.t`, *default:* `nil`) - Optional. The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON Default type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column_family.ex b/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column_family.ex index b15293ffb3..fa869c4fc2 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column_family.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bigtable_column_family.ex @@ -17,15 +17,15 @@ defmodule GoogleApi.BigQuery.V2.Model.BigtableColumnFamily do @moduledoc """ - + Information related to a Bigtable column family. ## Attributes - * `columns` (*type:* `list(GoogleApi.BigQuery.V2.Model.BigtableColumn.t)`, *default:* `nil`) - [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field. - * `encoding` (*type:* `String.t`, *default:* `nil`) - [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in 'columns' and specifying an encoding for it. + * `columns` (*type:* `list(GoogleApi.BigQuery.V2.Model.BigtableColumn.t)`, *default:* `nil`) - Optional. Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field. + * `encoding` (*type:* `String.t`, *default:* `nil`) - Optional. The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in 'columns' and specifying an encoding for it. * `familyId` (*type:* `String.t`, *default:* `nil`) - Identifier of the column family. - * `onlyReadLatest` (*type:* `boolean()`, *default:* `nil`) - [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in 'columns' and specifying a different setting for that column. - * `type` (*type:* `String.t`, *default:* `nil`) - [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it. + * `onlyReadLatest` (*type:* `boolean()`, *default:* `nil`) - Optional. If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in 'columns' and specifying a different setting for that column. + * `type` (*type:* `String.t`, *default:* `nil`) - Optional. The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON Default type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bigtable_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/bigtable_options.ex index 045de18d43..9c7f3e3ce7 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bigtable_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bigtable_options.ex @@ -17,13 +17,14 @@ defmodule GoogleApi.BigQuery.V2.Model.BigtableOptions do @moduledoc """ - + Options specific to Google Cloud Bigtable data sources. ## Attributes - * `columnFamilies` (*type:* `list(GoogleApi.BigQuery.V2.Model.BigtableColumnFamily.t)`, *default:* `nil`) - [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the 'type' field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable. - * `ignoreUnspecifiedColumnFamilies` (*type:* `boolean()`, *default:* `nil`) - [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false. - * `readRowkeyAsString` (*type:* `boolean()`, *default:* `nil`) - [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false. + * `columnFamilies` (*type:* `list(GoogleApi.BigQuery.V2.Model.BigtableColumnFamily.t)`, *default:* `nil`) - Optional. List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the 'type' field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable. + * `ignoreUnspecifiedColumnFamilies` (*type:* `boolean()`, *default:* `nil`) - Optional. If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false. + * `outputColumnFamiliesAsJson` (*type:* `boolean()`, *default:* `nil`) - Optional. If field is true, then each column family will be read as a single JSON column. Otherwise they are read as a repeated cell structure containing timestamp/value tuples. The default value is false. + * `readRowkeyAsString` (*type:* `boolean()`, *default:* `nil`) - Optional. If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false. """ use GoogleApi.Gax.ModelBase @@ -31,11 +32,13 @@ defmodule GoogleApi.BigQuery.V2.Model.BigtableOptions do @type t :: %__MODULE__{ :columnFamilies => list(GoogleApi.BigQuery.V2.Model.BigtableColumnFamily.t()) | nil, :ignoreUnspecifiedColumnFamilies => boolean() | nil, + :outputColumnFamiliesAsJson => boolean() | nil, :readRowkeyAsString => boolean() | nil } field(:columnFamilies, as: GoogleApi.BigQuery.V2.Model.BigtableColumnFamily, type: :list) field(:ignoreUnspecifiedColumnFamilies) + field(:outputColumnFamiliesAsJson) field(:readRowkeyAsString) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/binding.ex b/clients/big_query/lib/google_api/big_query/v2/model/binding.ex index 66322dfc59..dd4a209b3d 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/binding.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.BigQuery.V2.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.BigQuery.V2.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. + * `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bqml_iteration_result.ex b/clients/big_query/lib/google_api/big_query/v2/model/bqml_iteration_result.ex index 5f7977dfc5..a6d78881cb 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bqml_iteration_result.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bqml_iteration_result.ex @@ -21,11 +21,11 @@ defmodule GoogleApi.BigQuery.V2.Model.BqmlIterationResult do ## Attributes - * `durationMs` (*type:* `String.t`, *default:* `nil`) - [Output-only, Beta] Time taken to run the training iteration in milliseconds. - * `evalLoss` (*type:* `float()`, *default:* `nil`) - [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows. - * `index` (*type:* `integer()`, *default:* `nil`) - [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run. - * `learnRate` (*type:* `float()`, *default:* `nil`) - [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant. - * `trainingLoss` (*type:* `float()`, *default:* `nil`) - [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type. + * `durationMs` (*type:* `String.t`, *default:* `nil`) - Deprecated. + * `evalLoss` (*type:* `float()`, *default:* `nil`) - Deprecated. + * `index` (*type:* `integer()`, *default:* `nil`) - Deprecated. + * `learnRate` (*type:* `float()`, *default:* `nil`) - Deprecated. + * `trainingLoss` (*type:* `float()`, *default:* `nil`) - Deprecated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run.ex b/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run.ex index b81b0db6e9..490ddbb5cd 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run.ex @@ -21,10 +21,10 @@ defmodule GoogleApi.BigQuery.V2.Model.BqmlTrainingRun do ## Attributes - * `iterationResults` (*type:* `list(GoogleApi.BigQuery.V2.Model.BqmlIterationResult.t)`, *default:* `nil`) - [Output-only, Beta] List of each iteration results. - * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - [Output-only, Beta] Training run start time in milliseconds since the epoch. - * `state` (*type:* `String.t`, *default:* `nil`) - [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user. - * `trainingOptions` (*type:* `GoogleApi.BigQuery.V2.Model.BqmlTrainingRunTrainingOptions.t`, *default:* `nil`) - [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run. + * `iterationResults` (*type:* `list(GoogleApi.BigQuery.V2.Model.BqmlIterationResult.t)`, *default:* `nil`) - Deprecated. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Deprecated. + * `state` (*type:* `String.t`, *default:* `nil`) - Deprecated. + * `trainingOptions` (*type:* `GoogleApi.BigQuery.V2.Model.BqmlTrainingRunTrainingOptions.t`, *default:* `nil`) - Deprecated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run_training_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run_training_options.ex index b606cda591..e50bd2e4bc 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run_training_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/bqml_training_run_training_options.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.BqmlTrainingRunTrainingOptions do @moduledoc """ - [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run. + Deprecated. ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/clone_definition.ex b/clients/big_query/lib/google_api/big_query/v2/model/clone_definition.ex index 9304b1cc07..1c696fe70a 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/clone_definition.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/clone_definition.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.CloneDefinition do @moduledoc """ - + Information about base table and clone time of a table clone. ## Attributes - * `baseTableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Required] Reference describing the ID of the table that was cloned. - * `cloneTime` (*type:* `DateTime.t`, *default:* `nil`) - [Required] The time at which the base table was cloned. This value is reported in the JSON response using RFC3339 format. + * `baseTableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Required. Reference describing the ID of the table that was cloned. + * `cloneTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The time at which the base table was cloned. This value is reported in the JSON response using RFC3339 format. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/clustering.ex b/clients/big_query/lib/google_api/big_query/v2/model/clustering.ex index b8d97f9551..8c88595ad7 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/clustering.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/clustering.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.Clustering do @moduledoc """ - + Configures table clustering. ## Attributes - * `fields` (*type:* `list(String.t)`, *default:* `nil`) - [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data. + * `fields` (*type:* `list(String.t)`, *default:* `nil`) - One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. The ordering of the clustering fields should be prioritized from most to least important for filtering purposes. Additional information on limitations can be found here: https://cloud.google.com/bigquery/docs/creating-clustered-tables#limitations """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/connection_property.ex b/clients/big_query/lib/google_api/big_query/v2/model/connection_property.ex index f3c29dbfb2..e639a7417f 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/connection_property.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/connection_property.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.ConnectionProperty do @moduledoc """ - + A connection-level property to customize query behavior. Under JDBC, these correspond directly to connection properties passed to the DriverManager. Under ODBC, these correspond to properties in the connection string. Currently supported connection properties: * **dataset_project_id**: represents the default project for datasets that are used in the query. Setting the system variable `@@dataset_project_id` achieves the same behavior. For more information about system variables, see: https://cloud.google.com/bigquery/docs/reference/system-variables * **time_zone**: represents the default timezone used to run the query. * **session_id**: associates the query with a given session. * **query_label**: associates the query with a given job label. If set, all subsequent queries in a script or session will have this label. For the format in which a you can specify a query label, see labels in the JobConfiguration resource type: https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfiguration Additional properties are allowed, but ignored. Specifying multiple connection properties with the same key returns an error. ## Attributes - * `key` (*type:* `String.t`, *default:* `nil`) - [Required] Name of the connection property to set. - * `value` (*type:* `String.t`, *default:* `nil`) - [Required] Value of the connection property. + * `key` (*type:* `String.t`, *default:* `nil`) - The key of the property to set. + * `value` (*type:* `String.t`, *default:* `nil`) - The value of the property to set. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/csv_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/csv_options.ex index ccafd850aa..a86c01ee2f 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/csv_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/csv_options.ex @@ -17,18 +17,18 @@ defmodule GoogleApi.BigQuery.V2.Model.CsvOptions do @moduledoc """ - + Information related to a CSV data source. ## Attributes - * `allowJaggedRows` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. - * `allowQuotedNewlines` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. - * `encoding` (*type:* `String.t`, *default:* `nil`) - [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties. - * `fieldDelimiter` (*type:* `String.t`, *default:* `nil`) - [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\\t" to specify a tab separator. The default value is a comma (','). - * `null_marker` (*type:* `String.t`, *default:* `nil`) - [Optional] An custom string that will represent a NULL value in CSV import data. - * `preserveAsciiControlCharacters` (*type:* `boolean()`, *default:* `nil`) - [Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\\x00' to '\\x1F') when loading from CSV. Only applicable to CSV, ignored for other formats. - * `quote` (*type:* `String.t`, *default:* `"`) - [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. - * `skipLeadingRows` (*type:* `String.t`, *default:* `nil`) - [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. + * `allowJaggedRows` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. + * `allowQuotedNewlines` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. + * `encoding` (*type:* `String.t`, *default:* `nil`) - Optional. The character encoding of the data. The supported values are UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties. + * `fieldDelimiter` (*type:* `String.t`, *default:* `nil`) - Optional. The separator character for fields in a CSV file. The separator is interpreted as a single byte. For files encoded in ISO-8859-1, any single character can be used as a separator. For files encoded in UTF-8, characters represented in decimal range 1-127 (U+0001-U+007F) can be used without any modification. UTF-8 characters encoded with multiple bytes (i.e. U+0080 and above) will have only the first byte used for separating fields. The remaining bytes will be treated as a part of the field. BigQuery also supports the escape sequence "\\t" (U+0009) to specify a tab separator. The default value is comma (",", U+002C). + * `nullMarker` (*type:* `String.t`, *default:* `nil`) - [Optional] A custom string that will represent a NULL value in CSV import data. + * `preserveAsciiControlCharacters` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\\x00' to '\\x1F') are preserved. + * `quote` (*type:* `String.t`, *default:* `"`) - Optional. The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ("). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. To include the specific quote character within a quoted value, precede it with an additional matching quote character. For example, if you want to escape the default character ' " ', use ' "" '. + * `skipLeadingRows` (*type:* `String.t`, *default:* `nil`) - Optional. The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. """ use GoogleApi.Gax.ModelBase @@ -38,7 +38,7 @@ defmodule GoogleApi.BigQuery.V2.Model.CsvOptions do :allowQuotedNewlines => boolean() | nil, :encoding => String.t() | nil, :fieldDelimiter => String.t() | nil, - :null_marker => String.t() | nil, + :nullMarker => String.t() | nil, :preserveAsciiControlCharacters => boolean() | nil, :quote => String.t() | nil, :skipLeadingRows => String.t() | nil @@ -48,7 +48,7 @@ defmodule GoogleApi.BigQuery.V2.Model.CsvOptions do field(:allowQuotedNewlines) field(:encoding) field(:fieldDelimiter) - field(:null_marker) + field(:nullMarker) field(:preserveAsciiControlCharacters) field(:quote) field(:skipLeadingRows) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/data_format_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/data_format_options.ex new file mode 100644 index 0000000000..f60e0f15b1 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/data_format_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.DataFormatOptions do + @moduledoc """ + Options for data format adjustments. + + ## Attributes + + * `useInt64Timestamp` (*type:* `boolean()`, *default:* `nil`) - Optional. Output timestamp as usec int64. Default is false. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :useInt64Timestamp => boolean() | nil + } + + field(:useInt64Timestamp) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.DataFormatOptions do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.DataFormatOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.DataFormatOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/data_masking_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/data_masking_statistics.ex index 156324c55b..02c9991182 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/data_masking_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/data_masking_statistics.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.DataMaskingStatistics do @moduledoc """ - + Statistics for data-masking. ## Attributes - * `dataMaskingApplied` (*type:* `boolean()`, *default:* `false`) - [Output-only] [Preview] Whether any accessed data was protected by data masking. The actual evaluation is done by accessStats.masked_field_count > 0. Since this is only used for the discovery_doc generation purpose, as long as the type (boolean) matches, client library can leverage this. The actual evaluation of the variable is done else-where. + * `dataMaskingApplied` (*type:* `boolean()`, *default:* `nil`) - Whether any accessed data was protected by the data masking. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dataset.ex b/clients/big_query/lib/google_api/big_query/v2/model/dataset.ex index 332a59feac..5bed6fd425 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dataset.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dataset.ex @@ -21,27 +21,33 @@ defmodule GoogleApi.BigQuery.V2.Model.Dataset do ## Attributes - * `access` (*type:* `list(GoogleApi.BigQuery.V2.Model.DatasetAccess.t)`, *default:* `nil`) - [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; - * `creationTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] The time when this dataset was created, in milliseconds since the epoch. - * `datasetReference` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - [Required] A reference that identifies the dataset. - * `defaultCollation` (*type:* `String.t`, *default:* `nil`) - [Output-only] The default collation of the dataset. - * `defaultEncryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - - * `defaultPartitionExpirationMs` (*type:* `String.t`, *default:* `nil`) - [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property. - * `defaultTableExpirationMs` (*type:* `String.t`, *default:* `nil`) - [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property. - * `description` (*type:* `String.t`, *default:* `nil`) - [Optional] A user-friendly description of the dataset. - * `etag` (*type:* `String.t`, *default:* `nil`) - [Output-only] A hash of the resource. - * `friendlyName` (*type:* `String.t`, *default:* `nil`) - [Optional] A descriptive name for the dataset. - * `id` (*type:* `String.t`, *default:* `nil`) - [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field. - * `isCaseInsensitive` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates if table names are case insensitive in the dataset. - * `kind` (*type:* `String.t`, *default:* `bigquery#dataset`) - [Output-only] The resource type. + * `access` (*type:* `list(GoogleApi.BigQuery.V2.Model.DatasetAccess.t)`, *default:* `nil`) - Optional. An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER; + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this dataset was created, in milliseconds since the epoch. + * `datasetReference` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - Required. A reference that identifies the dataset. + * `defaultCollation` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the default collation specification of future tables created in the dataset. If a table is created in this dataset without table-level default collation, then the table inherits the dataset default collation, which is applied to the string fields that do not have explicit collation specified. A change to this field affects only tables created afterwards, and does not alter the existing tables. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. + * `defaultEncryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - The default encryption key for all tables in the dataset. Once this property is set, all newly-created partitioned tables in the dataset will have encryption key set to this value, unless table creation request (or query) overrides the key. + * `defaultPartitionExpirationMs` (*type:* `String.t`, *default:* `nil`) - This default partition expiration, expressed in milliseconds. When new time-partitioned tables are created in a dataset where this property is set, the table will inherit this value, propagated as the `TimePartitioning.expirationMs` property on the new table. If you set `TimePartitioning.expirationMs` explicitly when creating a table, the `defaultPartitionExpirationMs` of the containing dataset is ignored. When creating a partitioned table, if `defaultPartitionExpirationMs` is set, the `defaultTableExpirationMs` value is ignored and the table will not be inherit a table expiration deadline. + * `defaultRoundingMode` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the default rounding mode specification of new tables created within this dataset. During table creation, if this field is specified, the table within this dataset will inherit the default rounding mode of the dataset. Setting the default rounding mode on a table overrides this option. Existing tables in the dataset are unaffected. If columns are defined during that table creation, they will immediately inherit the table's default rounding mode, unless otherwise specified. + * `defaultTableExpirationMs` (*type:* `String.t`, *default:* `nil`) - Optional. The default lifetime of all tables in the dataset, in milliseconds. The minimum lifetime value is 3600000 milliseconds (one hour). To clear an existing default expiration with a PATCH request, set to 0. Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A user-friendly description of the dataset. + * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A hash of the resource. + * `externalDatasetReference` (*type:* `GoogleApi.BigQuery.V2.Model.ExternalDatasetReference.t`, *default:* `nil`) - Optional. Reference to a read-only external dataset defined in data catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL. + * `friendlyName` (*type:* `String.t`, *default:* `nil`) - Optional. A descriptive name for the dataset. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field. + * `isCaseInsensitive` (*type:* `boolean()`, *default:* `nil`) - Optional. TRUE if the dataset and its table names are case-insensitive, otherwise FALSE. By default, this is FALSE, which means the dataset and its table names are case-sensitive. This field does not affect routine references. + * `kind` (*type:* `String.t`, *default:* `bigquery#dataset`) - Output only. The resource type. * `labels` (*type:* `map()`, *default:* `nil`) - The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information. - * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch. - * `location` (*type:* `String.t`, *default:* `nil`) - The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations. - * `maxTimeTravelHours` (*type:* `String.t`, *default:* `nil`) - [Optional] Number of hours for the max time travel for all tables in the dataset. - * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - [Output-only] Reserved for future use. - * `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource. - * `storageBillingModel` (*type:* `String.t`, *default:* `nil`) - [Optional] Storage billing model to be used for all tables in the dataset. Can be set to PHYSICAL. Default is LOGICAL. - * `tags` (*type:* `list(GoogleApi.BigQuery.V2.Model.DatasetTags.t)`, *default:* `nil`) - [Optional]The tags associated with this dataset. Tag keys are globally unique. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The date when this dataset was last modified, in milliseconds since the epoch. + * `linkedDatasetMetadata` (*type:* `GoogleApi.BigQuery.V2.Model.LinkedDatasetMetadata.t`, *default:* `nil`) - Output only. Metadata about the LinkedDataset. Filled out when the dataset type is LINKED. + * `linkedDatasetSource` (*type:* `GoogleApi.BigQuery.V2.Model.LinkedDatasetSource.t`, *default:* `nil`) - Optional. The source dataset reference when the dataset is of type LINKED. For all other dataset types it is not set. This field cannot be updated once it is set. Any attempt to update this field using Update and Patch API Operations will be ignored. + * `location` (*type:* `String.t`, *default:* `nil`) - The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations. + * `maxTimeTravelHours` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the time travel window in hours. The value can be from 48 to 168 hours (2 to 7 days). The default value is 168 hours if this is not set. + * `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. + * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. + * `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource. + * `storageBillingModel` (*type:* `String.t`, *default:* `nil`) - Optional. Updates storage_billing_model for the dataset. + * `tags` (*type:* `list(GoogleApi.BigQuery.V2.Model.DatasetTags.t)`, *default:* `nil`) - Output only. Tags for the Dataset. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. Same as `type` in `ListFormatDataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog. -- *BIGLAKE_METASTORE - dataset that references a database created in BigLakeMetastore service. -- """ use GoogleApi.Gax.ModelBase @@ -54,21 +60,28 @@ defmodule GoogleApi.BigQuery.V2.Model.Dataset do :defaultEncryptionConfiguration => GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t() | nil, :defaultPartitionExpirationMs => String.t() | nil, + :defaultRoundingMode => String.t() | nil, :defaultTableExpirationMs => String.t() | nil, :description => String.t() | nil, :etag => String.t() | nil, + :externalDatasetReference => + GoogleApi.BigQuery.V2.Model.ExternalDatasetReference.t() | nil, :friendlyName => String.t() | nil, :id => String.t() | nil, :isCaseInsensitive => boolean() | nil, :kind => String.t() | nil, :labels => map() | nil, :lastModifiedTime => String.t() | nil, + :linkedDatasetMetadata => GoogleApi.BigQuery.V2.Model.LinkedDatasetMetadata.t() | nil, + :linkedDatasetSource => GoogleApi.BigQuery.V2.Model.LinkedDatasetSource.t() | nil, :location => String.t() | nil, :maxTimeTravelHours => String.t() | nil, + :satisfiesPzi => boolean() | nil, :satisfiesPzs => boolean() | nil, :selfLink => String.t() | nil, :storageBillingModel => String.t() | nil, - :tags => list(GoogleApi.BigQuery.V2.Model.DatasetTags.t()) | nil + :tags => list(GoogleApi.BigQuery.V2.Model.DatasetTags.t()) | nil, + :type => String.t() | nil } field(:access, as: GoogleApi.BigQuery.V2.Model.DatasetAccess, type: :list) @@ -77,21 +90,27 @@ defmodule GoogleApi.BigQuery.V2.Model.Dataset do field(:defaultCollation) field(:defaultEncryptionConfiguration, as: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration) field(:defaultPartitionExpirationMs) + field(:defaultRoundingMode) field(:defaultTableExpirationMs) field(:description) field(:etag) + field(:externalDatasetReference, as: GoogleApi.BigQuery.V2.Model.ExternalDatasetReference) field(:friendlyName) field(:id) field(:isCaseInsensitive) field(:kind) field(:labels, type: :map) field(:lastModifiedTime) + field(:linkedDatasetMetadata, as: GoogleApi.BigQuery.V2.Model.LinkedDatasetMetadata) + field(:linkedDatasetSource, as: GoogleApi.BigQuery.V2.Model.LinkedDatasetSource) field(:location) field(:maxTimeTravelHours) + field(:satisfiesPzi) field(:satisfiesPzs) field(:selfLink) field(:storageBillingModel) field(:tags, as: GoogleApi.BigQuery.V2.Model.DatasetTags, type: :list) + field(:type) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.Dataset do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex b/clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex index 144a175cdb..b14e8aa532 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dataset_access.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetAccess do @moduledoc """ - + An object that defines dataset access for an entity. ## Attributes @@ -25,11 +25,11 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetAccess do * `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". * `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". * `iamMember` (*type:* `String.t`, *default:* `nil`) - [Pick one] Some other type of member that appears in the IAM Policy but isn't a user, group, domain, or special group. - * `role` (*type:* `String.t`, *default:* `nil`) - [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to "roles/bigquery.dataOwner", it will be returned back as "OWNER". + * `role` (*type:* `String.t`, *default:* `nil`) - An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER <=> roles/bigquery.dataOwner WRITER <=> roles/bigquery.dataEditor READER <=> roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to "roles/bigquery.dataOwner", it will be returned back as "OWNER". * `routine` (*type:* `GoogleApi.BigQuery.V2.Model.RoutineReference.t`, *default:* `nil`) - [Pick one] A routine from a different dataset to grant access to. Queries executed against that routine will have read access to views/tables/routines in this dataset. Only UDF is supported for now. The role field is not required when this field is set. If that routine is updated by any user, access to the routine needs to be granted again via an update operation. * `specialGroup` (*type:* `String.t`, *default:* `nil`) - [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members. * `userByEmail` (*type:* `String.t`, *default:* `nil`) - [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member "user:EMAIL" or "serviceAccount:EMAIL". - * `view` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation. + * `view` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to views/tables/routines in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dataset_access_entry.ex b/clients/big_query/lib/google_api/big_query/v2/model/dataset_access_entry.ex index 25bd36695c..160abacc4b 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dataset_access_entry.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dataset_access_entry.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetAccessEntry do @moduledoc """ - + Grants all resources of particular types in a particular dataset read access to the current dataset. Similar to how individually authorized views work, updates to any resource granted through its dataset (including creation of new resources) requires read permission to referenced resources, plus write permission to the authorizing dataset. ## Attributes - * `dataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - [Required] The dataset this entry applies to. - * `targetTypes` (*type:* `list(String.t)`, *default:* `nil`) - + * `dataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - The dataset this entry applies to + * `targetTypes` (*type:* `list(String.t)`, *default:* `nil`) - Which resources in the dataset this entry applies to. Currently, only views are supported, but additional target types may be added in the future. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex b/clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex index da6464c9ab..101facfe81 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dataset_list.ex @@ -17,14 +17,15 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetList do @moduledoc """ - + Response format for a page of results when listing datasets. ## Attributes * `datasets` (*type:* `list(GoogleApi.BigQuery.V2.Model.DatasetListDatasets.t)`, *default:* `nil`) - An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project. - * `etag` (*type:* `String.t`, *default:* `nil`) - A hash value of the results page. You can use this property to determine if the page has changed since the last request. - * `kind` (*type:* `String.t`, *default:* `bigquery#datasetList`) - The list type. This property always returns the value "bigquery#datasetList". + * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A hash value of the results page. You can use this property to determine if the page has changed since the last request. + * `kind` (*type:* `String.t`, *default:* `bigquery#datasetList`) - Output only. The resource type. This property always returns the value "bigquery#datasetList" * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token that can be used to request the next results page. This property is omitted on the final results page. + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - A list of skipped locations that were unreachable. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5" """ use GoogleApi.Gax.ModelBase @@ -33,13 +34,15 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetList do :datasets => list(GoogleApi.BigQuery.V2.Model.DatasetListDatasets.t()) | nil, :etag => String.t() | nil, :kind => String.t() | nil, - :nextPageToken => String.t() | nil + :nextPageToken => String.t() | nil, + :unreachable => list(String.t()) | nil } field(:datasets, as: GoogleApi.BigQuery.V2.Model.DatasetListDatasets, type: :list) field(:etag) field(:kind) field(:nextPageToken) + field(:unreachable, type: :list) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.DatasetList do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dataset_list_datasets.ex b/clients/big_query/lib/google_api/big_query/v2/model/dataset_list_datasets.ex index 76d0c1d92e..09f16f3ea9 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dataset_list_datasets.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dataset_list_datasets.ex @@ -17,16 +17,16 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetListDatasets do @moduledoc """ - + A dataset resource with only a subset of fields, to be returned in a list of datasets. ## Attributes * `datasetReference` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID. - * `friendlyName` (*type:* `String.t`, *default:* `nil`) - A descriptive name for the dataset, if one exists. + * `friendlyName` (*type:* `String.t`, *default:* `nil`) - An alternate name for the dataset. The friendly name is purely decorative in nature. * `id` (*type:* `String.t`, *default:* `nil`) - The fully-qualified, unique, opaque ID of the dataset. - * `kind` (*type:* `String.t`, *default:* `bigquery#dataset`) - The resource type. This property always returns the value "bigquery#dataset". + * `kind` (*type:* `String.t`, *default:* `nil`) - The resource type. This property always returns the value "bigquery#dataset" * `labels` (*type:* `map()`, *default:* `nil`) - The labels associated with this dataset. You can use these to organize and group your datasets. - * `location` (*type:* `String.t`, *default:* `nil`) - The geographic location where the data resides. + * `location` (*type:* `String.t`, *default:* `nil`) - The geographic location where the dataset resides. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dataset_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/dataset_reference.ex index 13cfe26561..79dfb67354 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dataset_reference.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dataset_reference.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetReference do ## Attributes - * `datasetId` (*type:* `String.t`, *default:* `nil`) - [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. - * `projectId` (*type:* `String.t`, *default:* `nil`) - [Optional] The ID of the project containing this dataset. + * `datasetId` (*type:* `String.t`, *default:* `nil`) - Required. A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Optional. The ID of the project containing this dataset. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dataset_tags.ex b/clients/big_query/lib/google_api/big_query/v2/model/dataset_tags.ex index f5317e8205..2f674fa164 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dataset_tags.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dataset_tags.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.DatasetTags do @moduledoc """ - + A global tag managed by Resource Manager. https://cloud.google.com/iam/docs/tags-access-control#definitions ## Attributes - * `tagKey` (*type:* `String.t`, *default:* `nil`) - [Required] The namespaced friendly name of the tag key, e.g. "12345/environment" where 12345 is org id. - * `tagValue` (*type:* `String.t`, *default:* `nil`) - [Required] Friendly short name of the tag value, e.g. "production". + * `tagKey` (*type:* `String.t`, *default:* `nil`) - Required. The namespaced friendly name of the tag key, e.g. "12345/environment" where 12345 is org id. + * `tagValue` (*type:* `String.t`, *default:* `nil`) - Required. The friendly short name of the tag value, e.g. "production". """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex b/clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex index 1874e172de..47999b3a11 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/destination_table_properties.ex @@ -17,14 +17,14 @@ defmodule GoogleApi.BigQuery.V2.Model.DestinationTableProperties do @moduledoc """ - + Properties for the destination table. ## Attributes - * `description` (*type:* `String.t`, *default:* `nil`) - [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail. - * `expirationTime` (*type:* `DateTime.t`, *default:* `nil`) - [Internal] This field is for Google internal use only. - * `friendlyName` (*type:* `String.t`, *default:* `nil`) - [Optional] The friendly name for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current friendly name is provided, the job will fail. - * `labels` (*type:* `map()`, *default:* `nil`) - [Optional] The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail. + * `expirationTime` (*type:* `DateTime.t`, *default:* `nil`) - Internal use only. + * `friendlyName` (*type:* `String.t`, *default:* `nil`) - Optional. Friendly name for the destination table. If the table already exists, it should be same as the existing friendly name. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/dml_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/dml_statistics.ex index 312ba4d50b..7ba62bc292 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/dml_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/dml_statistics.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.DmlStatistics do @moduledoc """ - + Detailed statistics for DML statements ## Attributes - * `deletedRowCount` (*type:* `String.t`, *default:* `nil`) - Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements. - * `insertedRowCount` (*type:* `String.t`, *default:* `nil`) - Number of inserted Rows. Populated by DML INSERT and MERGE statements. - * `updatedRowCount` (*type:* `String.t`, *default:* `nil`) - Number of updated Rows. Populated by DML UPDATE and MERGE statements. + * `deletedRowCount` (*type:* `String.t`, *default:* `nil`) - Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements. + * `insertedRowCount` (*type:* `String.t`, *default:* `nil`) - Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements + * `updatedRowCount` (*type:* `String.t`, *default:* `nil`) - Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/encryption_configuration.ex b/clients/big_query/lib/google_api/big_query/v2/model/encryption_configuration.ex index 4834bcea67..592e2a696c 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/encryption_configuration.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/encryption_configuration.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.BigQuery.V2.Model.EncryptionConfiguration do ## Attributes - * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key. + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Optional. Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/error_proto.ex b/clients/big_query/lib/google_api/big_query/v2/model/error_proto.ex index 0654a1c450..b6cba795b2 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/error_proto.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/error_proto.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.ErrorProto do @moduledoc """ - + Error details. ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/explain_query_stage.ex b/clients/big_query/lib/google_api/big_query/v2/model/explain_query_stage.ex index 3b5867a4ca..fecce18d65 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/explain_query_stage.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/explain_query_stage.ex @@ -17,20 +17,21 @@ defmodule GoogleApi.BigQuery.V2.Model.ExplainQueryStage do @moduledoc """ - + A single stage of query execution. ## Attributes * `completedParallelInputs` (*type:* `String.t`, *default:* `nil`) - Number of parallel input segments completed. + * `computeMode` (*type:* `String.t`, *default:* `nil`) - Output only. Compute mode for this stage. * `computeMsAvg` (*type:* `String.t`, *default:* `nil`) - Milliseconds the average shard spent on CPU-bound tasks. * `computeMsMax` (*type:* `String.t`, *default:* `nil`) - Milliseconds the slowest shard spent on CPU-bound tasks. * `computeRatioAvg` (*type:* `float()`, *default:* `nil`) - Relative amount of time the average shard spent on CPU-bound tasks. * `computeRatioMax` (*type:* `float()`, *default:* `nil`) - Relative amount of time the slowest shard spent on CPU-bound tasks. - * `endMs` (*type:* `String.t`, *default:* `nil`) - Stage end time represented as milliseconds since epoch. - * `id` (*type:* `String.t`, *default:* `nil`) - Unique ID for stage within plan. + * `endMs` (*type:* `String.t`, *default:* `nil`) - Stage end time represented as milliseconds since the epoch. + * `id` (*type:* `String.t`, *default:* `nil`) - Unique ID for the stage within the plan. * `inputStages` (*type:* `list(String.t)`, *default:* `nil`) - IDs for stages that are inputs to this stage. - * `name` (*type:* `String.t`, *default:* `nil`) - Human-readable name for stage. - * `parallelInputs` (*type:* `String.t`, *default:* `nil`) - Number of parallel input segments to be processed. + * `name` (*type:* `String.t`, *default:* `nil`) - Human-readable name for the stage. + * `parallelInputs` (*type:* `String.t`, *default:* `nil`) - Number of parallel input segments to be processed * `readMsAvg` (*type:* `String.t`, *default:* `nil`) - Milliseconds the average shard spent reading input. * `readMsMax` (*type:* `String.t`, *default:* `nil`) - Milliseconds the slowest shard spent reading input. * `readRatioAvg` (*type:* `float()`, *default:* `nil`) - Relative amount of time the average shard spent reading input. @@ -40,8 +41,8 @@ defmodule GoogleApi.BigQuery.V2.Model.ExplainQueryStage do * `shuffleOutputBytes` (*type:* `String.t`, *default:* `nil`) - Total number of bytes written to shuffle. * `shuffleOutputBytesSpilled` (*type:* `String.t`, *default:* `nil`) - Total number of bytes written to shuffle and spilled to disk. * `slotMs` (*type:* `String.t`, *default:* `nil`) - Slot-milliseconds used by the stage. - * `startMs` (*type:* `String.t`, *default:* `nil`) - Stage start time represented as milliseconds since epoch. - * `status` (*type:* `String.t`, *default:* `nil`) - Current status for the stage. + * `startMs` (*type:* `String.t`, *default:* `nil`) - Stage start time represented as milliseconds since the epoch. + * `status` (*type:* `String.t`, *default:* `nil`) - Current status for this stage. * `steps` (*type:* `list(GoogleApi.BigQuery.V2.Model.ExplainQueryStep.t)`, *default:* `nil`) - List of operations within the stage in dependency order (approximately chronological). * `waitMsAvg` (*type:* `String.t`, *default:* `nil`) - Milliseconds the average shard spent waiting to be scheduled. * `waitMsMax` (*type:* `String.t`, *default:* `nil`) - Milliseconds the slowest shard spent waiting to be scheduled. @@ -57,6 +58,7 @@ defmodule GoogleApi.BigQuery.V2.Model.ExplainQueryStage do @type t :: %__MODULE__{ :completedParallelInputs => String.t() | nil, + :computeMode => String.t() | nil, :computeMsAvg => String.t() | nil, :computeMsMax => String.t() | nil, :computeRatioAvg => float() | nil, @@ -89,6 +91,7 @@ defmodule GoogleApi.BigQuery.V2.Model.ExplainQueryStage do } field(:completedParallelInputs) + field(:computeMode) field(:computeMsAvg) field(:computeMsMax) field(:computeRatioAvg) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/explain_query_step.ex b/clients/big_query/lib/google_api/big_query/v2/model/explain_query_step.ex index 8d088a142b..59252c514a 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/explain_query_step.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/explain_query_step.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.ExplainQueryStep do @moduledoc """ - + An operation within a stage. ## Attributes * `kind` (*type:* `String.t`, *default:* `nil`) - Machine-readable operation type. - * `substeps` (*type:* `list(String.t)`, *default:* `nil`) - Human-readable stage descriptions. + * `substeps` (*type:* `list(String.t)`, *default:* `nil`) - Human-readable description of the step(s). """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/export_data_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/export_data_statistics.ex new file mode 100644 index 0000000000..39a78a3d2e --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/export_data_statistics.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.ExportDataStatistics do + @moduledoc """ + Statistics for the EXPORT DATA statement as part of Query Job. EXTRACT JOB statistics are populated in JobStatistics4. + + ## Attributes + + * `fileCount` (*type:* `String.t`, *default:* `nil`) - Number of destination files generated in case of EXPORT DATA statement only. + * `rowCount` (*type:* `String.t`, *default:* `nil`) - [Alpha] Number of destination rows generated in case of EXPORT DATA statement only. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :fileCount => String.t() | nil, + :rowCount => String.t() | nil + } + + field(:fileCount) + field(:rowCount) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.ExportDataStatistics do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.ExportDataStatistics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.ExportDataStatistics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/external_data_configuration.ex b/clients/big_query/lib/google_api/big_query/v2/model/external_data_configuration.ex index 0e8b967d93..bda4372b0e 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/external_data_configuration.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/external_data_configuration.ex @@ -22,22 +22,25 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do ## Attributes * `autodetect` (*type:* `boolean()`, *default:* `nil`) - Try to detect schema and format options automatically. Any option specified explicitly will be honored. - * `avroOptions` (*type:* `GoogleApi.BigQuery.V2.Model.AvroOptions.t`, *default:* `nil`) - Additional properties to set if sourceFormat is set to Avro. - * `bigtableOptions` (*type:* `GoogleApi.BigQuery.V2.Model.BigtableOptions.t`, *default:* `nil`) - [Optional] Additional options if sourceFormat is set to BIGTABLE. - * `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 and Avro formats. - * `connectionId` (*type:* `String.t`, *default:* `nil`) - [Optional, Trusted Tester] Connection for external data source. - * `csvOptions` (*type:* `GoogleApi.BigQuery.V2.Model.CsvOptions.t`, *default:* `nil`) - Additional properties to set if sourceFormat is set to CSV. - * `decimalTargetTypes` (*type:* `list(String.t)`, *default:* `nil`) - [Optional] 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. - * `googleSheetsOptions` (*type:* `GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t`, *default:* `nil`) - [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS. - * `hivePartitioningOptions` (*type:* `GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t`, *default:* `nil`) - [Optional] Options to configure hive partitioning support. - * `ignoreUnknownValues` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored. - * `maxBadRecords` (*type:* `integer()`, *default:* `nil`) - [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats. - * `metadataCacheMode` (*type:* `String.t`, *default:* `nil`) - [Optional] Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. - * `objectMetadata` (*type:* `String.t`, *default:* `nil`) - ObjectMetadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the source_uris. If ObjectMetadata is set, source_format should be omitted. Currently SIMPLE is the only supported Object Metadata type. - * `parquetOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ParquetOptions.t`, *default:* `nil`) - Additional properties to set if sourceFormat is set to Parquet. - * `referenceFileSchemaUri` (*type:* `String.t`, *default:* `nil`) - [Optional] Provide a referencing file with the expected table schema. Enabled for the format: AVRO, PARQUET, ORC. - * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats. - * `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". [Beta] For Google Cloud Bigtable, specify "BIGTABLE". + * `avroOptions` (*type:* `GoogleApi.BigQuery.V2.Model.AvroOptions.t`, *default:* `nil`) - Optional. Additional properties to set if sourceFormat is set to AVRO. + * `bigtableOptions` (*type:* `GoogleApi.BigQuery.V2.Model.BigtableOptions.t`, *default:* `nil`) - Optional. Additional options if sourceFormat is set to BIGTABLE. + * `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. + * `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 ".." or "projects//locations//connections/". + * `csvOptions` (*type:* `GoogleApi.BigQuery.V2.Model.CsvOptions.t`, *default:* `nil`) - Optional. Additional properties to set if sourceFormat is set to CSV. + * `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. + * `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. + * `googleSheetsOptions` (*type:* `GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t`, *default:* `nil`) - Optional. Additional options if sourceFormat is set to GOOGLE_SHEETS. + * `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. + * `ignoreUnknownValues` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored. ORC: This setting is ignored. Parquet: This setting is ignored. + * `jsonExtension` (*type:* `String.t`, *default:* `nil`) - Optional. Load option to be used together with source_format newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and source_format must be set to NEWLINE_DELIMITED_JSON). + * `jsonOptions` (*type:* `GoogleApi.BigQuery.V2.Model.JsonOptions.t`, *default:* `nil`) - Optional. Additional properties to set if sourceFormat is set to JSON. + * `maxBadRecords` (*type:* `integer()`, *default:* `nil`) - Optional. The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats. + * `metadataCacheMode` (*type:* `String.t`, *default:* `nil`) - Optional. Metadata Cache Mode for the table. Set this to enable caching of metadata from external data source. + * `objectMetadata` (*type:* `String.t`, *default:* `nil`) - Optional. ObjectMetadata is used to create Object Tables. Object Tables contain a listing of objects (with their metadata) found at the source_uris. If ObjectMetadata is set, source_format should be omitted. Currently SIMPLE is the only supported Object Metadata type. + * `parquetOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ParquetOptions.t`, *default:* `nil`) - Optional. Additional properties to set if sourceFormat is set to PARQUET. + * `referenceFileSchemaUri` (*type:* `String.t`, *default:* `nil`) - Optional. When creating an external table, the user can provide a reference file with the table schema. This is enabled for the following formats: AVRO, PARQUET, ORC. + * `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. + * `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". * `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. """ @@ -51,10 +54,13 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do :connectionId => String.t() | nil, :csvOptions => GoogleApi.BigQuery.V2.Model.CsvOptions.t() | nil, :decimalTargetTypes => list(String.t()) | nil, + :fileSetSpecType => String.t() | nil, :googleSheetsOptions => GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t() | nil, :hivePartitioningOptions => GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t() | nil, :ignoreUnknownValues => boolean() | nil, + :jsonExtension => String.t() | nil, + :jsonOptions => GoogleApi.BigQuery.V2.Model.JsonOptions.t() | nil, :maxBadRecords => integer() | nil, :metadataCacheMode => String.t() | nil, :objectMetadata => String.t() | nil, @@ -72,9 +78,12 @@ defmodule GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration do field(:connectionId) field(:csvOptions, as: GoogleApi.BigQuery.V2.Model.CsvOptions) field(:decimalTargetTypes, type: :list) + field(:fileSetSpecType) field(:googleSheetsOptions, as: GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions) field(:hivePartitioningOptions, as: GoogleApi.BigQuery.V2.Model.HivePartitioningOptions) field(:ignoreUnknownValues) + field(:jsonExtension) + field(:jsonOptions, as: GoogleApi.BigQuery.V2.Model.JsonOptions) field(:maxBadRecords) field(:metadataCacheMode) field(:objectMetadata) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/external_dataset_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/external_dataset_reference.ex new file mode 100644 index 0000000000..24db8e45f9 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/external_dataset_reference.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.ExternalDatasetReference do + @moduledoc """ + Configures the access a dataset defined in an external metadata storage. + + ## Attributes + + * `connection` (*type:* `String.t`, *default:* `nil`) - Required. The connection id that is used to access the external_source. Format: projects/{project_id}/locations/{location_id}/connections/{connection_id} + * `externalSource` (*type:* `String.t`, *default:* `nil`) - Required. External source that backs this dataset. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connection => String.t() | nil, + :externalSource => String.t() | nil + } + + field(:connection) + field(:externalSource) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.ExternalDatasetReference do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.ExternalDatasetReference.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.ExternalDatasetReference do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/external_service_cost.ex b/clients/big_query/lib/google_api/big_query/v2/model/external_service_cost.ex new file mode 100644 index 0000000000..1396cece15 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/external_service_cost.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.ExternalServiceCost do + @moduledoc """ + The external service cost is a portion of the total cost, these costs are not additive with total_bytes_billed. Moreover, this field only track external service costs that will show up as BigQuery costs (e.g. training BigQuery ML job with google cloud CAIP or Automl Tables services), not other costs which may be accrued by running the query (e.g. reading from Bigtable or Cloud Storage). The external service costs with different billing sku (e.g. CAIP job is charged based on VM usage) are converted to BigQuery billed_bytes and slot_ms with equivalent amount of US dollars. Services may not directly correlate to these metrics, but these are the equivalents for billing purposes. Output only. + + ## Attributes + + * `bytesBilled` (*type:* `String.t`, *default:* `nil`) - External service cost in terms of bigquery bytes billed. + * `bytesProcessed` (*type:* `String.t`, *default:* `nil`) - External service cost in terms of bigquery bytes processed. + * `externalService` (*type:* `String.t`, *default:* `nil`) - External service name. + * `reservedSlotCount` (*type:* `String.t`, *default:* `nil`) - Non-preemptable reserved slots used for external job. For example, reserved slots for Cloua AI Platform job are the VM usages converted to BigQuery slot with equivalent mount of price. + * `slotMs` (*type:* `String.t`, *default:* `nil`) - External service cost in terms of bigquery slot milliseconds. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bytesBilled => String.t() | nil, + :bytesProcessed => String.t() | nil, + :externalService => String.t() | nil, + :reservedSlotCount => String.t() | nil, + :slotMs => String.t() | nil + } + + field(:bytesBilled) + field(:bytesProcessed) + field(:externalService) + field(:reservedSlotCount) + field(:slotMs) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.ExternalServiceCost do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.ExternalServiceCost.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.ExternalServiceCost do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/get_query_results_response.ex b/clients/big_query/lib/google_api/big_query/v2/model/get_query_results_response.ex index 3eebc9de23..6cfbc0f7aa 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/get_query_results_response.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/get_query_results_response.ex @@ -17,19 +17,19 @@ defmodule GoogleApi.BigQuery.V2.Model.GetQueryResultsResponse do @moduledoc """ - + Response object of GetQueryResults. ## Attributes * `cacheHit` (*type:* `boolean()`, *default:* `nil`) - Whether the query result was fetched from the query cache. - * `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. + * `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). * `etag` (*type:* `String.t`, *default:* `nil`) - A hash of this response. * `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. * `jobReference` (*type:* `GoogleApi.BigQuery.V2.Model.JobReference.t`, *default:* `nil`) - Reference to the BigQuery 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). * `kind` (*type:* `String.t`, *default:* `bigquery#getQueryResultsResponse`) - The resource type of the response. - * `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. - * `pageToken` (*type:* `String.t`, *default:* `nil`) - A token used for paging results. - * `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. Present only when the query completes successfully. + * `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. + * `pageToken` (*type:* `String.t`, *default:* `nil`) - A token used for paging results. When this token is non-empty, it indicates additional results are available. + * `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. Present only when the query completes successfully. The REST-based representation of this data leverages a series of JSON f,v objects for indicating fields and values. * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - The schema of the results. Present only when the query completes successfully. * `totalBytesProcessed` (*type:* `String.t`, *default:* `nil`) - The total number of bytes processed for this query. * `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. Present only when the query completes successfully. diff --git a/clients/big_query/lib/google_api/big_query/v2/model/get_service_account_response.ex b/clients/big_query/lib/google_api/big_query/v2/model/get_service_account_response.ex index cae197c6a6..02df5377b8 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/get_service_account_response.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/get_service_account_response.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.GetServiceAccountResponse do @moduledoc """ - + Response object of GetServiceAccount ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/google_sheets_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/google_sheets_options.ex index 34da27ce8d..7ee0594534 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/google_sheets_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/google_sheets_options.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions do @moduledoc """ - + Options specific to Google Sheets data sources. ## Attributes - * `range` (*type:* `String.t`, *default:* `nil`) - [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20 - * `skipLeadingRows` (*type:* `String.t`, *default:* `nil`) - [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. + * `range` (*type:* `String.t`, *default:* `nil`) - Optional. Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20 + * `skipLeadingRows` (*type:* `String.t`, *default:* `nil`) - Optional. The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/high_cardinality_join.ex b/clients/big_query/lib/google_api/big_query/v2/model/high_cardinality_join.ex new file mode 100644 index 0000000000..75fd1282d6 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/high_cardinality_join.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.HighCardinalityJoin do + @moduledoc """ + High cardinality join detailed information. + + ## Attributes + + * `leftRows` (*type:* `String.t`, *default:* `nil`) - Output only. Count of left input rows. + * `outputRows` (*type:* `String.t`, *default:* `nil`) - Output only. Count of the output rows. + * `rightRows` (*type:* `String.t`, *default:* `nil`) - Output only. Count of right input rows. + * `stepIndex` (*type:* `integer()`, *default:* `nil`) - Output only. The index of the join operator in the ExplainQueryStep lists. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :leftRows => String.t() | nil, + :outputRows => String.t() | nil, + :rightRows => String.t() | nil, + :stepIndex => integer() | nil + } + + field(:leftRows) + field(:outputRows) + field(:rightRows) + field(:stepIndex) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.HighCardinalityJoin do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.HighCardinalityJoin.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.HighCardinalityJoin do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/hive_partitioning_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/hive_partitioning_options.ex index 64be31a1e0..d505d5256b 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/hive_partitioning_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/hive_partitioning_options.ex @@ -17,23 +17,26 @@ defmodule GoogleApi.BigQuery.V2.Model.HivePartitioningOptions do @moduledoc """ - + Options for configuring hive partitioning detect. ## Attributes - * `mode` (*type:* `String.t`, *default:* `nil`) - [Optional] When set, what mode of hive partitioning to use when reading data. The following modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. (3) CUSTOM: partition key schema is encoded in the source URI prefix. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet. - * `requirePartitionFilter` (*type:* `boolean()`, *default:* `nil`) - [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Note that this field should only be true when creating a permanent external table or querying a temporary external table. Hive-partitioned loads with requirePartitionFilter explicitly set to true will fail. - * `sourceUriPrefix` (*type:* `String.t`, *default:* `nil`) - [Optional] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter). + * `fields` (*type:* `list(String.t)`, *default:* `nil`) - Output only. For permanent external tables, this field is populated with the hive partition keys in the order they were inferred. The types of the partition keys can be deduced by checking the table schema (which will include the partition keys). Not every API will populate this field in the output. For example, Tables.Get will populate it, but Tables.List will not contain this field. + * `mode` (*type:* `String.t`, *default:* `nil`) - Optional. When set, what mode of hive partitioning to use when reading data. The following modes are supported: * AUTO: automatically infer partition key name(s) and type(s). * STRINGS: automatically infer partition key name(s). All types are strings. * CUSTOM: partition key schema is encoded in the source URI prefix. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported formats are: JSON, CSV, ORC, Avro and Parquet. + * `requirePartitionFilter` (*type:* `boolean()`, *default:* `false`) - Optional. If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. Note that this field should only be true when creating a permanent external table or querying a temporary external table. Hive-partitioned loads with require_partition_filter explicitly set to true will fail. + * `sourceUriPrefix` (*type:* `String.t`, *default:* `nil`) - Optional. When hive partition detection is requested, a common prefix for all source uris must be required. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout: gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/. CUSTOM detection requires encoding the partitioning schema immediately after the common prefix. For CUSTOM, any of * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:INTEGER} * gs://bucket/path_to_table/{dt:STRING}/{country:STRING}/{id:INTEGER} * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:STRING} would all be valid source URI prefixes. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :fields => list(String.t()) | nil, :mode => String.t() | nil, :requirePartitionFilter => boolean() | nil, :sourceUriPrefix => String.t() | nil } + field(:fields, type: :list) field(:mode) field(:requirePartitionFilter) field(:sourceUriPrefix) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/index_unused_reason.ex b/clients/big_query/lib/google_api/big_query/v2/model/index_unused_reason.ex index 1809834069..ec8cc06887 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/index_unused_reason.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/index_unused_reason.ex @@ -17,28 +17,28 @@ defmodule GoogleApi.BigQuery.V2.Model.IndexUnusedReason do @moduledoc """ - + Reason about why no search index was used in the search query (or sub-query). ## Attributes - * `base_table` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Output-only] Specifies the base table involved in the reason that no search index was used. - * `code` (*type:* `String.t`, *default:* `$(reason.code)`) - [Output-only] Specifies the high-level reason for the scenario when no search index was used. - * `index_name` (*type:* `String.t`, *default:* `$(reason.index_name)`) - [Output-only] Specifies the name of the unused search index, if available. - * `message` (*type:* `String.t`, *default:* `$(reason.message)`) - [Output-only] Free form human-readable reason for the scenario when no search index was used. + * `baseTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Specifies the base table involved in the reason that no search index was used. + * `code` (*type:* `String.t`, *default:* `nil`) - Specifies the high-level reason for the scenario when no search index was used. + * `indexName` (*type:* `String.t`, *default:* `nil`) - Specifies the name of the unused search index, if available. + * `message` (*type:* `String.t`, *default:* `nil`) - Free form human-readable reason for the scenario when no search index was used. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :base_table => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, + :baseTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, :code => String.t() | nil, - :index_name => String.t() | nil, + :indexName => String.t() | nil, :message => String.t() | nil } - field(:base_table, as: GoogleApi.BigQuery.V2.Model.TableReference) + field(:baseTable, as: GoogleApi.BigQuery.V2.Model.TableReference) field(:code) - field(:index_name) + field(:indexName) field(:message) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/input_data_change.ex b/clients/big_query/lib/google_api/big_query/v2/model/input_data_change.ex new file mode 100644 index 0000000000..4b882a99b0 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/input_data_change.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.InputDataChange do + @moduledoc """ + Details about the input data change insight. + + ## Attributes + + * `recordsReadDiffPercentage` (*type:* `number()`, *default:* `nil`) - Output only. Records read difference percentage compared to a previous run. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :recordsReadDiffPercentage => number() | nil + } + + field(:recordsReadDiffPercentage) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.InputDataChange do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.InputDataChange.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.InputDataChange do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/iteration_result.ex b/clients/big_query/lib/google_api/big_query/v2/model/iteration_result.ex index bd4ebd2cac..56b54fcd24 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/iteration_result.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/iteration_result.ex @@ -17,31 +17,46 @@ defmodule GoogleApi.BigQuery.V2.Model.IterationResult do @moduledoc """ - + Information about a single iteration of the training run. ## Attributes + * `arimaResult` (*type:* `GoogleApi.BigQuery.V2.Model.ArimaResult.t`, *default:* `nil`) - Arima result. + * `clusterInfos` (*type:* `list(GoogleApi.BigQuery.V2.Model.ClusterInfo.t)`, *default:* `nil`) - Information about top clusters for clustering models. * `durationMs` (*type:* `String.t`, *default:* `nil`) - Time taken to run the iteration in milliseconds. * `evalLoss` (*type:* `float()`, *default:* `nil`) - Loss computed on the eval data at the end of iteration. * `index` (*type:* `integer()`, *default:* `nil`) - Index of the iteration, 0 based. * `learnRate` (*type:* `float()`, *default:* `nil`) - Learn rate used for this iteration. + * `principalComponentInfos` (*type:* `list(GoogleApi.BigQuery.V2.Model.PrincipalComponentInfo.t)`, *default:* `nil`) - The information of the principal components. * `trainingLoss` (*type:* `float()`, *default:* `nil`) - Loss computed on the training data at the end of iteration. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :arimaResult => GoogleApi.BigQuery.V2.Model.ArimaResult.t() | nil, + :clusterInfos => list(GoogleApi.BigQuery.V2.Model.ClusterInfo.t()) | nil, :durationMs => String.t() | nil, :evalLoss => float() | nil, :index => integer() | nil, :learnRate => float() | nil, + :principalComponentInfos => + list(GoogleApi.BigQuery.V2.Model.PrincipalComponentInfo.t()) | nil, :trainingLoss => float() | nil } + field(:arimaResult, as: GoogleApi.BigQuery.V2.Model.ArimaResult) + field(:clusterInfos, as: GoogleApi.BigQuery.V2.Model.ClusterInfo, type: :list) field(:durationMs) field(:evalLoss) field(:index) field(:learnRate) + + field(:principalComponentInfos, + as: GoogleApi.BigQuery.V2.Model.PrincipalComponentInfo, + type: :list + ) + field(:trainingLoss) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job.ex b/clients/big_query/lib/google_api/big_query/v2/model/job.ex index 6a4d0b94a2..6feea8bc9e 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job.ex @@ -21,15 +21,17 @@ defmodule GoogleApi.BigQuery.V2.Model.Job do ## Attributes - * `configuration` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfiguration.t`, *default:* `nil`) - [Required] Describes the job configuration. - * `etag` (*type:* `String.t`, *default:* `nil`) - [Output-only] A hash of this resource. - * `id` (*type:* `String.t`, *default:* `nil`) - [Output-only] Opaque ID field of the job - * `jobReference` (*type:* `GoogleApi.BigQuery.V2.Model.JobReference.t`, *default:* `nil`) - [Optional] Reference describing the unique-per-user name of the job. - * `kind` (*type:* `String.t`, *default:* `bigquery#job`) - [Output-only] The type of the resource. - * `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output-only] A URL that can be used to access this resource again. - * `statistics` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics.t`, *default:* `nil`) - [Output-only] Information about the job, including starting time and ending time of the job. - * `status` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatus.t`, *default:* `nil`) - [Output-only] The status of this job. Examine this value when polling an asynchronous job to see if the job is complete. - * `user_email` (*type:* `String.t`, *default:* `nil`) - [Output-only] Email address of the user who ran the job. + * `configuration` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfiguration.t`, *default:* `nil`) - Required. Describes the job configuration. + * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A hash of this resource. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. Opaque ID field of the job. + * `jobCreationReason` (*type:* `GoogleApi.BigQuery.V2.Model.JobCreationReason.t`, *default:* `nil`) - Output only. If set, it provides the reason why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always be created. + * `jobReference` (*type:* `GoogleApi.BigQuery.V2.Model.JobReference.t`, *default:* `nil`) - Optional. Reference describing the unique-per-user name of the job. + * `kind` (*type:* `String.t`, *default:* `bigquery#job`) - Output only. The type of the resource. + * `principal_subject` (*type:* `String.t`, *default:* `nil`) - Output only. [Full-projection-only] String representation of identity of requesting party. Populated for both first- and third-party identities. Only present for APIs that support third-party identities. + * `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. A URL that can be used to access the resource again. + * `statistics` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics.t`, *default:* `nil`) - Output only. Information about the job, including starting time and ending time of the job. + * `status` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatus.t`, *default:* `nil`) - Output only. The status of this job. Examine this value when polling an asynchronous job to see if the job is complete. + * `user_email` (*type:* `String.t`, *default:* `nil`) - Output only. Email address of the user who ran the job. """ use GoogleApi.Gax.ModelBase @@ -38,8 +40,10 @@ defmodule GoogleApi.BigQuery.V2.Model.Job do :configuration => GoogleApi.BigQuery.V2.Model.JobConfiguration.t() | nil, :etag => String.t() | nil, :id => String.t() | nil, + :jobCreationReason => GoogleApi.BigQuery.V2.Model.JobCreationReason.t() | nil, :jobReference => GoogleApi.BigQuery.V2.Model.JobReference.t() | nil, :kind => String.t() | nil, + :principal_subject => String.t() | nil, :selfLink => String.t() | nil, :statistics => GoogleApi.BigQuery.V2.Model.JobStatistics.t() | nil, :status => GoogleApi.BigQuery.V2.Model.JobStatus.t() | nil, @@ -49,8 +53,10 @@ defmodule GoogleApi.BigQuery.V2.Model.Job do field(:configuration, as: GoogleApi.BigQuery.V2.Model.JobConfiguration) field(:etag) field(:id) + field(:jobCreationReason, as: GoogleApi.BigQuery.V2.Model.JobCreationReason) field(:jobReference, as: GoogleApi.BigQuery.V2.Model.JobReference) field(:kind) + field(:principal_subject) field(:selfLink) field(:statistics, as: GoogleApi.BigQuery.V2.Model.JobStatistics) field(:status, as: GoogleApi.BigQuery.V2.Model.JobStatus) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_cancel_response.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_cancel_response.ex index f2725eb861..20a5bf97c2 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_cancel_response.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_cancel_response.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobCancelResponse do @moduledoc """ - + Describes format of a jobs cancellation response. ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration.ex index 61a2786845..28c93e8734 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration.ex @@ -22,10 +22,10 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfiguration do ## Attributes * `copy` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfigurationTableCopy.t`, *default:* `nil`) - [Pick one] Copies a table. - * `dryRun` (*type:* `boolean()`, *default:* `nil`) - [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined. + * `dryRun` (*type:* `boolean()`, *default:* `nil`) - Optional. If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined. * `extract` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfigurationExtract.t`, *default:* `nil`) - [Pick one] Configures an extract job. - * `jobTimeoutMs` (*type:* `String.t`, *default:* `nil`) - [Optional] Job timeout in milliseconds. If this time limit is exceeded, BigQuery may attempt to terminate the job. - * `jobType` (*type:* `String.t`, *default:* `nil`) - [Output-only] The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or UNKNOWN. + * `jobTimeoutMs` (*type:* `String.t`, *default:* `nil`) - Optional. Job timeout in milliseconds. If this time limit is exceeded, BigQuery might attempt to stop the job. + * `jobType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the job. Can be QUERY, LOAD, EXTRACT, COPY or UNKNOWN. * `labels` (*type:* `map()`, *default:* `nil`) - The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. * `load` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfigurationLoad.t`, *default:* `nil`) - [Pick one] Configures a load job. * `query` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfigurationQuery.t`, *default:* `nil`) - [Pick one] Configures a query job. diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_extract.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_extract.ex index 2923b87a33..fe53ea9f1b 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_extract.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_extract.ex @@ -17,19 +17,20 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationExtract do @moduledoc """ - + JobConfigurationExtract configures a job that exports data from a BigQuery table into Google Cloud Storage. ## Attributes - * `compression` (*type:* `String.t`, *default:* `nil`) - [Optional] The compression type to use for exported files. Possible values include GZIP, DEFLATE, SNAPPY, and NONE. The default value is NONE. DEFLATE and SNAPPY are only supported for Avro. Not applicable when extracting models. - * `destinationFormat` (*type:* `String.t`, *default:* `nil`) - [Optional] The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON, PARQUET or AVRO for tables and ML_TF_SAVED_MODEL or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV. The default value for models is ML_TF_SAVED_MODEL. + * `compression` (*type:* `String.t`, *default:* `nil`) - Optional. The compression type to use for exported files. Possible values include DEFLATE, GZIP, NONE, SNAPPY, and ZSTD. The default value is NONE. Not all compression formats are support for all file formats. DEFLATE is only supported for Avro. ZSTD is only supported for Parquet. Not applicable when extracting models. + * `destinationFormat` (*type:* `String.t`, *default:* `nil`) - Optional. The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON, PARQUET, or AVRO for tables and ML_TF_SAVED_MODEL or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV. The default value for models is ML_TF_SAVED_MODEL. * `destinationUri` (*type:* `String.t`, *default:* `nil`) - [Pick one] DEPRECATED: Use destinationUris instead, passing only one URI as necessary. The fully-qualified Google Cloud Storage URI where the extracted table should be written. * `destinationUris` (*type:* `list(String.t)`, *default:* `nil`) - [Pick one] A list of fully-qualified Google Cloud Storage URIs where the extracted table should be written. - * `fieldDelimiter` (*type:* `String.t`, *default:* `nil`) - [Optional] Delimiter to use between fields in the exported data. Default is ','. Not applicable when extracting models. - * `printHeader` (*type:* `boolean()`, *default:* `true`) - [Optional] Whether to print out a header row in the results. Default is true. Not applicable when extracting models. + * `fieldDelimiter` (*type:* `String.t`, *default:* `nil`) - Optional. When extracting data in CSV format, this defines the delimiter to use between fields in the exported data. Default is ','. Not applicable when extracting models. + * `modelExtractOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ModelExtractOptions.t`, *default:* `nil`) - Optional. Model extract options only applicable when extracting models. + * `printHeader` (*type:* `boolean()`, *default:* `true`) - Optional. Whether to print out a header row in the results. Default is true. Not applicable when extracting models. * `sourceModel` (*type:* `GoogleApi.BigQuery.V2.Model.ModelReference.t`, *default:* `nil`) - A reference to the model being exported. * `sourceTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - A reference to the table being exported. - * `useAvroLogicalTypes` (*type:* `boolean()`, *default:* `nil`) - [Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long). Not applicable when extracting models. + * `useAvroLogicalTypes` (*type:* `boolean()`, *default:* `nil`) - Whether to use logical types when extracting to AVRO format. Not applicable when extracting models. """ use GoogleApi.Gax.ModelBase @@ -40,6 +41,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationExtract do :destinationUri => String.t() | nil, :destinationUris => list(String.t()) | nil, :fieldDelimiter => String.t() | nil, + :modelExtractOptions => GoogleApi.BigQuery.V2.Model.ModelExtractOptions.t() | nil, :printHeader => boolean() | nil, :sourceModel => GoogleApi.BigQuery.V2.Model.ModelReference.t() | nil, :sourceTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, @@ -51,6 +53,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationExtract do field(:destinationUri) field(:destinationUris, type: :list) field(:fieldDelimiter) + field(:modelExtractOptions, as: GoogleApi.BigQuery.V2.Model.ModelExtractOptions) field(:printHeader) field(:sourceModel, as: GoogleApi.BigQuery.V2.Model.ModelReference) field(:sourceTable, as: GoogleApi.BigQuery.V2.Model.TableReference) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_load.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_load.ex index 825fe701f3..ff4e3ee335 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_load.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_load.ex @@ -17,49 +17,52 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationLoad do @moduledoc """ - + JobConfigurationLoad contains the configuration properties for loading data into a destination table. ## Attributes + * `copyFilesOnly` (*type:* `boolean()`, *default:* `nil`) - Optional. [Experimental] Configures the load job to only copy files to the destination BigLake managed table with an external storage_uri, without reading file content and writing them to new files. Copying files only is supported when: * source_uris are in the same external storage system as the destination table but they do not overlap with storage_uri of the destination table. * source_format is the same file format as the destination table. * destination_table is an existing BigLake managed table. Its schema does not have default value expression. It schema does not have type parameters other than precision and scale. * No options other than the above are specified. * `projectionFields` (*type:* `list(String.t)`, *default:* `nil`) - If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity properties to load into BigQuery from a Cloud Datastore backup. Property names are case sensitive and must be top-level properties. If no properties are specified, BigQuery loads all properties. If any named property isn't found in the Cloud Datastore backup, an invalid error is returned in the job result. - * `referenceFileSchemaUri` (*type:* `String.t`, *default:* `nil`) - User provided referencing file with the expected reader schema, Available for the format: AVRO, PARQUET, ORC. - * `decimalTargetTypes` (*type:* `list(String.t)`, *default:* `nil`) - [Optional] 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. - * `parquetOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ParquetOptions.t`, *default:* `nil`) - [Optional] Options to configure parquet support. - * `connectionProperties` (*type:* `list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t)`, *default:* `nil`) - Connection properties. - * `ignoreUnknownValues` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names - * `preserveAsciiControlCharacters` (*type:* `boolean()`, *default:* `nil`) - [Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\\x00' to '\\x1F') when loading from CSV. Only applicable to CSV, ignored for other formats. - * `autodetect` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates if we should automatically infer the options and schema for CSV and JSON sources. - * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - [Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered. - * `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 table data. 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_APPEND. 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. - * `jsonExtension` (*type:* `String.t`, *default:* `nil`) - [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. - * `sourceFormat` (*type:* `String.t`, *default:* `nil`) - [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet, specify "PARQUET". For orc, specify "ORC". The default value is CSV. + * `referenceFileSchemaUri` (*type:* `String.t`, *default:* `nil`) - Optional. The user can provide a reference file with the reader schema. This file is only loaded if it is part of source URIs, but is not loaded otherwise. It is enabled for the following formats: AVRO, PARQUET, ORC. + * `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. + * `parquetOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ParquetOptions.t`, *default:* `nil`) - Optional. Additional properties to set if sourceFormat is set to PARQUET. + * `connectionProperties` (*type:* `list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t)`, *default:* `nil`) - Optional. Connection properties which can modify the load job behavior. Currently, only the 'session_id' connection property is supported, and is used to resolve _SESSION appearing as the dataset id. + * `ignoreUnknownValues` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names in the table schema Avro, Parquet, ORC: Fields in the file schema that don't exist in the table schema. + * `preserveAsciiControlCharacters` (*type:* `boolean()`, *default:* `nil`) - Optional. When sourceFormat is set to "CSV", this indicates whether the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\\x00' to '\\x1F') are preserved. + * `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. You can also specify manifest files to control how the file set is constructed. This option is only applicable to object storage systems. + * `autodetect` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates if we should automatically infer the options and schema for CSV and JSON sources. + * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - Clustering specification for the destination table. + * `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 load job. * 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_APPEND. 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. + * `jsonExtension` (*type:* `String.t`, *default:* `nil`) - Optional. Load option to be used together with source_format newline-delimited JSON to indicate that a variant of JSON is being loaded. To load newline-delimited GeoJSON, specify GEOJSON (and source_format must be set to NEWLINE_DELIMITED_JSON). + * `sourceFormat` (*type:* `String.t`, *default:* `nil`) - Optional. The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet, specify "PARQUET". For orc, specify "ORC". The default value is CSV. * `timePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.TimePartitioning.t`, *default:* `nil`) - Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. - * `skipLeadingRows` (*type:* `integer()`, *default:* `nil`) - [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. - * `createDisposition` (*type:* `String.t`, *default:* `nil`) - [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. - * `maxBadRecords` (*type:* `integer()`, *default:* `nil`) - [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 default value is 0, which requires that all records are valid. + * `skipLeadingRows` (*type:* `integer()`, *default:* `nil`) - Optional. The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema. + * `createDisposition` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. + * `maxBadRecords` (*type:* `integer()`, *default:* `nil`) - 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. The default value is 0, which requires that all records are valid. This is only supported for CSV and NEWLINE_DELIMITED_JSON file formats. * `schemaInlineFormat` (*type:* `String.t`, *default:* `nil`) - [Deprecated] The format of the schemaInline property. - * `useAvroLogicalTypes` (*type:* `boolean()`, *default:* `nil`) - [Optional] If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). + * `useAvroLogicalTypes` (*type:* `boolean()`, *default:* `nil`) - Optional. If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). * `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. - * `encoding` (*type:* `String.t`, *default:* `nil`) - [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties. - * `fieldDelimiter` (*type:* `String.t`, *default:* `nil`) - [Optional] The separator for fields in a CSV file. The separator can be any ISO-8859-1 single-byte character. To use a character in the range 128-255, you must encode the character as UTF8. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\\t" to specify a tab separator. The default value is a comma (','). - * `destinationEncryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - Custom encryption configuration (e.g., Cloud KMS keys). + * `encoding` (*type:* `String.t`, *default:* `nil`) - Optional. The character encoding of the data. The supported values are UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the `quote` and `fieldDelimiter` properties. If you don't specify an encoding, or if you specify a UTF-8 encoding when the CSV file is not UTF-8 encoded, BigQuery attempts to convert the data to UTF-8. Generally, your data loads successfully, but it may not match byte-for-byte what you expect. To avoid this, specify the correct encoding by using the `--encoding` flag. If BigQuery can't convert a character other than the ASCII `0` character, BigQuery converts the character to the standard Unicode replacement character: �. + * `fieldDelimiter` (*type:* `String.t`, *default:* `nil`) - Optional. The separator character for fields in a CSV file. The separator is interpreted as a single byte. For files encoded in ISO-8859-1, any single character can be used as a separator. For files encoded in UTF-8, characters represented in decimal range 1-127 (U+0001-U+007F) can be used without any modification. UTF-8 characters encoded with multiple bytes (i.e. U+0080 and above) will have only the first byte used for separating fields. The remaining bytes will be treated as a part of the field. BigQuery also supports the escape sequence "\\t" (U+0009) to specify a tab separator. The default value is comma (",", U+002C). + * `destinationEncryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - Custom encryption configuration (e.g., Cloud KMS keys) * `schemaInline` (*type:* `String.t`, *default:* `nil`) - [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT". - * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. + * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - Range partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. * `allowQuotedNewlines` (*type:* `boolean()`, *default:* `nil`) - Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false. - * `createSession` (*type:* `boolean()`, *default:* `nil`) - If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs the load job in non-session mode. - * `destinationTableProperties` (*type:* `GoogleApi.BigQuery.V2.Model.DestinationTableProperties.t`, *default:* `nil`) - [Beta] [Optional] Properties with which to create the destination table if it is new. - * `allowJaggedRows` (*type:* `boolean()`, *default:* `nil`) - [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Only applicable to CSV, ignored for other formats. - * `quote` (*type:* `String.t`, *default:* `"`) - [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. - * `schemaUpdateOptions` (*type:* `list(String.t)`, *default:* `nil`) - Allows the schema of the destination table to be updated as a side effect of the load job if a schema is autodetected or supplied in the job configuration. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. - * `nullMarker` (*type:* `String.t`, *default:* `nil`) - [Optional] Specifies a string that represents a null value in a CSV file. For example, if you specify "\\N", BigQuery interprets "\\N" as a null value when loading a CSV file. The default value is the empty string. If you set this property to a custom value, BigQuery throws an error if an empty string is present for all data types except for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the empty string as an empty value. - * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists, or if you're loading data from Google Cloud Datastore. - * `hivePartitioningOptions` (*type:* `GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t`, *default:* `nil`) - [Optional] Options to configure hive partitioning support. + * `createSession` (*type:* `boolean()`, *default:* `nil`) - Optional. If this property is true, the job creates a new session using a randomly generated session_id. To continue using a created session with subsequent queries, pass the existing session identifier as a `ConnectionProperty` value. The session identifier is returned as part of the `SessionInfo` message within the query statistics. The new session's location will be set to `Job.JobReference.location` if it is present, otherwise it's set to the default location based on existing routing logic. + * `destinationTableProperties` (*type:* `GoogleApi.BigQuery.V2.Model.DestinationTableProperties.t`, *default:* `nil`) - Optional. [Experimental] Properties with which to create the destination table if it is new. + * `allowJaggedRows` (*type:* `boolean()`, *default:* `nil`) - Optional. Accept rows that are missing trailing optional columns. The missing values are treated as nulls. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. Only applicable to CSV, ignored for other formats. + * `quote` (*type:* `String.t`, *default:* `"`) - Optional. The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true. To include the specific quote character within a quoted value, precede it with an additional matching quote character. For example, if you want to escape the default character ' " ', use ' "" '. @default " + * `schemaUpdateOptions` (*type:* `list(String.t)`, *default:* `nil`) - Allows the schema of the destination table to be updated as a side effect of the load job if a schema is autodetected or supplied in the job configuration. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: * ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. + * `nullMarker` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies a string that represents a null value in a CSV file. For example, if you specify "\\N", BigQuery interprets "\\N" as a null value when loading a CSV file. The default value is the empty string. If you set this property to a custom value, BigQuery throws an error if an empty string is present for all data types except for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the empty string as an empty value. + * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - Optional. The schema for the destination table. The schema can be omitted if the destination table already exists, or if you're loading data from Google Cloud Datastore. + * `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. * `destinationTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Required] The destination table to load the data into. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :copyFilesOnly => boolean() | nil, :projectionFields => list(String.t()) | nil, :referenceFileSchemaUri => String.t() | nil, :decimalTargetTypes => list(String.t()) | nil, @@ -67,6 +70,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationLoad do :connectionProperties => list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t()) | nil, :ignoreUnknownValues => boolean() | nil, :preserveAsciiControlCharacters => boolean() | nil, + :fileSetSpecType => String.t() | nil, :autodetect => boolean() | nil, :clustering => GoogleApi.BigQuery.V2.Model.Clustering.t() | nil, :writeDisposition => String.t() | nil, @@ -99,6 +103,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationLoad do :destinationTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil } + field(:copyFilesOnly) field(:projectionFields, type: :list) field(:referenceFileSchemaUri) field(:decimalTargetTypes, type: :list) @@ -106,6 +111,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationLoad do field(:connectionProperties, as: GoogleApi.BigQuery.V2.Model.ConnectionProperty, type: :list) field(:ignoreUnknownValues) field(:preserveAsciiControlCharacters) + field(:fileSetSpecType) field(:autodetect) field(:clustering, as: GoogleApi.BigQuery.V2.Model.Clustering) field(:writeDisposition) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_query.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_query.ex index 37cb3518fc..3f542cf8ca 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_query.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_query.ex @@ -17,34 +17,37 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do @moduledoc """ - + JobConfigurationQuery configures a BigQuery query job. ## Attributes - * `allowLargeResults` (*type:* `boolean()`, *default:* `false`) - [Optional] If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For standard SQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size. - * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - [Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered. - * `connectionProperties` (*type:* `list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t)`, *default:* `nil`) - Connection properties. - * `createDisposition` (*type:* `String.t`, *default:* `nil`) - [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. - * `createSession` (*type:* `boolean()`, *default:* `nil`) - If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode. - * `defaultDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - [Optional] Specifies the default dataset to use for unqualified table names in the query. Note that this does not alter behavior of unqualified dataset names. - * `destinationEncryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - Custom encryption configuration (e.g., Cloud KMS keys). - * `destinationTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results. This property must be set for large results that exceed the maximum response size. - * `flattenResults` (*type:* `boolean()`, *default:* `true`) - [Optional] If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. allowLargeResults must be true if this is set to false. For standard SQL queries, this flag is ignored and results are never flattened. - * `maximumBillingTier` (*type:* `integer()`, *default:* `1`) - [Optional] Limits the billing tier for this job. Queries that have resource usage beyond this tier will fail (without incurring a charge). If unspecified, this will be set to your project default. - * `maximumBytesBilled` (*type:* `String.t`, *default:* `nil`) - [Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default. - * `parameterMode` (*type:* `String.t`, *default:* `nil`) - Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. + * `allowLargeResults` (*type:* `boolean()`, *default:* `false`) - Optional. If true and query uses legacy SQL dialect, allows the query to produce arbitrarily large result tables at a slight cost in performance. Requires destinationTable to be set. For GoogleSQL queries, this flag is ignored and large results are always allowed. However, you must still set destinationTable when result size exceeds the allowed maximum response size. + * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - Clustering specification for the destination table. + * `connectionProperties` (*type:* `list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t)`, *default:* `nil`) - Connection properties which can modify the query behavior. + * `continuous` (*type:* `boolean()`, *default:* `nil`) - [Optional] Specifies whether the query should be executed as a continuous query. The default value is false. + * `createDisposition` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. + * `createSession` (*type:* `boolean()`, *default:* `nil`) - If this property is true, the job creates a new session using a randomly generated session_id. To continue using a created session with subsequent queries, pass the existing session identifier as a `ConnectionProperty` value. The session identifier is returned as part of the `SessionInfo` message within the query statistics. The new session's location will be set to `Job.JobReference.location` if it is present, otherwise it's set to the default location based on existing routing logic. + * `defaultDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - Optional. Specifies the default dataset to use for unqualified table names in the query. This setting does not alter behavior of unqualified dataset names. Setting the system variable `@@dataset_id` achieves the same behavior. See https://cloud.google.com/bigquery/docs/reference/system-variables for more information on system variables. + * `destinationEncryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - Custom encryption configuration (e.g., Cloud KMS keys) + * `destinationTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Optional. Describes the table where the query results should be stored. This property must be set for large results that exceed the maximum response size. For queries that produce anonymous (cached) results, this field will be populated by BigQuery. + * `flattenResults` (*type:* `boolean()`, *default:* `true`) - Optional. If true and query uses legacy SQL dialect, flattens all nested and repeated fields in the query results. allowLargeResults must be true if this is set to false. For GoogleSQL queries, this flag is ignored and results are never flattened. + * `maximumBillingTier` (*type:* `integer()`, *default:* `1`) - Optional. [Deprecated] Maximum billing tier allowed for this query. The billing tier controls the amount of compute resources allotted to the query, and multiplies the on-demand cost of the query accordingly. A query that runs within its allotted resources will succeed and indicate its billing tier in statistics.query.billingTier, but if the query exceeds its allotted resources, it will fail with billingTierLimitExceeded. WARNING: The billed byte amount can be multiplied by an amount up to this number! Most users should not need to alter this setting, and we recommend that you avoid introducing new uses of it. + * `maximumBytesBilled` (*type:* `String.t`, *default:* `nil`) - Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default. + * `parameterMode` (*type:* `String.t`, *default:* `nil`) - GoogleSQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. * `preserveNulls` (*type:* `boolean()`, *default:* `nil`) - [Deprecated] This property is deprecated. - * `priority` (*type:* `String.t`, *default:* `nil`) - [Optional] Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE. - * `query` (*type:* `String.t`, *default:* `nil`) - [Required] SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or standard SQL. - * `queryParameters` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameter.t)`, *default:* `nil`) - Query parameters for standard SQL queries. - * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. - * `schemaUpdateOptions` (*type:* `list(String.t)`, *default:* `nil`) - Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. - * `tableDefinitions` (*type:* `%{optional(String.t) => GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t}`, *default:* `nil`) - [Optional] If querying an external data source outside of BigQuery, describes the data format, location and other properties of the data source. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. + * `priority` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies a priority for the query. Possible values include INTERACTIVE and BATCH. The default value is INTERACTIVE. + * `query` (*type:* `String.t`, *default:* `nil`) - [Required] SQL query text to execute. The useLegacySql field can be used to indicate whether the query uses legacy SQL or GoogleSQL. + * `queryParameters` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameter.t)`, *default:* `nil`) - Query parameters for GoogleSQL queries. + * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - Range partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. + * `schemaUpdateOptions` (*type:* `list(String.t)`, *default:* `nil`) - Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: * ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable. + * `scriptOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ScriptOptions.t`, *default:* `nil`) - Options controlling the execution of scripts. + * `systemVariables` (*type:* `GoogleApi.BigQuery.V2.Model.SystemVariables.t`, *default:* `nil`) - Output only. System variables for GoogleSQL queries. A system variable is output if the variable is settable and its value differs from the system default. "@@" prefix is not included in the name of the System variables. + * `tableDefinitions` (*type:* `%{optional(String.t) => GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t}`, *default:* `nil`) - Optional. You can specify external table definitions, which operate as ephemeral tables that can be queried. These definitions are configured using a JSON map, where the string key represents the table identifier, and the value is the corresponding external data configuration object. * `timePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.TimePartitioning.t`, *default:* `nil`) - Time-based partitioning specification for the destination table. Only one of timePartitioning and rangePartitioning should be specified. - * `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 standard SQL: 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. - * `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. + * `useLegacySql` (*type:* `boolean()`, *default:* `true`) - Optional. 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. + * `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. * `userDefinedFunctionResources` (*type:* `list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t)`, *default:* `nil`) - Describes user-defined function resources used in the query. - * `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 table data 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. + * `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. """ use GoogleApi.Gax.ModelBase @@ -53,6 +56,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do :allowLargeResults => boolean() | nil, :clustering => GoogleApi.BigQuery.V2.Model.Clustering.t() | nil, :connectionProperties => list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t()) | nil, + :continuous => boolean() | nil, :createDisposition => String.t() | nil, :createSession => boolean() | nil, :defaultDataset => GoogleApi.BigQuery.V2.Model.DatasetReference.t() | nil, @@ -69,6 +73,8 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do :queryParameters => list(GoogleApi.BigQuery.V2.Model.QueryParameter.t()) | nil, :rangePartitioning => GoogleApi.BigQuery.V2.Model.RangePartitioning.t() | nil, :schemaUpdateOptions => list(String.t()) | nil, + :scriptOptions => GoogleApi.BigQuery.V2.Model.ScriptOptions.t() | nil, + :systemVariables => GoogleApi.BigQuery.V2.Model.SystemVariables.t() | nil, :tableDefinitions => %{optional(String.t()) => GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t()} | nil, @@ -83,6 +89,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do field(:allowLargeResults) field(:clustering, as: GoogleApi.BigQuery.V2.Model.Clustering) field(:connectionProperties, as: GoogleApi.BigQuery.V2.Model.ConnectionProperty, type: :list) + field(:continuous) field(:createDisposition) field(:createSession) field(:defaultDataset, as: GoogleApi.BigQuery.V2.Model.DatasetReference) @@ -102,6 +109,8 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationQuery do field(:queryParameters, as: GoogleApi.BigQuery.V2.Model.QueryParameter, type: :list) field(:rangePartitioning, as: GoogleApi.BigQuery.V2.Model.RangePartitioning) field(:schemaUpdateOptions, type: :list) + field(:scriptOptions, as: GoogleApi.BigQuery.V2.Model.ScriptOptions) + field(:systemVariables, as: GoogleApi.BigQuery.V2.Model.SystemVariables) field(:tableDefinitions, as: GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration, type: :map) field(:timePartitioning, as: GoogleApi.BigQuery.V2.Model.TimePartitioning) field(:useLegacySql) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_table_copy.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_table_copy.ex index 6f4dedd00d..9bb79d645a 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_table_copy.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_configuration_table_copy.ex @@ -17,18 +17,18 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationTableCopy do @moduledoc """ - + JobConfigurationTableCopy configures a job that copies data from one table to another. For more information on copying tables, see [Copy a table](https://cloud.google.com/bigquery/docs/managing-tables#copy-table). ## Attributes - * `createDisposition` (*type:* `String.t`, *default:* `nil`) - [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. + * `createDisposition` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. * `destinationEncryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - Custom encryption configuration (e.g., Cloud KMS keys). - * `destinationExpirationTime` (*type:* `any()`, *default:* `nil`) - [Optional] The time when the destination table expires. Expired tables will be deleted and their storage reclaimed. - * `destinationTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Required] The destination table - * `operationType` (*type:* `String.t`, *default:* `nil`) - [Optional] Supported operation types in table copy job. + * `destinationExpirationTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. The time when the destination table expires. Expired tables will be deleted and their storage reclaimed. + * `destinationTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Required] The destination table. + * `operationType` (*type:* `String.t`, *default:* `nil`) - Optional. Supported operation types in table copy job. * `sourceTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Pick one] Source table to copy. * `sourceTables` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableReference.t)`, *default:* `nil`) - [Pick one] Source tables to copy. - * `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 table data. 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. + * `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 table data and uses the schema and table constraints from the source table. * 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. """ use GoogleApi.Gax.ModelBase @@ -37,7 +37,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationTableCopy do :createDisposition => String.t() | nil, :destinationEncryptionConfiguration => GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t() | nil, - :destinationExpirationTime => any() | nil, + :destinationExpirationTime => DateTime.t() | nil, :destinationTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, :operationType => String.t() | nil, :sourceTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, @@ -51,7 +51,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobConfigurationTableCopy do as: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration ) - field(:destinationExpirationTime) + field(:destinationExpirationTime, as: DateTime) field(:destinationTable, as: GoogleApi.BigQuery.V2.Model.TableReference) field(:operationType) field(:sourceTable, as: GoogleApi.BigQuery.V2.Model.TableReference) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_creation_reason.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_creation_reason.ex new file mode 100644 index 0000000000..e35ba454e3 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_creation_reason.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.JobCreationReason do + @moduledoc """ + Reason about why a Job was created from a [`jobs.query`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will always be `REQUESTED`. This feature is not yet available. Jobs will always be created. + + ## Attributes + + * `code` (*type:* `String.t`, *default:* `nil`) - Output only. Specifies the high level reason why a Job was created. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => String.t() | nil + } + + field(:code) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.JobCreationReason do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.JobCreationReason.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.JobCreationReason do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_list.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_list.ex index ed4b66a2ac..1c075c7750 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_list.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_list.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobList do @moduledoc """ - + JobList is the response format for a jobs.list call. ## Attributes @@ -25,6 +25,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobList do * `jobs` (*type:* `list(GoogleApi.BigQuery.V2.Model.JobListJobs.t)`, *default:* `nil`) - List of jobs that were requested. * `kind` (*type:* `String.t`, *default:* `bigquery#jobList`) - The resource type of the response. * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token to request the next page of results. + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - A list of skipped locations that were unreachable. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5" """ use GoogleApi.Gax.ModelBase @@ -33,13 +34,15 @@ defmodule GoogleApi.BigQuery.V2.Model.JobList do :etag => String.t() | nil, :jobs => list(GoogleApi.BigQuery.V2.Model.JobListJobs.t()) | nil, :kind => String.t() | nil, - :nextPageToken => String.t() | nil + :nextPageToken => String.t() | nil, + :unreachable => list(String.t()) | nil } field(:etag) field(:jobs, as: GoogleApi.BigQuery.V2.Model.JobListJobs, type: :list) field(:kind) field(:nextPageToken) + field(:unreachable, type: :list) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.JobList do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_list_jobs.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_list_jobs.ex index 1ccfedd9ef..55637c7902 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_list_jobs.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_list_jobs.ex @@ -17,18 +17,19 @@ defmodule GoogleApi.BigQuery.V2.Model.JobListJobs do @moduledoc """ - + ListFormatJob is a partial projection of job information returned as part of a jobs.list response. ## Attributes - * `configuration` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfiguration.t`, *default:* `nil`) - [Full-projection-only] Specifies the job configuration. + * `configuration` (*type:* `GoogleApi.BigQuery.V2.Model.JobConfiguration.t`, *default:* `nil`) - Required. Describes the job configuration. * `errorResult` (*type:* `GoogleApi.BigQuery.V2.Model.ErrorProto.t`, *default:* `nil`) - A result object that will be present only if the job has failed. * `id` (*type:* `String.t`, *default:* `nil`) - Unique opaque ID of the job. - * `jobReference` (*type:* `GoogleApi.BigQuery.V2.Model.JobReference.t`, *default:* `nil`) - Job reference uniquely identifying the job. - * `kind` (*type:* `String.t`, *default:* `bigquery#job`) - The resource type. + * `jobReference` (*type:* `GoogleApi.BigQuery.V2.Model.JobReference.t`, *default:* `nil`) - Unique opaque ID of the job. + * `kind` (*type:* `String.t`, *default:* `nil`) - The resource type. + * `principal_subject` (*type:* `String.t`, *default:* `nil`) - [Full-projection-only] String representation of identity of requesting party. Populated for both first- and third-party identities. Only present for APIs that support third-party identities. * `state` (*type:* `String.t`, *default:* `nil`) - Running state of the job. When the state is DONE, errorResult can be checked to determine whether the job succeeded or failed. - * `statistics` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics.t`, *default:* `nil`) - [Output-only] Information about the job, including starting time and ending time of the job. - * `status` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatus.t`, *default:* `nil`) - [Full-projection-only] Describes the state of the job. + * `statistics` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics.t`, *default:* `nil`) - Output only. Information about the job, including starting time and ending time of the job. + * `status` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatus.t`, *default:* `nil`) - [Full-projection-only] Describes the status of this job. * `user_email` (*type:* `String.t`, *default:* `nil`) - [Full-projection-only] Email address of the user who ran the job. """ @@ -40,6 +41,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobListJobs do :id => String.t() | nil, :jobReference => GoogleApi.BigQuery.V2.Model.JobReference.t() | nil, :kind => String.t() | nil, + :principal_subject => String.t() | nil, :state => String.t() | nil, :statistics => GoogleApi.BigQuery.V2.Model.JobStatistics.t() | nil, :status => GoogleApi.BigQuery.V2.Model.JobStatus.t() | nil, @@ -51,6 +53,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobListJobs do field(:id) field(:jobReference, as: GoogleApi.BigQuery.V2.Model.JobReference) field(:kind) + field(:principal_subject) field(:state) field(:statistics, as: GoogleApi.BigQuery.V2.Model.JobStatistics) field(:status, as: GoogleApi.BigQuery.V2.Model.JobStatus) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_reference.ex index f85a6cf68d..53a7aac4e5 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_reference.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_reference.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.JobReference do @moduledoc """ - + A job reference is a fully qualified identifier for referring to a job. ## Attributes - * `jobId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the job. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024 characters. - * `location` (*type:* `String.t`, *default:* `nil`) - The geographic location of the job. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. - * `projectId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the project containing this job. + * `jobId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the job. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024 characters. + * `location` (*type:* `String.t`, *default:* `nil`) - Optional. The geographic location of the job. The default value is US. For more information about BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations + * `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the project containing this job. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics.ex index d16ca3db1a..2abc4cf344 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics.ex @@ -17,30 +17,31 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics do @moduledoc """ - + Statistics for a single job execution. ## Attributes - * `completionRatio` (*type:* `float()`, *default:* `nil`) - [TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs. - * `copy` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics5.t`, *default:* `nil`) - [Output-only] Statistics for a copy job. - * `creationTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs. - * `dataMaskingStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.DataMaskingStatistics.t`, *default:* `nil`) - [Output-only] Statistics for data masking. Present only for query and extract jobs. - * `endTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state. - * `extract` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics4.t`, *default:* `nil`) - [Output-only] Statistics for an extract job. - * `load` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics3.t`, *default:* `nil`) - [Output-only] Statistics for a load job. - * `numChildJobs` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of child jobs executed. - * `parentJobId` (*type:* `String.t`, *default:* `nil`) - [Output-only] If this is a child job, the id of the parent. - * `query` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics2.t`, *default:* `nil`) - [Output-only] Statistics for a query job. - * `quotaDeferments` (*type:* `list(String.t)`, *default:* `nil`) - [Output-only] Quotas which delayed this job's start time. - * `reservationUsage` (*type:* `list(GoogleApi.BigQuery.V2.Model.JobStatisticsReservationUsage.t)`, *default:* `nil`) - [Output-only] Job resource usage breakdown by reservation. - * `reservation_id` (*type:* `String.t`, *default:* `nil`) - [Output-only] Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job. - * `rowLevelSecurityStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.RowLevelSecurityStatistics.t`, *default:* `nil`) - [Output-only] [Preview] Statistics for row-level security. Present only for query and extract jobs. - * `scriptStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.ScriptStatistics.t`, *default:* `nil`) - [Output-only] Statistics for a child job of a script. - * `sessionInfo` (*type:* `GoogleApi.BigQuery.V2.Model.SessionInfo.t`, *default:* `nil`) - [Output-only] [Preview] Information of the session if this job is part of one. - * `startTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE. - * `totalBytesProcessed` (*type:* `String.t`, *default:* `nil`) - [Output-only] [Deprecated] Use the bytes processed in the query statistics instead. - * `totalSlotMs` (*type:* `String.t`, *default:* `nil`) - [Output-only] Slot-milliseconds for the job. - * `transactionInfo` (*type:* `GoogleApi.BigQuery.V2.Model.TransactionInfo.t`, *default:* `nil`) - [Output-only] [Alpha] Information of the multi-statement transaction if this job is part of one. + * `completionRatio` (*type:* `float()`, *default:* `nil`) - Output only. [TrustedTester] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs. + * `copy` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics5.t`, *default:* `nil`) - Output only. Statistics for a copy job. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs. + * `dataMaskingStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.DataMaskingStatistics.t`, *default:* `nil`) - Output only. Statistics for data-masking. Present only for query and extract jobs. + * `endTime` (*type:* `String.t`, *default:* `nil`) - Output only. End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state. + * `extract` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics4.t`, *default:* `nil`) - Output only. Statistics for an extract job. + * `finalExecutionDurationMs` (*type:* `String.t`, *default:* `nil`) - Output only. The duration in milliseconds of the execution of the final attempt of this job, as BigQuery may internally re-attempt to execute the job. + * `load` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics3.t`, *default:* `nil`) - Output only. Statistics for a load job. + * `numChildJobs` (*type:* `String.t`, *default:* `nil`) - Output only. Number of child jobs executed. + * `parentJobId` (*type:* `String.t`, *default:* `nil`) - Output only. If this is a child job, specifies the job ID of the parent. + * `query` (*type:* `GoogleApi.BigQuery.V2.Model.JobStatistics2.t`, *default:* `nil`) - Output only. Statistics for a query job. + * `quotaDeferments` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Quotas which delayed this job's start time. + * `reservationUsage` (*type:* `list(GoogleApi.BigQuery.V2.Model.JobStatisticsReservationUsage.t)`, *default:* `nil`) - Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. + * `reservation_id` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job. + * `rowLevelSecurityStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.RowLevelSecurityStatistics.t`, *default:* `nil`) - Output only. Statistics for row-level security. Present only for query and extract jobs. + * `scriptStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.ScriptStatistics.t`, *default:* `nil`) - Output only. If this a child job of a script, specifies information about the context of this job within the script. + * `sessionInfo` (*type:* `GoogleApi.BigQuery.V2.Model.SessionInfo.t`, *default:* `nil`) - Output only. Information of the session if this job is part of one. + * `startTime` (*type:* `String.t`, *default:* `nil`) - Output only. Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE. + * `totalBytesProcessed` (*type:* `String.t`, *default:* `nil`) - Output only. Total bytes processed for the job. + * `totalSlotMs` (*type:* `String.t`, *default:* `nil`) - Output only. Slot-milliseconds for the job. + * `transactionInfo` (*type:* `GoogleApi.BigQuery.V2.Model.TransactionInfo.t`, *default:* `nil`) - Output only. [Alpha] Information of the multi-statement transaction if this job is part of one. This property is only expected on a child job or a job that is in a session. A script parent job is not part of the transaction started in the script. """ use GoogleApi.Gax.ModelBase @@ -52,6 +53,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics do :dataMaskingStatistics => GoogleApi.BigQuery.V2.Model.DataMaskingStatistics.t() | nil, :endTime => String.t() | nil, :extract => GoogleApi.BigQuery.V2.Model.JobStatistics4.t() | nil, + :finalExecutionDurationMs => String.t() | nil, :load => GoogleApi.BigQuery.V2.Model.JobStatistics3.t() | nil, :numChildJobs => String.t() | nil, :parentJobId => String.t() | nil, @@ -76,6 +78,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics do field(:dataMaskingStatistics, as: GoogleApi.BigQuery.V2.Model.DataMaskingStatistics) field(:endTime) field(:extract, as: GoogleApi.BigQuery.V2.Model.JobStatistics4) + field(:finalExecutionDurationMs) field(:load, as: GoogleApi.BigQuery.V2.Model.JobStatistics3) field(:numChildJobs) field(:parentJobId) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2.ex index 11601f4e5e..7a0cd1f488 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2.ex @@ -17,43 +17,54 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics2 do @moduledoc """ - + Statistics for a query job. ## Attributes - * `transferredBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and CREATE TABLE AS SELECT (CTAS). - * `mlStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.MlStatistics.t`, *default:* `nil`) - [Output only] Statistics of a BigQuery ML training job. - * `ddlTargetRowAccessPolicy` (*type:* `GoogleApi.BigQuery.V2.Model.RowAccessPolicyReference.t`, *default:* `nil`) - [Output only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. - * `ddlTargetDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA queries. - * `totalBytesProcessedAccuracy` (*type:* `String.t`, *default:* `nil`) - [Output only] For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown. PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would cost. UPPER_BOUND: estimate is upper bound of what the query would cost. - * `modelTraining` (*type:* `GoogleApi.BigQuery.V2.Model.BigQueryModelTraining.t`, *default:* `nil`) - [Output only, Beta] Information about create model query job progress. - * `reservationUsage` (*type:* `list(GoogleApi.BigQuery.V2.Model.JobStatistics2ReservationUsage.t)`, *default:* `nil`) - [Output only] Job resource usage breakdown by reservation. - * `biEngineStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.BiEngineStatistics.t`, *default:* `nil`) - BI Engine specific Statistics. [Output only] BI Engine specific Statistics. - * `totalBytesBilled` (*type:* `String.t`, *default:* `nil`) - [Output only] Total bytes billed for the job. - * `ddlTargetTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Output only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. - * `totalPartitionsProcessed` (*type:* `String.t`, *default:* `nil`) - [Output only] Total number of partitions processed from all partitioned tables referenced in the job. - * `totalBytesProcessed` (*type:* `String.t`, *default:* `nil`) - [Output only] Total bytes processed for the job. - * `ddlAffectedRowAccessPolicyCount` (*type:* `String.t`, *default:* `nil`) - [Output only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. - * `billingTier` (*type:* `integer()`, *default:* `nil`) - [Output only] Billing tier for the job. - * `referencedRoutines` (*type:* `list(GoogleApi.BigQuery.V2.Model.RoutineReference.t)`, *default:* `nil`) - [Output only] Referenced routines (persistent user-defined functions and stored procedures) for the job. - * `sparkStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.SparkStatistics.t`, *default:* `nil`) - [Output only] Statistics of a Spark procedure job. - * `ddlOperationPerformed` (*type:* `String.t`, *default:* `nil`) - The DDL operation performed, possibly dependent on the pre-existence of the DDL target. Possible values (new values might be added in the future): "CREATE": The query created the DDL target. "SKIP": No-op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists, or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE": The query replaced the DDL target. Example case: the query is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL target. - * `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. - * `ddlDestinationTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Output only] The DDL destination table. Present only for ALTER TABLE RENAME TO queries. Note that ddl_target_table is used just for its type information. - * `searchStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.SearchStatistics.t`, *default:* `nil`) - [Output only] Search query specific statistics. - * `estimatedBytesProcessed` (*type:* `String.t`, *default:* `nil`) - [Output only] The original estimate of bytes processed for the job. - * `queryPlan` (*type:* `list(GoogleApi.BigQuery.V2.Model.ExplainQueryStage.t)`, *default:* `nil`) - [Output only] Describes execution plan for the query. - * `totalSlotMs` (*type:* `String.t`, *default:* `nil`) - [Output only] Slot-milliseconds for the job. - * `dmlStats` (*type:* `GoogleApi.BigQuery.V2.Model.DmlStatistics.t`, *default:* `nil`) - [Output only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE. - * `timeline` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t)`, *default:* `nil`) - [Output only] [Beta] Describes a timeline of job execution. - * `referencedTables` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableReference.t)`, *default:* `nil`) - [Output only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. - * `modelTrainingExpectedTotalIteration` (*type:* `String.t`, *default:* `nil`) - [Output only, Beta] Deprecated; do not use. - * `statementType` (*type:* `String.t`, *default:* `nil`) - The type of query statement, if valid. Possible values (new values might be added in the future): "SELECT": SELECT query. "INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "UPDATE": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language. "ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. "ASSERT": ASSERT condition AS 'description'. "CREATE_FUNCTION": CREATE FUNCTION query. "CREATE_MODEL": CREATE [OR REPLACE] MODEL ... AS SELECT ... . "CREATE_PROCEDURE": CREATE PROCEDURE query. "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" : DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE": DROP TABLE query. "DROP_VIEW": DROP VIEW query. - * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - [Output only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. - * `ddlTargetRoutine` (*type:* `GoogleApi.BigQuery.V2.Model.RoutineReference.t`, *default:* `nil`) - The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. - * `modelTrainingCurrentIteration` (*type:* `integer()`, *default:* `nil`) - [Output only, Beta] Deprecated; do not use. - * `cacheHit` (*type:* `boolean()`, *default:* `nil`) - [Output only] Whether the query result was fetched from the query cache. - * `undeclaredQueryParameters` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameter.t)`, *default:* `nil`) - Standard SQL only: list of undeclared query parameters detected during a dry run validation. + * `transferredBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and CREATE TABLE AS SELECT (CTAS). + * `mlStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.MlStatistics.t`, *default:* `nil`) - Output only. Statistics of a BigQuery ML training job. + * `ddlTargetRowAccessPolicy` (*type:* `GoogleApi.BigQuery.V2.Model.RowAccessPolicyReference.t`, *default:* `nil`) - Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. + * `ddlTargetDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset) queries. + * `totalBytesProcessedAccuracy` (*type:* `String.t`, *default:* `nil`) - Output only. For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown. PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would cost. UPPER_BOUND: estimate is upper bound of what the query would cost. + * `modelTraining` (*type:* `GoogleApi.BigQuery.V2.Model.BigQueryModelTraining.t`, *default:* `nil`) - Deprecated. + * `reservationUsage` (*type:* `list(GoogleApi.BigQuery.V2.Model.JobStatistics2ReservationUsage.t)`, *default:* `nil`) - Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. + * `biEngineStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.BiEngineStatistics.t`, *default:* `nil`) - Output only. BI Engine specific Statistics. + * `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. + * `ddlTargetTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. + * `totalPartitionsProcessed` (*type:* `String.t`, *default:* `nil`) - Output only. Total number of partitions processed from all partitioned tables referenced in the job. + * `totalBytesProcessed` (*type:* `String.t`, *default:* `nil`) - Output only. Total bytes processed for the job. + * `ddlAffectedRowAccessPolicyCount` (*type:* `String.t`, *default:* `nil`) - Output only. The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. + * `billingTier` (*type:* `integer()`, *default:* `nil`) - Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related to the Google Cloud notion of "free tier". The value here is a measure of the query's resource consumption relative to the amount of data scanned. For on-demand queries, the limit is 100, and all queries within this limit are billed at the standard on-demand rates. On-demand queries that exceed this limit will fail with a billingTierLimitExceeded error. + * `referencedRoutines` (*type:* `list(GoogleApi.BigQuery.V2.Model.RoutineReference.t)`, *default:* `nil`) - Output only. Referenced routines for the job. + * `metadataCacheStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.MetadataCacheStatistics.t`, *default:* `nil`) - Output only. Statistics of metadata cache usage in a query for BigLake tables. + * `sparkStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.SparkStatistics.t`, *default:* `nil`) - Output only. Statistics of a Spark procedure job. + * `performanceInsights` (*type:* `GoogleApi.BigQuery.V2.Model.PerformanceInsights.t`, *default:* `nil`) - Output only. Performance insights. + * `queryInfo` (*type:* `GoogleApi.BigQuery.V2.Model.QueryInfo.t`, *default:* `nil`) - Output only. Query optimization information for a QUERY job. + * `ddlOperationPerformed` (*type:* `String.t`, *default:* `nil`) - Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL target. + * `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. + * `ddlDestinationTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Output only. The table after rename. Present only for ALTER TABLE RENAME TO query. + * `searchStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.SearchStatistics.t`, *default:* `nil`) - Output only. Search query specific statistics. + * `estimatedBytesProcessed` (*type:* `String.t`, *default:* `nil`) - Output only. The original estimate of bytes processed for the job. + * `exportDataStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.ExportDataStatistics.t`, *default:* `nil`) - Output only. Stats for EXPORT DATA statement. + * `externalServiceCosts` (*type:* `list(GoogleApi.BigQuery.V2.Model.ExternalServiceCost.t)`, *default:* `nil`) - Output only. Job cost breakdown as bigquery internal cost and external service costs. + * `queryPlan` (*type:* `list(GoogleApi.BigQuery.V2.Model.ExplainQueryStage.t)`, *default:* `nil`) - Output only. Describes execution plan for the query. + * `totalSlotMs` (*type:* `String.t`, *default:* `nil`) - Output only. Slot-milliseconds for the job. + * `dclTargetDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - Output only. Referenced dataset for DCL statement. + * `dmlStats` (*type:* `GoogleApi.BigQuery.V2.Model.DmlStatistics.t`, *default:* `nil`) - Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE. + * `timeline` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t)`, *default:* `nil`) - Output only. Describes a timeline of job execution. + * `materializedViewStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.MaterializedViewStatistics.t`, *default:* `nil`) - Output only. Statistics of materialized views of a query job. + * `referencedTables` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableReference.t)`, *default:* `nil`) - Output only. Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. + * `vectorSearchStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.VectorSearchStatistics.t`, *default:* `nil`) - Output only. Vector Search query specific statistics. + * `modelTrainingExpectedTotalIteration` (*type:* `String.t`, *default:* `nil`) - Deprecated. + * `dclTargetView` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Output only. Referenced view for DCL statement. + * `dclTargetTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Output only. Referenced table for DCL statement. + * `statementType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of query statement, if valid. Possible values: * `SELECT`: [`SELECT`](/bigquery/docs/reference/standard-sql/query-syntax#select_list) statement. * `ASSERT`: [`ASSERT`](/bigquery/docs/reference/standard-sql/debugging-statements#assert) statement. * `INSERT`: [`INSERT`](/bigquery/docs/reference/standard-sql/dml-syntax#insert_statement) statement. * `UPDATE`: [`UPDATE`](/bigquery/docs/reference/standard-sql/query-syntax#update_statement) statement. * `DELETE`: [`DELETE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. * `MERGE`: [`MERGE`](/bigquery/docs/reference/standard-sql/data-manipulation-language) statement. * `CREATE_TABLE`: [`CREATE TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_table_statement) statement, without `AS SELECT`. * `CREATE_TABLE_AS_SELECT`: [`CREATE TABLE AS SELECT`](/bigquery/docs/reference/standard-sql/data-definition-language#query_statement) statement. * `CREATE_VIEW`: [`CREATE VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_view_statement) statement. * `CREATE_MODEL`: [`CREATE MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`: [`CREATE MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#create_materialized_view_statement) statement. * `CREATE_FUNCTION`: [`CREATE FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#create_function_statement) statement. * `CREATE_TABLE_FUNCTION`: [`CREATE TABLE FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#create_table_function_statement) statement. * `CREATE_PROCEDURE`: [`CREATE PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_procedure) statement. * `CREATE_ROW_ACCESS_POLICY`: [`CREATE ROW ACCESS POLICY`](/bigquery/docs/reference/standard-sql/data-definition-language#create_row_access_policy_statement) statement. * `CREATE_SCHEMA`: [`CREATE SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-language#create_schema_statement) statement. * `CREATE_SNAPSHOT_TABLE`: [`CREATE SNAPSHOT TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_snapshot_table_statement) statement. * `CREATE_SEARCH_INDEX`: [`CREATE SEARCH INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#create_search_index_statement) statement. * `DROP_TABLE`: [`DROP TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_statement) statement. * `DROP_EXTERNAL_TABLE`: [`DROP EXTERNAL TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_external_table_statement) statement. * `DROP_VIEW`: [`DROP VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_view_statement) statement. * `DROP_MODEL`: [`DROP MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-drop-model) statement. * `DROP_MATERIALIZED_VIEW`: [`DROP MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_materialized_view_statement) statement. * `DROP_FUNCTION` : [`DROP FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_function_statement) statement. * `DROP_TABLE_FUNCTION` : [`DROP TABLE FUNCTION`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_table_function) statement. * `DROP_PROCEDURE`: [`DROP PROCEDURE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_procedure_statement) statement. * `DROP_SEARCH_INDEX`: [`DROP SEARCH INDEX`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_search_index) statement. * `DROP_SCHEMA`: [`DROP SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_schema_statement) statement. * `DROP_SNAPSHOT_TABLE`: [`DROP SNAPSHOT TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_snapshot_table_statement) statement. * `DROP_ROW_ACCESS_POLICY`: [`DROP [ALL] ROW ACCESS POLICY|POLICIES`](/bigquery/docs/reference/standard-sql/data-definition-language#drop_row_access_policy_statement) statement. * `ALTER_TABLE`: [`ALTER TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#alter_table_set_options_statement) statement. * `ALTER_VIEW`: [`ALTER VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#alter_view_set_options_statement) statement. * `ALTER_MATERIALIZED_VIEW`: [`ALTER MATERIALIZED VIEW`](/bigquery/docs/reference/standard-sql/data-definition-language#alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`ALTER SCHEMA`](/bigquery/docs/reference/standard-sql/data-definition-language#aalter_schema_set_options_statement) statement. * `SCRIPT`: [`SCRIPT`](/bigquery/docs/reference/standard-sql/procedural-language). * `TRUNCATE_TABLE`: [`TRUNCATE TABLE`](/bigquery/docs/reference/standard-sql/dml-syntax#truncate_table_statement) statement. * `CREATE_EXTERNAL_TABLE`: [`CREATE EXTERNAL TABLE`](/bigquery/docs/reference/standard-sql/data-definition-language#create_external_table_statement) statement. * `EXPORT_DATA`: [`EXPORT DATA`](/bigquery/docs/reference/standard-sql/other-statements#export_data_statement) statement. * `EXPORT_MODEL`: [`EXPORT MODEL`](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-export-model) statement. * `LOAD_DATA`: [`LOAD DATA`](/bigquery/docs/reference/standard-sql/other-statements#load_data_statement) statement. * `CALL`: [`CALL`](/bigquery/docs/reference/standard-sql/procedural-language#call) statement. + * `loadQueryStatistics` (*type:* `GoogleApi.BigQuery.V2.Model.LoadQueryStatistics.t`, *default:* `nil`) - Output only. Statistics for a LOAD query. + * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - Output only. The schema of the results. Present only for successful dry run of non-legacy SQL queries. + * `ddlTargetRoutine` (*type:* `GoogleApi.BigQuery.V2.Model.RoutineReference.t`, *default:* `nil`) - Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. + * `modelTrainingCurrentIteration` (*type:* `integer()`, *default:* `nil`) - Deprecated. + * `cacheHit` (*type:* `boolean()`, *default:* `nil`) - Output only. Whether the query result was fetched from the query cache. + * `undeclaredQueryParameters` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameter.t)`, *default:* `nil`) - Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run validation. """ use GoogleApi.Gax.ModelBase @@ -76,19 +87,33 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics2 do :ddlAffectedRowAccessPolicyCount => String.t() | nil, :billingTier => integer() | nil, :referencedRoutines => list(GoogleApi.BigQuery.V2.Model.RoutineReference.t()) | nil, + :metadataCacheStatistics => + GoogleApi.BigQuery.V2.Model.MetadataCacheStatistics.t() | nil, :sparkStatistics => GoogleApi.BigQuery.V2.Model.SparkStatistics.t() | nil, + :performanceInsights => GoogleApi.BigQuery.V2.Model.PerformanceInsights.t() | nil, + :queryInfo => GoogleApi.BigQuery.V2.Model.QueryInfo.t() | nil, :ddlOperationPerformed => String.t() | nil, :numDmlAffectedRows => String.t() | nil, :ddlDestinationTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, :searchStatistics => GoogleApi.BigQuery.V2.Model.SearchStatistics.t() | nil, :estimatedBytesProcessed => String.t() | nil, + :exportDataStatistics => GoogleApi.BigQuery.V2.Model.ExportDataStatistics.t() | nil, + :externalServiceCosts => + list(GoogleApi.BigQuery.V2.Model.ExternalServiceCost.t()) | nil, :queryPlan => list(GoogleApi.BigQuery.V2.Model.ExplainQueryStage.t()) | nil, :totalSlotMs => String.t() | nil, + :dclTargetDataset => GoogleApi.BigQuery.V2.Model.DatasetReference.t() | nil, :dmlStats => GoogleApi.BigQuery.V2.Model.DmlStatistics.t() | nil, :timeline => list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t()) | nil, + :materializedViewStatistics => + GoogleApi.BigQuery.V2.Model.MaterializedViewStatistics.t() | nil, :referencedTables => list(GoogleApi.BigQuery.V2.Model.TableReference.t()) | nil, + :vectorSearchStatistics => GoogleApi.BigQuery.V2.Model.VectorSearchStatistics.t() | nil, :modelTrainingExpectedTotalIteration => String.t() | nil, + :dclTargetView => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, + :dclTargetTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, :statementType => String.t() | nil, + :loadQueryStatistics => GoogleApi.BigQuery.V2.Model.LoadQueryStatistics.t() | nil, :schema => GoogleApi.BigQuery.V2.Model.TableSchema.t() | nil, :ddlTargetRoutine => GoogleApi.BigQuery.V2.Model.RoutineReference.t() | nil, :modelTrainingCurrentIteration => integer() | nil, @@ -116,19 +141,30 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics2 do field(:ddlAffectedRowAccessPolicyCount) field(:billingTier) field(:referencedRoutines, as: GoogleApi.BigQuery.V2.Model.RoutineReference, type: :list) + field(:metadataCacheStatistics, as: GoogleApi.BigQuery.V2.Model.MetadataCacheStatistics) field(:sparkStatistics, as: GoogleApi.BigQuery.V2.Model.SparkStatistics) + field(:performanceInsights, as: GoogleApi.BigQuery.V2.Model.PerformanceInsights) + field(:queryInfo, as: GoogleApi.BigQuery.V2.Model.QueryInfo) field(:ddlOperationPerformed) field(:numDmlAffectedRows) field(:ddlDestinationTable, as: GoogleApi.BigQuery.V2.Model.TableReference) field(:searchStatistics, as: GoogleApi.BigQuery.V2.Model.SearchStatistics) field(:estimatedBytesProcessed) + field(:exportDataStatistics, as: GoogleApi.BigQuery.V2.Model.ExportDataStatistics) + field(:externalServiceCosts, as: GoogleApi.BigQuery.V2.Model.ExternalServiceCost, type: :list) field(:queryPlan, as: GoogleApi.BigQuery.V2.Model.ExplainQueryStage, type: :list) field(:totalSlotMs) + field(:dclTargetDataset, as: GoogleApi.BigQuery.V2.Model.DatasetReference) field(:dmlStats, as: GoogleApi.BigQuery.V2.Model.DmlStatistics) field(:timeline, as: GoogleApi.BigQuery.V2.Model.QueryTimelineSample, type: :list) + field(:materializedViewStatistics, as: GoogleApi.BigQuery.V2.Model.MaterializedViewStatistics) field(:referencedTables, as: GoogleApi.BigQuery.V2.Model.TableReference, type: :list) + field(:vectorSearchStatistics, as: GoogleApi.BigQuery.V2.Model.VectorSearchStatistics) field(:modelTrainingExpectedTotalIteration) + field(:dclTargetView, as: GoogleApi.BigQuery.V2.Model.TableReference) + field(:dclTargetTable, as: GoogleApi.BigQuery.V2.Model.TableReference) field(:statementType) + field(:loadQueryStatistics, as: GoogleApi.BigQuery.V2.Model.LoadQueryStatistics) field(:schema, as: GoogleApi.BigQuery.V2.Model.TableSchema) field(:ddlTargetRoutine, as: GoogleApi.BigQuery.V2.Model.RoutineReference) field(:modelTrainingCurrentIteration) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2_reservation_usage.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2_reservation_usage.ex index a73a32e9d5..526c52b468 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2_reservation_usage.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics2_reservation_usage.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics2ReservationUsage do @moduledoc """ - + Job resource usage breakdown by reservation. ## Attributes - * `name` (*type:* `String.t`, *default:* `nil`) - [Output only] Reservation name or "unreserved" for on-demand resources usage. - * `slotMs` (*type:* `String.t`, *default:* `nil`) - [Output only] Slot-milliseconds the job spent in the given reservation. + * `name` (*type:* `String.t`, *default:* `nil`) - Reservation name or "unreserved" for on-demand resources usage. + * `slotMs` (*type:* `String.t`, *default:* `nil`) - Total slot milliseconds used by the reservation for a particular job. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics3.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics3.ex index 3cca11156f..211ec1aab4 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics3.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics3.ex @@ -17,15 +17,16 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics3 do @moduledoc """ - + Statistics for a load job. ## Attributes - * `badRecords` (*type:* `String.t`, *default:* `nil`) - [Output-only] The number of bad records encountered. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data. - * `inputFileBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of bytes of source data in a load job. - * `inputFiles` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of source files in a load job. - * `outputBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Size of the loaded data in bytes. Note that while a load job is in the running state, this value may change. - * `outputRows` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change. + * `badRecords` (*type:* `String.t`, *default:* `nil`) - Output only. The number of bad records encountered. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data. + * `inputFileBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of bytes of source data in a load job. + * `inputFiles` (*type:* `String.t`, *default:* `nil`) - Output only. Number of source files in a load job. + * `outputBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Size of the loaded data in bytes. Note that while a load job is in the running state, this value may change. + * `outputRows` (*type:* `String.t`, *default:* `nil`) - Output only. Number of rows imported in a load job. Note that while an import job is in the running state, this value may change. + * `timeline` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t)`, *default:* `nil`) - Output only. Describes a timeline of job execution. """ use GoogleApi.Gax.ModelBase @@ -35,7 +36,8 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics3 do :inputFileBytes => String.t() | nil, :inputFiles => String.t() | nil, :outputBytes => String.t() | nil, - :outputRows => String.t() | nil + :outputRows => String.t() | nil, + :timeline => list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t()) | nil } field(:badRecords) @@ -43,6 +45,7 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics3 do field(:inputFiles) field(:outputBytes) field(:outputRows) + field(:timeline, as: GoogleApi.BigQuery.V2.Model.QueryTimelineSample, type: :list) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.JobStatistics3 do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics4.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics4.ex index d4b2cc77a3..e70f1b71ee 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics4.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics4.ex @@ -17,23 +17,26 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics4 do @moduledoc """ - + Statistics for an extract job. ## Attributes - * `destinationUriFileCounts` (*type:* `list(String.t)`, *default:* `nil`) - [Output-only] Number of files per destination URI or URI pattern specified in the extract configuration. These values will be in the same order as the URIs specified in the 'destinationUris' field. - * `inputBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of user bytes extracted into the result. This is the byte count as computed by BigQuery for billing purposes. + * `destinationUriFileCounts` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Number of files per destination URI or URI pattern specified in the extract configuration. These values will be in the same order as the URIs specified in the 'destinationUris' field. + * `inputBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of user bytes extracted into the result. This is the byte count as computed by BigQuery for billing purposes and doesn't have any relationship with the number of actual result bytes extracted in the desired format. + * `timeline` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t)`, *default:* `nil`) - Output only. Describes a timeline of job execution. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :destinationUriFileCounts => list(String.t()) | nil, - :inputBytes => String.t() | nil + :inputBytes => String.t() | nil, + :timeline => list(GoogleApi.BigQuery.V2.Model.QueryTimelineSample.t()) | nil } field(:destinationUriFileCounts, type: :list) field(:inputBytes) + field(:timeline, as: GoogleApi.BigQuery.V2.Model.QueryTimelineSample, type: :list) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.JobStatistics4 do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics5.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics5.ex index 35a6cab34d..bf7a29aa7c 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics5.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics5.ex @@ -17,23 +17,23 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatistics5 do @moduledoc """ - + Statistics for a copy job. ## Attributes - * `copied_logical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of logical bytes copied to the destination table. - * `copied_rows` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of rows copied to the destination table. + * `copiedLogicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of logical bytes copied to the destination table. + * `copiedRows` (*type:* `String.t`, *default:* `nil`) - Output only. Number of rows copied to the destination table. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :copied_logical_bytes => String.t() | nil, - :copied_rows => String.t() | nil + :copiedLogicalBytes => String.t() | nil, + :copiedRows => String.t() | nil } - field(:copied_logical_bytes) - field(:copied_rows) + field(:copiedLogicalBytes) + field(:copiedRows) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.JobStatistics5 do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics_reservation_usage.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics_reservation_usage.ex index c180880d81..994cc90df9 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_statistics_reservation_usage.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_statistics_reservation_usage.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatisticsReservationUsage do @moduledoc """ - + Job resource usage breakdown by reservation. ## Attributes - * `name` (*type:* `String.t`, *default:* `nil`) - [Output-only] Reservation name or "unreserved" for on-demand resources usage. - * `slotMs` (*type:* `String.t`, *default:* `nil`) - [Output-only] Slot-milliseconds the job spent in the given reservation. + * `name` (*type:* `String.t`, *default:* `nil`) - Reservation name or "unreserved" for on-demand resources usage. + * `slotMs` (*type:* `String.t`, *default:* `nil`) - Total slot milliseconds used by the reservation for a particular job. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/job_status.ex b/clients/big_query/lib/google_api/big_query/v2/model/job_status.ex index bd26d15f82..20f0c675d4 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/job_status.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/job_status.ex @@ -21,9 +21,9 @@ defmodule GoogleApi.BigQuery.V2.Model.JobStatus do ## Attributes - * `errorResult` (*type:* `GoogleApi.BigQuery.V2.Model.ErrorProto.t`, *default:* `nil`) - [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful. - * `errors` (*type:* `list(GoogleApi.BigQuery.V2.Model.ErrorProto.t)`, *default:* `nil`) - [Output-only] The first errors 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. - * `state` (*type:* `String.t`, *default:* `nil`) - [Output-only] Running state of the job. + * `errorResult` (*type:* `GoogleApi.BigQuery.V2.Model.ErrorProto.t`, *default:* `nil`) - Output only. Final error result of the job. If present, indicates that the job has completed and was unsuccessful. + * `errors` (*type:* `list(GoogleApi.BigQuery.V2.Model.ErrorProto.t)`, *default:* `nil`) - Output only. The first errors 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 not completed or was unsuccessful. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Running state of the job. Valid states include 'PENDING', 'RUNNING', and 'DONE'. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/json_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/json_options.ex new file mode 100644 index 0000000000..990a05e65e --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/json_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.JsonOptions do + @moduledoc """ + Json Options for load and make external tables. + + ## Attributes + + * `encoding` (*type:* `String.t`, *default:* `nil`) - Optional. The character encoding of the data. The supported values are UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :encoding => String.t() | nil + } + + field(:encoding) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.JsonOptions do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.JsonOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.JsonOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/linked_dataset_metadata.ex b/clients/big_query/lib/google_api/big_query/v2/model/linked_dataset_metadata.ex new file mode 100644 index 0000000000..38eca5b262 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/linked_dataset_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.LinkedDatasetMetadata do + @moduledoc """ + Metadata about the Linked Dataset. + + ## Attributes + + * `linkState` (*type:* `String.t`, *default:* `nil`) - Output only. Specifies whether Linked Dataset is currently in a linked state or not. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :linkState => String.t() | nil + } + + field(:linkState) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.LinkedDatasetMetadata do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.LinkedDatasetMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.LinkedDatasetMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/linked_dataset_source.ex b/clients/big_query/lib/google_api/big_query/v2/model/linked_dataset_source.ex new file mode 100644 index 0000000000..dfe5fb17d5 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/linked_dataset_source.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.LinkedDatasetSource do + @moduledoc """ + A dataset source type which refers to another BigQuery dataset. + + ## Attributes + + * `sourceDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - The source dataset reference contains project numbers and not project ids. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :sourceDataset => GoogleApi.BigQuery.V2.Model.DatasetReference.t() | nil + } + + field(:sourceDataset, as: GoogleApi.BigQuery.V2.Model.DatasetReference) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.LinkedDatasetSource do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.LinkedDatasetSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.LinkedDatasetSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/list_models_response.ex b/clients/big_query/lib/google_api/big_query/v2/model/list_models_response.ex index f58ce06528..ee14c336b9 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/list_models_response.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/list_models_response.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.ListModelsResponse do @moduledoc """ - + Response format for a single page when listing BigQuery ML models. ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/list_routines_response.ex b/clients/big_query/lib/google_api/big_query/v2/model/list_routines_response.ex index 03937c16db..011cfbae85 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/list_routines_response.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/list_routines_response.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.ListRoutinesResponse do @moduledoc """ - + Describes the format of a single result page when listing routines. ## Attributes * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token to request the next page of results. - * `routines` (*type:* `list(GoogleApi.BigQuery.V2.Model.Routine.t)`, *default:* `nil`) - Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language. + * `routines` (*type:* `list(GoogleApi.BigQuery.V2.Model.Routine.t)`, *default:* `nil`) - Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, language, and remote_function_options. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/load_query_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/load_query_statistics.ex new file mode 100644 index 0000000000..b817aab7cb --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/load_query_statistics.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.LoadQueryStatistics do + @moduledoc """ + Statistics for a LOAD query. + + ## Attributes + + * `badRecords` (*type:* `String.t`, *default:* `nil`) - Output only. The number of bad records encountered while processing a LOAD query. Note that if the job has failed because of more bad records encountered than the maximum allowed in the load job configuration, then this number can be less than the total number of bad records present in the input data. + * `bytesTransferred` (*type:* `String.t`, *default:* `nil`) - Output only. This field is deprecated. The number of bytes of source data copied over the network for a `LOAD` query. `transferred_bytes` has the canonical value for physical transferred bytes, which is used for BigQuery Omni billing. + * `inputFileBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of bytes of source data in a LOAD query. + * `inputFiles` (*type:* `String.t`, *default:* `nil`) - Output only. Number of source files in a LOAD query. + * `outputBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Size of the loaded data in bytes. Note that while a LOAD query is in the running state, this value may change. + * `outputRows` (*type:* `String.t`, *default:* `nil`) - Output only. Number of rows imported in a LOAD query. Note that while a LOAD query is in the running state, this value may change. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :badRecords => String.t() | nil, + :bytesTransferred => String.t() | nil, + :inputFileBytes => String.t() | nil, + :inputFiles => String.t() | nil, + :outputBytes => String.t() | nil, + :outputRows => String.t() | nil + } + + field(:badRecords) + field(:bytesTransferred) + field(:inputFileBytes) + field(:inputFiles) + field(:outputBytes) + field(:outputRows) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.LoadQueryStatistics do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.LoadQueryStatistics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.LoadQueryStatistics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/materialized_view.ex b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view.ex new file mode 100644 index 0000000000..95b5274304 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.MaterializedView do + @moduledoc """ + A materialized view considered for a query job. + + ## Attributes + + * `chosen` (*type:* `boolean()`, *default:* `nil`) - Whether the materialized view is chosen for the query. A materialized view can be chosen to rewrite multiple parts of the same query. If a materialized view is chosen to rewrite any part of the query, then this field is true, even if the materialized view was not chosen to rewrite others parts. + * `estimatedBytesSaved` (*type:* `String.t`, *default:* `nil`) - If present, specifies a best-effort estimation of the bytes saved by using the materialized view rather than its base tables. + * `rejectedReason` (*type:* `String.t`, *default:* `nil`) - If present, specifies the reason why the materialized view was not chosen for the query. + * `tableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - The candidate materialized view. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :chosen => boolean() | nil, + :estimatedBytesSaved => String.t() | nil, + :rejectedReason => String.t() | nil, + :tableReference => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil + } + + field(:chosen) + field(:estimatedBytesSaved) + field(:rejectedReason) + field(:tableReference, as: GoogleApi.BigQuery.V2.Model.TableReference) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.MaterializedView do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.MaterializedView.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.MaterializedView do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_definition.ex b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_definition.ex index 84416f888d..2456dce47f 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_definition.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_definition.ex @@ -17,20 +17,22 @@ defmodule GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition do @moduledoc """ - + Definition and configuration of a materialized view. ## Attributes - * `enableRefresh` (*type:* `boolean()`, *default:* `nil`) - [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". - * `lastRefreshTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch. + * `allowNonIncrementalDefinition` (*type:* `boolean()`, *default:* `nil`) - Optional. This option declares authors intention to construct a materialized view that will not be refreshed incrementally. + * `enableRefresh` (*type:* `boolean()`, *default:* `nil`) - Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". + * `lastRefreshTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this materialized view was last refreshed, in milliseconds since the epoch. * `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). - * `query` (*type:* `String.t`, *default:* `nil`) - [Required] A query whose result is persisted. - * `refreshIntervalMs` (*type:* `String.t`, *default:* `nil`) - [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes). + * `query` (*type:* `String.t`, *default:* `nil`) - Required. A query whose results are persisted. + * `refreshIntervalMs` (*type:* `String.t`, *default:* `nil`) - Optional. The maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes). """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :allowNonIncrementalDefinition => boolean() | nil, :enableRefresh => boolean() | nil, :lastRefreshTime => String.t() | nil, :maxStaleness => String.t() | nil, @@ -38,6 +40,7 @@ defmodule GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition do :refreshIntervalMs => String.t() | nil } + field(:allowNonIncrementalDefinition) field(:enableRefresh) field(:lastRefreshTime) field(:maxStaleness) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_statistics.ex new file mode 100644 index 0000000000..42c97ee6ef --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_statistics.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.MaterializedViewStatistics do + @moduledoc """ + Statistics of materialized views considered in a query job. + + ## Attributes + + * `materializedView` (*type:* `list(GoogleApi.BigQuery.V2.Model.MaterializedView.t)`, *default:* `nil`) - Materialized views considered for the query job. Only certain materialized views are used. For a detailed list, see the child message. If many materialized views are considered, then the list might be incomplete. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :materializedView => list(GoogleApi.BigQuery.V2.Model.MaterializedView.t()) | nil + } + + field(:materializedView, as: GoogleApi.BigQuery.V2.Model.MaterializedView, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.MaterializedViewStatistics do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.MaterializedViewStatistics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.MaterializedViewStatistics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_status.ex b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_status.ex new file mode 100644 index 0000000000..99c77422f3 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/materialized_view_status.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.MaterializedViewStatus do + @moduledoc """ + Status of a materialized view. The last refresh timestamp status is omitted here, but is present in the MaterializedViewDefinition message. + + ## Attributes + + * `lastRefreshStatus` (*type:* `GoogleApi.BigQuery.V2.Model.ErrorProto.t`, *default:* `nil`) - Output only. Error result of the last automatic refresh. If present, indicates that the last automatic refresh was unsuccessful. + * `refreshWatermark` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Refresh watermark of materialized view. The base tables' data were collected into the materialized view cache until this time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :lastRefreshStatus => GoogleApi.BigQuery.V2.Model.ErrorProto.t() | nil, + :refreshWatermark => DateTime.t() | nil + } + + field(:lastRefreshStatus, as: GoogleApi.BigQuery.V2.Model.ErrorProto) + field(:refreshWatermark, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.MaterializedViewStatus do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.MaterializedViewStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.MaterializedViewStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/metadata_cache_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/metadata_cache_statistics.ex new file mode 100644 index 0000000000..998ab798f7 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/metadata_cache_statistics.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.MetadataCacheStatistics do + @moduledoc """ + Statistics for metadata caching in BigLake tables. + + ## Attributes + + * `tableMetadataCacheUsage` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableMetadataCacheUsage.t)`, *default:* `nil`) - Set for the Metadata caching eligible tables referenced in the query. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :tableMetadataCacheUsage => + list(GoogleApi.BigQuery.V2.Model.TableMetadataCacheUsage.t()) | nil + } + + field(:tableMetadataCacheUsage, + as: GoogleApi.BigQuery.V2.Model.TableMetadataCacheUsage, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.MetadataCacheStatistics do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.MetadataCacheStatistics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.MetadataCacheStatistics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/ml_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/ml_statistics.ex index f9b26ad4c0..25314a52cb 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/ml_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/ml_statistics.ex @@ -17,23 +17,32 @@ defmodule GoogleApi.BigQuery.V2.Model.MlStatistics do @moduledoc """ - + Job statistics specific to a BigQuery ML training job. ## Attributes - * `iterationResults` (*type:* `list(GoogleApi.BigQuery.V2.Model.IterationResult.t)`, *default:* `nil`) - Results for all completed iterations. - * `maxIterations` (*type:* `String.t`, *default:* `nil`) - Maximum number of iterations specified as max_iterations in the 'CREATE MODEL' query. The actual number of iterations may be less than this number due to early stop. + * `hparamTrials` (*type:* `list(GoogleApi.BigQuery.V2.Model.HparamTuningTrial.t)`, *default:* `nil`) - Output only. Trials of a [hyperparameter tuning job](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) sorted by trial_id. + * `iterationResults` (*type:* `list(GoogleApi.BigQuery.V2.Model.IterationResult.t)`, *default:* `nil`) - Results for all completed iterations. Empty for [hyperparameter tuning jobs](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview). + * `maxIterations` (*type:* `String.t`, *default:* `nil`) - Output only. Maximum number of iterations specified as max_iterations in the 'CREATE MODEL' query. The actual number of iterations may be less than this number due to early stop. + * `modelType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the model that is being trained. + * `trainingType` (*type:* `String.t`, *default:* `nil`) - Output only. Training type of the job. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :hparamTrials => list(GoogleApi.BigQuery.V2.Model.HparamTuningTrial.t()) | nil, :iterationResults => list(GoogleApi.BigQuery.V2.Model.IterationResult.t()) | nil, - :maxIterations => String.t() | nil + :maxIterations => String.t() | nil, + :modelType => String.t() | nil, + :trainingType => String.t() | nil } + field(:hparamTrials, as: GoogleApi.BigQuery.V2.Model.HparamTuningTrial, type: :list) field(:iterationResults, as: GoogleApi.BigQuery.V2.Model.IterationResult, type: :list) field(:maxIterations) + field(:modelType) + field(:trainingType) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.MlStatistics do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/model.ex b/clients/big_query/lib/google_api/big_query/v2/model/model.ex index e97b9ead5d..01e55ec876 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/model.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/model.ex @@ -28,7 +28,7 @@ defmodule GoogleApi.BigQuery.V2.Model.Model do * `encryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - Custom encryption configuration (e.g., Cloud KMS keys). This shows the encryption configuration of the model data while stored in BigQuery storage. This field can be used with PatchModel to update encryption key for an already encrypted model. * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A hash of this resource. * `expirationTime` (*type:* `String.t`, *default:* `nil`) - Optional. The time when this model expires, in milliseconds since the epoch. If not present, the model will persist indefinitely. Expired models will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created models. - * `featureColumns` (*type:* `list(GoogleApi.BigQuery.V2.Model.StandardSqlField.t)`, *default:* `nil`) - Output only. Input feature columns that were used to train this model. + * `featureColumns` (*type:* `list(GoogleApi.BigQuery.V2.Model.StandardSqlField.t)`, *default:* `nil`) - Output only. Input feature columns for the model inference. If the model is trained with TRANSFORM clause, these are the input of the TRANSFORM clause. * `friendlyName` (*type:* `String.t`, *default:* `nil`) - Optional. A descriptive name for this model. * `hparamSearchSpaces` (*type:* `GoogleApi.BigQuery.V2.Model.HparamSearchSpaces.t`, *default:* `nil`) - Output only. All hyperparameter search spaces in this model. * `hparamTrials` (*type:* `list(GoogleApi.BigQuery.V2.Model.HparamTuningTrial.t)`, *default:* `nil`) - Output only. Trials of a [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) model sorted by trial_id. @@ -39,7 +39,9 @@ defmodule GoogleApi.BigQuery.V2.Model.Model do * `modelReference` (*type:* `GoogleApi.BigQuery.V2.Model.ModelReference.t`, *default:* `nil`) - Required. Unique identifier for this model. * `modelType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the model resource. * `optimalTrialIds` (*type:* `list(String.t)`, *default:* `nil`) - Output only. For single-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it only contains the best trial. For multi-objective [hyperparameter tuning](/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-hp-tuning-overview) models, it contains all Pareto optimal trials sorted by trial_id. + * `remoteModelInfo` (*type:* `GoogleApi.BigQuery.V2.Model.RemoteModelInfo.t`, *default:* `nil`) - Output only. Remote model info * `trainingRuns` (*type:* `list(GoogleApi.BigQuery.V2.Model.TrainingRun.t)`, *default:* `nil`) - Information for all training runs in increasing order of start_time. + * `transformColumns` (*type:* `list(GoogleApi.BigQuery.V2.Model.TransformColumn.t)`, *default:* `nil`) - Output only. This field will be populated if a TRANSFORM clause was used to train a model. TRANSFORM clause (if used) takes feature_columns as input and outputs transform_columns. transform_columns then are used to train the model. """ use GoogleApi.Gax.ModelBase @@ -64,7 +66,9 @@ defmodule GoogleApi.BigQuery.V2.Model.Model do :modelReference => GoogleApi.BigQuery.V2.Model.ModelReference.t() | nil, :modelType => String.t() | nil, :optimalTrialIds => list(String.t()) | nil, - :trainingRuns => list(GoogleApi.BigQuery.V2.Model.TrainingRun.t()) | nil + :remoteModelInfo => GoogleApi.BigQuery.V2.Model.RemoteModelInfo.t() | nil, + :trainingRuns => list(GoogleApi.BigQuery.V2.Model.TrainingRun.t()) | nil, + :transformColumns => list(GoogleApi.BigQuery.V2.Model.TransformColumn.t()) | nil } field(:bestTrialId) @@ -85,7 +89,9 @@ defmodule GoogleApi.BigQuery.V2.Model.Model do field(:modelReference, as: GoogleApi.BigQuery.V2.Model.ModelReference) field(:modelType) field(:optimalTrialIds, type: :list) + field(:remoteModelInfo, as: GoogleApi.BigQuery.V2.Model.RemoteModelInfo) field(:trainingRuns, as: GoogleApi.BigQuery.V2.Model.TrainingRun, type: :list) + field(:transformColumns, as: GoogleApi.BigQuery.V2.Model.TransformColumn, type: :list) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.Model do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/model_definition.ex b/clients/big_query/lib/google_api/big_query/v2/model/model_definition.ex index 5423c27282..539662bd31 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/model_definition.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/model_definition.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.BigQuery.V2.Model.ModelDefinition do ## Attributes - * `modelOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ModelDefinitionModelOptions.t`, *default:* `nil`) - [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query. - * `trainingRuns` (*type:* `list(GoogleApi.BigQuery.V2.Model.BqmlTrainingRun.t)`, *default:* `nil`) - [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query. + * `modelOptions` (*type:* `GoogleApi.BigQuery.V2.Model.ModelDefinitionModelOptions.t`, *default:* `nil`) - Deprecated. + * `trainingRuns` (*type:* `list(GoogleApi.BigQuery.V2.Model.BqmlTrainingRun.t)`, *default:* `nil`) - Deprecated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/model_definition_model_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/model_definition_model_options.ex index 71c692037e..6ab217700f 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/model_definition_model_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/model_definition_model_options.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.ModelDefinitionModelOptions do @moduledoc """ - [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query. + Deprecated. ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/model_extract_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/model_extract_options.ex new file mode 100644 index 0000000000..854a6dab69 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/model_extract_options.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.ModelExtractOptions do + @moduledoc """ + Options related to model extraction. + + ## Attributes + + * `trialId` (*type:* `String.t`, *default:* `nil`) - The 1-based ID of the trial to be exported from a hyperparameter tuning model. If not specified, the trial with id = [Model](/bigquery/docs/reference/rest/v2/models#resource:-model).defaultTrialId is exported. This field is ignored for models not trained with hyperparameter tuning. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :trialId => String.t() | nil + } + + field(:trialId) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.ModelExtractOptions do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.ModelExtractOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.ModelExtractOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/model_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/model_reference.ex index a2e4ce7c5f..05fc8d776b 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/model_reference.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/model_reference.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.ModelReference do @moduledoc """ - + Id path of a model. ## Attributes - * `datasetId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the dataset containing this model. - * `modelId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. - * `projectId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the project containing this model. + * `datasetId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the dataset containing this model. + * `modelId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the project containing this model. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/parquet_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/parquet_options.ex index faa8d191a7..09e76b717d 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/parquet_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/parquet_options.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.ParquetOptions do @moduledoc """ - + Parquet Options for load and make external tables. ## Attributes - * `enableListInference` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates whether to use schema inference specifically for Parquet LIST logical type. - * `enumAsString` (*type:* `boolean()`, *default:* `nil`) - [Optional] Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. + * `enableListInference` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates whether to use schema inference specifically for Parquet LIST logical type. + * `enumAsString` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/partitioned_column.ex b/clients/big_query/lib/google_api/big_query/v2/model/partitioned_column.ex new file mode 100644 index 0000000000..e13bc41e3d --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/partitioned_column.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.PartitionedColumn do + @moduledoc """ + The partitioning column information. + + ## Attributes + + * `field` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the partition column. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :field => String.t() | nil + } + + field(:field) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.PartitionedColumn do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.PartitionedColumn.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.PartitionedColumn do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/partitioning_definition.ex b/clients/big_query/lib/google_api/big_query/v2/model/partitioning_definition.ex new file mode 100644 index 0000000000..32fc02b7c0 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/partitioning_definition.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.PartitioningDefinition do + @moduledoc """ + The partitioning information, which includes managed table and external table partition information. + + ## Attributes + + * `partitionedColumn` (*type:* `list(GoogleApi.BigQuery.V2.Model.PartitionedColumn.t)`, *default:* `nil`) - Output only. Details about each partitioning column. BigQuery native tables only support 1 partitioning column. Other table types may support 0, 1 or more partitioning columns. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :partitionedColumn => list(GoogleApi.BigQuery.V2.Model.PartitionedColumn.t()) | nil + } + + field(:partitionedColumn, as: GoogleApi.BigQuery.V2.Model.PartitionedColumn, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.PartitioningDefinition do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.PartitioningDefinition.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.PartitioningDefinition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/performance_insights.ex b/clients/big_query/lib/google_api/big_query/v2/model/performance_insights.ex new file mode 100644 index 0000000000..4538641b53 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/performance_insights.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.PerformanceInsights do + @moduledoc """ + Performance insights for the job. + + ## Attributes + + * `avgPreviousExecutionMs` (*type:* `String.t`, *default:* `nil`) - Output only. Average execution ms of previous runs. Indicates the job ran slow compared to previous executions. To find previous executions, use INFORMATION_SCHEMA tables and filter jobs with same query hash. + * `stagePerformanceChangeInsights` (*type:* `list(GoogleApi.BigQuery.V2.Model.StagePerformanceChangeInsight.t)`, *default:* `nil`) - Output only. Query stage performance insights compared to previous runs, for diagnosing performance regression. + * `stagePerformanceStandaloneInsights` (*type:* `list(GoogleApi.BigQuery.V2.Model.StagePerformanceStandaloneInsight.t)`, *default:* `nil`) - Output only. Standalone query stage performance insights, for exploring potential improvements. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :avgPreviousExecutionMs => String.t() | nil, + :stagePerformanceChangeInsights => + list(GoogleApi.BigQuery.V2.Model.StagePerformanceChangeInsight.t()) | nil, + :stagePerformanceStandaloneInsights => + list(GoogleApi.BigQuery.V2.Model.StagePerformanceStandaloneInsight.t()) | nil + } + + field(:avgPreviousExecutionMs) + + field(:stagePerformanceChangeInsights, + as: GoogleApi.BigQuery.V2.Model.StagePerformanceChangeInsight, + type: :list + ) + + field(:stagePerformanceStandaloneInsights, + as: GoogleApi.BigQuery.V2.Model.StagePerformanceStandaloneInsight, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.PerformanceInsights do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.PerformanceInsights.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.PerformanceInsights do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/policy.ex b/clients/big_query/lib/google_api/big_query/v2/model/policy.ex index f96e856612..5f17b3e573 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/policy.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/privacy_policy.ex b/clients/big_query/lib/google_api/big_query/v2/model/privacy_policy.ex new file mode 100644 index 0000000000..efe0c0740d --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/privacy_policy.ex @@ -0,0 +1,47 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.PrivacyPolicy do + @moduledoc """ + Represents privacy policy that contains the privacy requirements specified by the data owner. Currently, this is only supported on views. + + ## Attributes + + * `aggregationThresholdPolicy` (*type:* `GoogleApi.BigQuery.V2.Model.AggregationThresholdPolicy.t`, *default:* `nil`) - Optional. Policy used for aggregation thresholds. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aggregationThresholdPolicy => + GoogleApi.BigQuery.V2.Model.AggregationThresholdPolicy.t() | nil + } + + field(:aggregationThresholdPolicy, as: GoogleApi.BigQuery.V2.Model.AggregationThresholdPolicy) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.PrivacyPolicy do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.PrivacyPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.PrivacyPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/project_list.ex b/clients/big_query/lib/google_api/big_query/v2/model/project_list.ex index 5cfe32cdd5..79a0a5f3a9 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/project_list.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/project_list.ex @@ -17,15 +17,15 @@ defmodule GoogleApi.BigQuery.V2.Model.ProjectList do @moduledoc """ - + Response object of ListProjects ## Attributes - * `etag` (*type:* `String.t`, *default:* `nil`) - A hash of the page of results - * `kind` (*type:* `String.t`, *default:* `bigquery#projectList`) - The type of list. - * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token to request the next page of results. - * `projects` (*type:* `list(GoogleApi.BigQuery.V2.Model.ProjectListProjects.t)`, *default:* `nil`) - Projects to which you have at least READ access. - * `totalItems` (*type:* `integer()`, *default:* `nil`) - The total number of projects in the list. + * `etag` (*type:* `String.t`, *default:* `nil`) - A hash of the page of results. + * `kind` (*type:* `String.t`, *default:* `bigquery#projectList`) - The resource type of the response. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Use this token to request the next page of results. + * `projects` (*type:* `list(GoogleApi.BigQuery.V2.Model.ProjectListProjects.t)`, *default:* `nil`) - Projects to which the user has at least READ access. + * `totalItems` (*type:* `integer()`, *default:* `nil`) - The total number of projects in the page. A wrapper is used here because the field should still be in the response when the value is 0. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/project_list_projects.ex b/clients/big_query/lib/google_api/big_query/v2/model/project_list_projects.ex index 63100124ce..7542a3fc5e 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/project_list_projects.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/project_list_projects.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.ProjectListProjects do @moduledoc """ - + Information about a single project. ## Attributes - * `friendlyName` (*type:* `String.t`, *default:* `nil`) - A descriptive name for this project. + * `friendlyName` (*type:* `String.t`, *default:* `nil`) - A descriptive name for this project. A wrapper is used here because friendlyName can be set to the empty string. * `id` (*type:* `String.t`, *default:* `nil`) - An opaque ID of this project. - * `kind` (*type:* `String.t`, *default:* `bigquery#project`) - The resource type. + * `kind` (*type:* `String.t`, *default:* `nil`) - The resource type. * `numericId` (*type:* `String.t`, *default:* `nil`) - The numeric ID of this project. * `projectReference` (*type:* `GoogleApi.BigQuery.V2.Model.ProjectReference.t`, *default:* `nil`) - A unique reference to this project. """ diff --git a/clients/big_query/lib/google_api/big_query/v2/model/project_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/project_reference.ex index 94437f2a2b..9baccf0165 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/project_reference.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/project_reference.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.ProjectReference do @moduledoc """ - + A unique reference to a project. ## Attributes - * `projectId` (*type:* `String.t`, *default:* `nil`) - [Required] ID of the project. Can be either the numeric ID or the assigned ID of the project. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Required. ID of the project. Can be either the numeric ID or the assigned ID of the project. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_info.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_info.ex new file mode 100644 index 0000000000..063b518e12 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_info.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.QueryInfo do + @moduledoc """ + Query optimization information for a QUERY job. + + ## Attributes + + * `optimizationDetails` (*type:* `map()`, *default:* `nil`) - Output only. Information about query optimizations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :optimizationDetails => map() | nil + } + + field(:optimizationDetails, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.QueryInfo do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.QueryInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.QueryInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter.ex index 2018e11528..044e6739b6 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryParameter do @moduledoc """ - + A parameter given to a query. ## Attributes - * `name` (*type:* `String.t`, *default:* `nil`) - [Optional] If unset, this is a positional parameter. Otherwise, should be unique within a query. - * `parameterType` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterType.t`, *default:* `nil`) - [Required] The type of this parameter. - * `parameterValue` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterValue.t`, *default:* `nil`) - [Required] The value of this parameter. + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. If unset, this is a positional parameter. Otherwise, should be unique within a query. + * `parameterType` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterType.t`, *default:* `nil`) - Required. The type of this parameter. + * `parameterValue` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterValue.t`, *default:* `nil`) - Required. The value of this parameter. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type.ex index a35ec8dbb4..a32c870986 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type.ex @@ -17,25 +17,28 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryParameterType do @moduledoc """ - + The type of a query parameter. ## Attributes - * `arrayType` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterType.t`, *default:* `nil`) - [Optional] The type of the array's elements, if this is an array. - * `structTypes` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameterTypeStructTypes.t)`, *default:* `nil`) - [Optional] The types of the fields of this struct, in order, if this is a struct. - * `type` (*type:* `String.t`, *default:* `nil`) - [Required] The top level type of this field. + * `arrayType` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterType.t`, *default:* `nil`) - Optional. The type of the array's elements, if this is an array. + * `rangeElementType` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterType.t`, *default:* `nil`) - Optional. The element type of the range, if this is a range. + * `structTypes` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameterTypeStructTypes.t)`, *default:* `nil`) - Optional. The types of the fields of this struct, in order, if this is a struct. + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The top level type of this field. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :arrayType => GoogleApi.BigQuery.V2.Model.QueryParameterType.t() | nil, + :rangeElementType => GoogleApi.BigQuery.V2.Model.QueryParameterType.t() | nil, :structTypes => list(GoogleApi.BigQuery.V2.Model.QueryParameterTypeStructTypes.t()) | nil, :type => String.t() | nil } field(:arrayType, as: GoogleApi.BigQuery.V2.Model.QueryParameterType) + field(:rangeElementType, as: GoogleApi.BigQuery.V2.Model.QueryParameterType) field(:structTypes, as: GoogleApi.BigQuery.V2.Model.QueryParameterTypeStructTypes, type: :list) field(:type) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type_struct_types.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type_struct_types.ex index ff28fbba92..465304b7be 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type_struct_types.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_type_struct_types.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryParameterTypeStructTypes do @moduledoc """ - + The type of a struct parameter. ## Attributes - * `description` (*type:* `String.t`, *default:* `nil`) - [Optional] Human-oriented description of the field. - * `name` (*type:* `String.t`, *default:* `nil`) - [Optional] The name of this field. - * `type` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterType.t`, *default:* `nil`) - [Required] The type of this field. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. Human-oriented description of the field. + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. The name of this field. + * `type` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterType.t`, *default:* `nil`) - Required. The type of this field. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_value.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_value.ex index 3e300c48fd..3f5cf20309 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_value.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_parameter_value.ex @@ -17,25 +17,28 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryParameterValue do @moduledoc """ - + The value of a query parameter. ## Attributes - * `arrayValues` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameterValue.t)`, *default:* `nil`) - [Optional] The array values, if this is an array type. - * `structValues` (*type:* `%{optional(String.t) => GoogleApi.BigQuery.V2.Model.QueryParameterValue.t}`, *default:* `nil`) - [Optional] The struct field values, in order of the struct type's declaration. - * `value` (*type:* `String.t`, *default:* `nil`) - [Optional] The value of this value, if a simple scalar type. + * `arrayValues` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameterValue.t)`, *default:* `nil`) - Optional. The array values, if this is an array type. + * `rangeValue` (*type:* `GoogleApi.BigQuery.V2.Model.RangeValue.t`, *default:* `nil`) - Optional. The range value, if this is a range type. + * `structValues` (*type:* `%{optional(String.t) => GoogleApi.BigQuery.V2.Model.QueryParameterValue.t}`, *default:* `nil`) - The struct field values. + * `value` (*type:* `String.t`, *default:* `nil`) - Optional. The value of this value, if a simple scalar type. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :arrayValues => list(GoogleApi.BigQuery.V2.Model.QueryParameterValue.t()) | nil, + :rangeValue => GoogleApi.BigQuery.V2.Model.RangeValue.t() | nil, :structValues => %{optional(String.t()) => GoogleApi.BigQuery.V2.Model.QueryParameterValue.t()} | nil, :value => String.t() | nil } field(:arrayValues, as: GoogleApi.BigQuery.V2.Model.QueryParameterValue, type: :list) + field(:rangeValue, as: GoogleApi.BigQuery.V2.Model.RangeValue) field(:structValues, as: GoogleApi.BigQuery.V2.Model.QueryParameterValue, type: :map) field(:value) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_request.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_request.ex index 1c222f84bd..0519378324 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/query_request.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_request.ex @@ -17,36 +17,42 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryRequest do @moduledoc """ - + Describes the format of the jobs.query request. ## Attributes - * `connectionProperties` (*type:* `list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t)`, *default:* `nil`) - Connection properties. - * `createSession` (*type:* `boolean()`, *default:* `nil`) - If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode. - * `defaultDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - [Optional] Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. - * `dryRun` (*type:* `boolean()`, *default:* `nil`) - [Optional] If set to true, BigQuery doesn't run the job. Instead, if the query is valid, BigQuery returns statistics about the job such as how many bytes would be processed. If the query is invalid, an error returns. The default value is false. + * `connectionProperties` (*type:* `list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t)`, *default:* `nil`) - Optional. Connection properties which can modify the query behavior. + * `continuous` (*type:* `boolean()`, *default:* `nil`) - [Optional] Specifies whether the query should be executed as a continuous query. The default value is false. + * `createSession` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, creates a new session using a randomly generated session_id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode. The session location will be set to QueryRequest.location if it is present, otherwise it's set to the default location based on existing routing logic. + * `defaultDataset` (*type:* `GoogleApi.BigQuery.V2.Model.DatasetReference.t`, *default:* `nil`) - Optional. Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. + * `dryRun` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, BigQuery doesn't run the job. Instead, if the query is valid, BigQuery returns statistics about the job such as how many bytes would be processed. If the query is invalid, an error returns. The default value is false. + * `formatOptions` (*type:* `GoogleApi.BigQuery.V2.Model.DataFormatOptions.t`, *default:* `nil`) - Optional. Output format adjustments. + * `jobCreationMode` (*type:* `String.t`, *default:* `nil`) - Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. This feature is not yet available. Jobs will always be created. * `kind` (*type:* `String.t`, *default:* `bigquery#queryRequest`) - The resource type of the request. - * `labels` (*type:* `map()`, *default:* `nil`) - The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. The labels associated with this query. Labels can be used to organize and group query jobs. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label keys must start with a letter and each label in the list must have a different key. * `location` (*type:* `String.t`, *default:* `nil`) - The geographic location where the job should run. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location. - * `maxResults` (*type:* `integer()`, *default:* `nil`) - [Optional] The maximum number of rows of data to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. In addition to this limit, responses are also limited to 10 MB. By default, there is no maximum row count, and only the byte limit applies. - * `maximumBytesBilled` (*type:* `String.t`, *default:* `nil`) - [Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default. - * `parameterMode` (*type:* `String.t`, *default:* `nil`) - Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. - * `preserveNulls` (*type:* `boolean()`, *default:* `nil`) - [Deprecated] This property is deprecated. - * `query` (*type:* `String.t`, *default:* `nil`) - [Required] A query string, following the BigQuery query syntax, of the query to execute. Example: "SELECT count(f1) FROM [myProjectId:myDatasetId.myTableId]". - * `queryParameters` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameter.t)`, *default:* `nil`) - Query parameters for Standard SQL queries. - * `requestId` (*type:* `String.t`, *default:* `nil`) - A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of the previous request, all parameters in the request that may affect the behavior are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed. - * `timeoutMs` (*type:* `integer()`, *default:* `nil`) - [Optional] How long to wait for the query to complete, in milliseconds, before the request times out and returns. Note that this is only a timeout for the request, not the query. If the query takes longer to run than the timeout value, the call returns without any results and with the 'jobComplete' flag set to false. You can call GetQueryResults() to wait for the query to complete and read the results. The default value is 10000 milliseconds (10 seconds). - * `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 standard SQL: 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. - * `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. + * `maxResults` (*type:* `integer()`, *default:* `nil`) - Optional. The maximum number of rows of data to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. In addition to this limit, responses are also limited to 10 MB. By default, there is no maximum row count, and only the byte limit applies. + * `maximumBytesBilled` (*type:* `String.t`, *default:* `nil`) - Optional. Limits the bytes billed for this query. Queries with bytes billed above this limit will fail (without incurring a charge). If unspecified, the project default is used. + * `parameterMode` (*type:* `String.t`, *default:* `nil`) - GoogleSQL only. Set to POSITIONAL to use positional (?) query parameters or to NAMED to use named (@myparam) query parameters in this query. + * `preserveNulls` (*type:* `boolean()`, *default:* `nil`) - This property is deprecated. + * `query` (*type:* `String.t`, *default:* `nil`) - Required. A query string to execute, using Google Standard SQL or legacy SQL syntax. Example: "SELECT COUNT(f1) FROM myProjectId.myDatasetId.myTableId". + * `queryParameters` (*type:* `list(GoogleApi.BigQuery.V2.Model.QueryParameter.t)`, *default:* `nil`) - Query parameters for GoogleSQL queries. + * `requestId` (*type:* `String.t`, *default:* `nil`) - Optional. A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of another request, all parameters in the request that may affect the result are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed. + * `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. + * `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. + * `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. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :connectionProperties => list(GoogleApi.BigQuery.V2.Model.ConnectionProperty.t()) | nil, + :continuous => boolean() | nil, :createSession => boolean() | nil, :defaultDataset => GoogleApi.BigQuery.V2.Model.DatasetReference.t() | nil, :dryRun => boolean() | nil, + :formatOptions => GoogleApi.BigQuery.V2.Model.DataFormatOptions.t() | nil, + :jobCreationMode => String.t() | nil, :kind => String.t() | nil, :labels => map() | nil, :location => String.t() | nil, @@ -63,9 +69,12 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryRequest do } field(:connectionProperties, as: GoogleApi.BigQuery.V2.Model.ConnectionProperty, type: :list) + field(:continuous) field(:createSession) field(:defaultDataset, as: GoogleApi.BigQuery.V2.Model.DatasetReference) field(:dryRun) + field(:formatOptions, as: GoogleApi.BigQuery.V2.Model.DataFormatOptions) + field(:jobCreationMode) field(:kind) field(:labels, type: :map) field(:location) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_response.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_response.ex index 1118c87354..d23ed50651 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/query_response.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_response.ex @@ -22,16 +22,18 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryResponse do ## Attributes * `cacheHit` (*type:* `boolean()`, *default:* `nil`) - Whether the query result was fetched from the query cache. - * `dmlStats` (*type:* `GoogleApi.BigQuery.V2.Model.DmlStatistics.t`, *default:* `nil`) - [Output-only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE. - * `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. + * `dmlStats` (*type:* `GoogleApi.BigQuery.V2.Model.DmlStatistics.t`, *default:* `nil`) - Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE. + * `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). * `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. + * `jobCreationReason` (*type:* `GoogleApi.BigQuery.V2.Model.JobCreationReason.t`, *default:* `nil`) - Optional. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. When job_reference is present, this field should be interpreted as follows: If set, it will provide the reason of why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always be created. * `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). * `kind` (*type:* `String.t`, *default:* `bigquery#queryResponse`) - The resource type. - * `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. - * `pageToken` (*type:* `String.t`, *default:* `nil`) - A token used for paging results. + * `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. + * `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). + * `queryId` (*type:* `String.t`, *default:* `nil`) - Query ID for the completed query. This ID will be auto-generated. This field is not yet available and it is currently not guaranteed to be populated. * `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. * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - The schema of the results. Present only when the query completes successfully. - * `sessionInfo` (*type:* `GoogleApi.BigQuery.V2.Model.SessionInfo.t`, *default:* `nil`) - [Output-only] [Preview] Information of the session if this job is part of one. + * `sessionInfo` (*type:* `GoogleApi.BigQuery.V2.Model.SessionInfo.t`, *default:* `nil`) - Output only. Information of the session if this job is part of one. * `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. * `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. """ @@ -43,10 +45,12 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryResponse do :dmlStats => GoogleApi.BigQuery.V2.Model.DmlStatistics.t() | nil, :errors => list(GoogleApi.BigQuery.V2.Model.ErrorProto.t()) | nil, :jobComplete => boolean() | nil, + :jobCreationReason => GoogleApi.BigQuery.V2.Model.JobCreationReason.t() | nil, :jobReference => GoogleApi.BigQuery.V2.Model.JobReference.t() | nil, :kind => String.t() | nil, :numDmlAffectedRows => String.t() | nil, :pageToken => String.t() | nil, + :queryId => String.t() | nil, :rows => list(GoogleApi.BigQuery.V2.Model.TableRow.t()) | nil, :schema => GoogleApi.BigQuery.V2.Model.TableSchema.t() | nil, :sessionInfo => GoogleApi.BigQuery.V2.Model.SessionInfo.t() | nil, @@ -58,10 +62,12 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryResponse do field(:dmlStats, as: GoogleApi.BigQuery.V2.Model.DmlStatistics) field(:errors, as: GoogleApi.BigQuery.V2.Model.ErrorProto, type: :list) field(:jobComplete) + field(:jobCreationReason, as: GoogleApi.BigQuery.V2.Model.JobCreationReason) field(:jobReference, as: GoogleApi.BigQuery.V2.Model.JobReference) field(:kind) field(:numDmlAffectedRows) field(:pageToken) + field(:queryId) field(:rows, as: GoogleApi.BigQuery.V2.Model.TableRow, type: :list) field(:schema, as: GoogleApi.BigQuery.V2.Model.TableSchema) field(:sessionInfo, as: GoogleApi.BigQuery.V2.Model.SessionInfo) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/query_timeline_sample.ex b/clients/big_query/lib/google_api/big_query/v2/model/query_timeline_sample.ex index 97a30304ce..44ab17f98c 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/query_timeline_sample.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/query_timeline_sample.ex @@ -17,14 +17,14 @@ defmodule GoogleApi.BigQuery.V2.Model.QueryTimelineSample do @moduledoc """ - + Summary of the state of query execution at a given time. ## Attributes - * `activeUnits` (*type:* `String.t`, *default:* `nil`) - Total number of units currently being processed by workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample. + * `activeUnits` (*type:* `String.t`, *default:* `nil`) - Total number of active workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample. * `completedUnits` (*type:* `String.t`, *default:* `nil`) - Total parallel units of work completed by this query. * `elapsedMs` (*type:* `String.t`, *default:* `nil`) - Milliseconds elapsed since the start of query execution. - * `estimatedRunnableUnits` (*type:* `String.t`, *default:* `nil`) - Units of work that can be scheduled immediately. Providing additional slots for these units of work will speed up the query, provided no other query in the reservation needs additional slots. + * `estimatedRunnableUnits` (*type:* `String.t`, *default:* `nil`) - Units of work that can be scheduled immediately. Providing additional slots for these units of work will accelerate the query, if no other query in the reservation needs additional slots. * `pendingUnits` (*type:* `String.t`, *default:* `nil`) - Total units of work remaining for the query. This number can be revised (increased or decreased) while the query is running. * `totalSlotMs` (*type:* `String.t`, *default:* `nil`) - Cumulative slot-ms consumed by the query. """ diff --git a/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning.ex b/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning.ex index 6bbace1e85..b5dc2af804 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.BigQuery.V2.Model.RangePartitioning do ## Attributes - * `field` (*type:* `String.t`, *default:* `nil`) - [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64. - * `range` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioningRange.t`, *default:* `nil`) - [TrustedTester] [Required] Defines the ranges for range partitioning. + * `field` (*type:* `String.t`, *default:* `nil`) - Required. [Experimental] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64. + * `range` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioningRange.t`, *default:* `nil`) - [Experimental] Defines the ranges for range partitioning. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning_range.ex b/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning_range.ex index ffcebbab06..f831898457 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning_range.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/range_partitioning_range.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.RangePartitioningRange do @moduledoc """ - [TrustedTester] [Required] Defines the ranges for range partitioning. + [Experimental] Defines the ranges for range partitioning. ## Attributes - * `end` (*type:* `String.t`, *default:* `nil`) - [TrustedTester] [Required] The end of range partitioning, exclusive. - * `interval` (*type:* `String.t`, *default:* `nil`) - [TrustedTester] [Required] The width of each interval. - * `start` (*type:* `String.t`, *default:* `nil`) - [TrustedTester] [Required] The start of range partitioning, inclusive. + * `end` (*type:* `String.t`, *default:* `nil`) - [Experimental] The end of range partitioning, exclusive. + * `interval` (*type:* `String.t`, *default:* `nil`) - [Experimental] The width of each interval. + * `start` (*type:* `String.t`, *default:* `nil`) - [Experimental] The start of range partitioning, inclusive. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/range_value.ex b/clients/big_query/lib/google_api/big_query/v2/model/range_value.ex new file mode 100644 index 0000000000..e4ebbc6d6d --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/range_value.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.RangeValue do + @moduledoc """ + Represents the value of a range. + + ## Attributes + + * `end` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterValue.t`, *default:* `nil`) - Optional. The end value of the range. A missing value represents an unbounded end. + * `start` (*type:* `GoogleApi.BigQuery.V2.Model.QueryParameterValue.t`, *default:* `nil`) - Optional. The start value of the range. A missing value represents an unbounded start. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :end => GoogleApi.BigQuery.V2.Model.QueryParameterValue.t() | nil, + :start => GoogleApi.BigQuery.V2.Model.QueryParameterValue.t() | nil + } + + field(:end, as: GoogleApi.BigQuery.V2.Model.QueryParameterValue) + field(:start, as: GoogleApi.BigQuery.V2.Model.QueryParameterValue) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.RangeValue do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.RangeValue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.RangeValue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/remote_model_info.ex b/clients/big_query/lib/google_api/big_query/v2/model/remote_model_info.ex new file mode 100644 index 0000000000..93079f4cdf --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/remote_model_info.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.RemoteModelInfo do + @moduledoc """ + Remote Model Info + + ## Attributes + + * `connection` (*type:* `String.t`, *default:* `nil`) - Output only. Fully qualified name of the user-provided connection object of the remote model. Format: ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"``` + * `endpoint` (*type:* `String.t`, *default:* `nil`) - Output only. The endpoint for remote model. + * `maxBatchingRows` (*type:* `String.t`, *default:* `nil`) - Output only. Max number of rows in each batch sent to the remote service. If unset, the number of rows in each batch is set dynamically. + * `remoteModelVersion` (*type:* `String.t`, *default:* `nil`) - Output only. The model version for LLM. + * `remoteServiceType` (*type:* `String.t`, *default:* `nil`) - Output only. The remote service type for remote model. + * `speechRecognizer` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the speech recognizer to use for speech recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. Customers can specify this field at model creation. If not specified, a default recognizer `projects/{model project}/locations/global/recognizers/_` will be used. See more details at [recognizers](https://cloud.google.com/speech-to-text/v2/docs/reference/rest/v2/projects.locations.recognizers) + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :connection => String.t() | nil, + :endpoint => String.t() | nil, + :maxBatchingRows => String.t() | nil, + :remoteModelVersion => String.t() | nil, + :remoteServiceType => String.t() | nil, + :speechRecognizer => String.t() | nil + } + + field(:connection) + field(:endpoint) + field(:maxBatchingRows) + field(:remoteModelVersion) + field(:remoteServiceType) + field(:speechRecognizer) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.RemoteModelInfo do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.RemoteModelInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.RemoteModelInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/routine.ex b/clients/big_query/lib/google_api/big_query/v2/model/routine.ex index 5490cde2f0..32c1e45276 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/routine.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/routine.ex @@ -23,20 +23,22 @@ defmodule GoogleApi.BigQuery.V2.Model.Routine do * `arguments` (*type:* `list(GoogleApi.BigQuery.V2.Model.Argument.t)`, *default:* `nil`) - Optional. * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this routine was created, in milliseconds since the epoch. + * `dataGovernanceType` (*type:* `String.t`, *default:* `nil`) - Optional. If set to `DATA_MASKING`, the function is validated and made available as a masking function. For more information, see [Create custom masking routines](https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask). * `definitionBody` (*type:* `String.t`, *default:* `nil`) - Required. The body of the routine. For functions, this is the expression in the AS clause. If language=SQL, it is the substring inside (but excluding) the parentheses. For example, for the function created with the following statement: `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\\n", y))` The definition_body is `concat(x, "\\n", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT, it is the evaluated string in the AS clause. For example, for the function created with the following statement: `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\\n";\\n'` The definition_body is `return "\\n";\\n` Note that both \\n are replaced with linebreaks. * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The description of the routine, if defined. * `determinismLevel` (*type:* `String.t`, *default:* `nil`) - Optional. The determinism level of the JavaScript UDF, if defined. * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A hash of this resource. * `importedLibraries` (*type:* `list(String.t)`, *default:* `nil`) - Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries. - * `language` (*type:* `String.t`, *default:* `nil`) - Optional. Defaults to "SQL". + * `language` (*type:* `String.t`, *default:* `nil`) - Optional. Defaults to "SQL" if remote_function_options field is absent, not set otherwise. * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this routine was last modified, in milliseconds since the epoch. * `remoteFunctionOptions` (*type:* `GoogleApi.BigQuery.V2.Model.RemoteFunctionOptions.t`, *default:* `nil`) - Optional. Remote function specific options. - * `returnTableType` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlTableType.t`, *default:* `nil`) - Optional. Can be set only if routine_type = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specificed in return table type, at query time. + * `returnTableType` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlTableType.t`, *default:* `nil`) - Optional. Can be set only if routine_type = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specified in return table type, at query time. * `returnType` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t`, *default:* `nil`) - Optional if language = "SQL"; required otherwise. Cannot be set if routine_type = "TABLE_VALUED_FUNCTION". If absent, the return type is inferred from definition_body at query time in each query that references this routine. If present, then the evaluated result will be cast to the specified returned type at query time. For example, for the functions created with the following statements: * `CREATE FUNCTION Add(x FLOAT64, y FLOAT64) RETURNS FLOAT64 AS (x + y);` * `CREATE FUNCTION Increment(x FLOAT64) AS (Add(x, 1));` * `CREATE FUNCTION Decrement(x FLOAT64) RETURNS FLOAT64 AS (Add(x, -1));` The return_type is `{type_kind: "FLOAT64"}` for `Add` and `Decrement`, and is absent for `Increment` (inferred as FLOAT64 at query time). Suppose the function `Add` is replaced by `CREATE OR REPLACE FUNCTION Add(x INT64, y INT64) AS (x + y);` Then the inferred return type of `Increment` is automatically changed to INT64 at query time, while the return type of `Decrement` remains FLOAT64. * `routineReference` (*type:* `GoogleApi.BigQuery.V2.Model.RoutineReference.t`, *default:* `nil`) - Required. Reference describing the ID of this routine. * `routineType` (*type:* `String.t`, *default:* `nil`) - Required. The type of routine. + * `securityMode` (*type:* `String.t`, *default:* `nil`) - Optional. The security mode of the routine, if defined. If not defined, the security mode is automatically determined from the routine's configuration. * `sparkOptions` (*type:* `GoogleApi.BigQuery.V2.Model.SparkOptions.t`, *default:* `nil`) - Optional. Spark specific options. - * `strictMode` (*type:* `boolean()`, *default:* `nil`) - Optional. Can be set for procedures only. If true (default), the definition body will be validated in the creation and the updates of the procedure. For procedures with an argument of ANY TYPE, the definition body validtion is not supported at creation/update time, and thus this field must be set to false explicitly. + * `strictMode` (*type:* `boolean()`, *default:* `nil`) - Optional. Use this option to catch many common errors. Error checking is not exhaustive, and successfully creating a procedure doesn't guarantee that the procedure will successfully execute at runtime. If `strictMode` is set to `TRUE`, the procedure body is further checked for errors such as non-existent tables or columns. The `CREATE PROCEDURE` statement fails if the body fails any of these checks. If `strictMode` is set to `FALSE`, the procedure body is checked only for syntax. For procedures that invoke themselves recursively, specify `strictMode=FALSE` to avoid non-existent procedure errors during validation. Default value is `TRUE`. """ use GoogleApi.Gax.ModelBase @@ -44,6 +46,7 @@ defmodule GoogleApi.BigQuery.V2.Model.Routine do @type t :: %__MODULE__{ :arguments => list(GoogleApi.BigQuery.V2.Model.Argument.t()) | nil, :creationTime => String.t() | nil, + :dataGovernanceType => String.t() | nil, :definitionBody => String.t() | nil, :description => String.t() | nil, :determinismLevel => String.t() | nil, @@ -56,12 +59,14 @@ defmodule GoogleApi.BigQuery.V2.Model.Routine do :returnType => GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t() | nil, :routineReference => GoogleApi.BigQuery.V2.Model.RoutineReference.t() | nil, :routineType => String.t() | nil, + :securityMode => String.t() | nil, :sparkOptions => GoogleApi.BigQuery.V2.Model.SparkOptions.t() | nil, :strictMode => boolean() | nil } field(:arguments, as: GoogleApi.BigQuery.V2.Model.Argument, type: :list) field(:creationTime) + field(:dataGovernanceType) field(:definitionBody) field(:description) field(:determinismLevel) @@ -74,6 +79,7 @@ defmodule GoogleApi.BigQuery.V2.Model.Routine do field(:returnType, as: GoogleApi.BigQuery.V2.Model.StandardSqlDataType) field(:routineReference, as: GoogleApi.BigQuery.V2.Model.RoutineReference) field(:routineType) + field(:securityMode) field(:sparkOptions, as: GoogleApi.BigQuery.V2.Model.SparkOptions) field(:strictMode) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/routine_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/routine_reference.ex index 70de7e38e7..a8fc32755d 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/routine_reference.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/routine_reference.ex @@ -17,13 +17,13 @@ defmodule GoogleApi.BigQuery.V2.Model.RoutineReference do @moduledoc """ - + Id path of a routine. ## Attributes - * `datasetId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the dataset containing this routine. - * `projectId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the project containing this routine. - * `routineId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. + * `datasetId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the dataset containing this routine. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the project containing this routine. + * `routineId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/row_access_policy_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/row_access_policy_reference.ex index ff2d625c2f..7abd7e2316 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/row_access_policy_reference.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/row_access_policy_reference.ex @@ -17,14 +17,14 @@ defmodule GoogleApi.BigQuery.V2.Model.RowAccessPolicyReference do @moduledoc """ - + Id path of a row access policy. ## Attributes - * `datasetId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the dataset containing this row access policy. - * `policyId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. - * `projectId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the project containing this row access policy. - * `tableId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the table containing this row access policy. + * `datasetId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the dataset containing this row access policy. + * `policyId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the project containing this row access policy. + * `tableId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the table containing this row access policy. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/row_level_security_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/row_level_security_statistics.ex index d317e4344a..0ada35eb22 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/row_level_security_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/row_level_security_statistics.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.RowLevelSecurityStatistics do @moduledoc """ - + Statistics for row-level security. ## Attributes - * `rowLevelSecurityApplied` (*type:* `boolean()`, *default:* `nil`) - [Output-only] [Preview] Whether any accessed data was protected by row access policies. + * `rowLevelSecurityApplied` (*type:* `boolean()`, *default:* `nil`) - Whether any accessed data was protected by row access policies. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/script_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/script_options.ex new file mode 100644 index 0000000000..e78eb856a6 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/script_options.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.ScriptOptions do + @moduledoc """ + Options related to script execution. + + ## Attributes + + * `keyResultStatement` (*type:* `String.t`, *default:* `nil`) - Determines which statement in the script represents the "key result", used to populate the schema and query results of the script job. Default is LAST. + * `statementByteBudget` (*type:* `String.t`, *default:* `nil`) - Limit on the number of bytes billed per statement. Exceeding this budget results in an error. + * `statementTimeoutMs` (*type:* `String.t`, *default:* `nil`) - Timeout period for each statement in a script. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :keyResultStatement => String.t() | nil, + :statementByteBudget => String.t() | nil, + :statementTimeoutMs => String.t() | nil + } + + field(:keyResultStatement) + field(:statementByteBudget) + field(:statementTimeoutMs) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.ScriptOptions do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.ScriptOptions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.ScriptOptions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/script_stack_frame.ex b/clients/big_query/lib/google_api/big_query/v2/model/script_stack_frame.ex index 0499967fa5..192d1a7b14 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/script_stack_frame.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/script_stack_frame.ex @@ -17,16 +17,16 @@ defmodule GoogleApi.BigQuery.V2.Model.ScriptStackFrame do @moduledoc """ - + Represents the location of the statement/expression being evaluated. Line and column numbers are defined as follows: - Line and column numbers start with one. That is, line 1 column 1 denotes the start of the script. - When inside a stored procedure, all line/column numbers are relative to the procedure body, not the script in which the procedure was defined. - Start/end positions exclude leading/trailing comments and whitespace. The end position always ends with a ";", when present. - Multi-byte Unicode characters are treated as just one column. - If the original script (or procedure definition) contains TAB characters, a tab "snaps" the indentation forward to the nearest multiple of 8 characters, plus 1. For example, a TAB on column 1, 2, 3, 4, 5, 6 , or 8 will advance the next character to column 9. A TAB on column 9, 10, 11, 12, 13, 14, 15, or 16 will advance the next character to column 17. ## Attributes - * `endColumn` (*type:* `integer()`, *default:* `nil`) - [Output-only] One-based end column. - * `endLine` (*type:* `integer()`, *default:* `nil`) - [Output-only] One-based end line. - * `procedureId` (*type:* `String.t`, *default:* `nil`) - [Output-only] Name of the active procedure, empty if in a top-level script. - * `startColumn` (*type:* `integer()`, *default:* `nil`) - [Output-only] One-based start column. - * `startLine` (*type:* `integer()`, *default:* `nil`) - [Output-only] One-based start line. - * `text` (*type:* `String.t`, *default:* `nil`) - [Output-only] Text of the current statement/expression. + * `endColumn` (*type:* `integer()`, *default:* `nil`) - Output only. One-based end column. + * `endLine` (*type:* `integer()`, *default:* `nil`) - Output only. One-based end line. + * `procedureId` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the active procedure, empty if in a top-level script. + * `startColumn` (*type:* `integer()`, *default:* `nil`) - Output only. One-based start column. + * `startLine` (*type:* `integer()`, *default:* `nil`) - Output only. One-based start line. + * `text` (*type:* `String.t`, *default:* `nil`) - Output only. Text of the current statement/expression. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/script_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/script_statistics.ex index a7f71db111..01e860561a 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/script_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/script_statistics.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.ScriptStatistics do @moduledoc """ - + Job statistics specific to the child job of a script. ## Attributes - * `evaluationKind` (*type:* `String.t`, *default:* `nil`) - [Output-only] Whether this child job was a statement or expression. + * `evaluationKind` (*type:* `String.t`, *default:* `nil`) - Whether this child job was a statement or expression. * `stackFrames` (*type:* `list(GoogleApi.BigQuery.V2.Model.ScriptStackFrame.t)`, *default:* `nil`) - Stack trace showing the line/column/procedure name of each frame on the stack at the point where the current evaluation happened. The leaf frame is first, the primary script is last. Never empty. """ diff --git a/clients/big_query/lib/google_api/big_query/v2/model/search_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/search_statistics.ex index 10d1612b81..25bbe6af05 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/search_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/search_statistics.ex @@ -17,22 +17,22 @@ defmodule GoogleApi.BigQuery.V2.Model.SearchStatistics do @moduledoc """ - + Statistics for a search query. Populated as part of JobStatistics2. ## Attributes - * `indexUnusedReason` (*type:* `list(GoogleApi.BigQuery.V2.Model.IndexUnusedReason.t)`, *default:* `nil`) - When index_usage_mode is UNUSED or PARTIALLY_USED, this field explains why index was not used in all or part of the search query. If index_usage_mode is FULLLY_USED, this field is not populated. - * `indexUsageMode` (*type:* `String.t`, *default:* `nil`) - Specifies index usage mode for the query. + * `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 search query. If `indexUsageMode` is `FULLY_USED`, this field is not populated. + * `indexUsageMode` (*type:* `String.t`, *default:* `nil`) - Specifies the index usage mode for the query. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :indexUnusedReason => list(GoogleApi.BigQuery.V2.Model.IndexUnusedReason.t()) | nil, + :indexUnusedReasons => list(GoogleApi.BigQuery.V2.Model.IndexUnusedReason.t()) | nil, :indexUsageMode => String.t() | nil } - field(:indexUnusedReason, as: GoogleApi.BigQuery.V2.Model.IndexUnusedReason, type: :list) + field(:indexUnusedReasons, as: GoogleApi.BigQuery.V2.Model.IndexUnusedReason, type: :list) field(:indexUsageMode) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/session_info.ex b/clients/big_query/lib/google_api/big_query/v2/model/session_info.ex index b39362fae6..013e837138 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/session_info.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/session_info.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.SessionInfo do @moduledoc """ - + [Preview] Information related to sessions. ## Attributes - * `sessionId` (*type:* `String.t`, *default:* `nil`) - [Output-only] // [Preview] Id of the session. + * `sessionId` (*type:* `String.t`, *default:* `nil`) - Output only. The id of the session. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/snapshot_definition.ex b/clients/big_query/lib/google_api/big_query/v2/model/snapshot_definition.ex index 867a3af23d..c43f874ab2 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/snapshot_definition.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/snapshot_definition.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.SnapshotDefinition do @moduledoc """ - + Information about base table and snapshot time of the snapshot. ## Attributes - * `baseTableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Required] Reference describing the ID of the table that was snapshot. - * `snapshotTime` (*type:* `DateTime.t`, *default:* `nil`) - [Required] The time at which the base table was snapshot. This value is reported in the JSON response using RFC3339 format. + * `baseTableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Required. Reference describing the ID of the table that was snapshot. + * `snapshotTime` (*type:* `DateTime.t`, *default:* `nil`) - Required. The time at which the base table was snapshot. This value is reported in the JSON response using RFC3339 format. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/spark_logging_info.ex b/clients/big_query/lib/google_api/big_query/v2/model/spark_logging_info.ex index 2377a5672a..782869de49 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/spark_logging_info.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/spark_logging_info.ex @@ -17,23 +17,23 @@ defmodule GoogleApi.BigQuery.V2.Model.SparkLoggingInfo do @moduledoc """ - + Spark job logs can be filtered by these fields in Cloud Logging. ## Attributes - * `project_id` (*type:* `String.t`, *default:* `nil`) - [Output-only] Project ID used for logging - * `resource_type` (*type:* `String.t`, *default:* `nil`) - [Output-only] Resource type used for logging + * `projectId` (*type:* `String.t`, *default:* `nil`) - Output only. Project ID where the Spark logs were written. + * `resourceType` (*type:* `String.t`, *default:* `nil`) - Output only. Resource type used for logging. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :project_id => String.t() | nil, - :resource_type => String.t() | nil + :projectId => String.t() | nil, + :resourceType => String.t() | nil } - field(:project_id) - field(:resource_type) + field(:projectId) + field(:resourceType) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.SparkLoggingInfo do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/spark_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/spark_options.ex index 005d83eaff..fcd871bf42 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/spark_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/spark_options.ex @@ -26,8 +26,9 @@ defmodule GoogleApi.BigQuery.V2.Model.SparkOptions do * `containerImage` (*type:* `String.t`, *default:* `nil`) - Custom container image for the runtime environment. * `fileUris` (*type:* `list(String.t)`, *default:* `nil`) - Files to be placed in the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html). * `jarUris` (*type:* `list(String.t)`, *default:* `nil`) - JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html). - * `mainFileUri` (*type:* `String.t`, *default:* `nil`) - The main file URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set. - * `properties` (*type:* `map()`, *default:* `nil`) - Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html). + * `mainClass` (*type:* `String.t`, *default:* `nil`) - The fully qualified name of a class in jar_uris, for example, com.example.wordcount. Exactly one of main_class and main_jar_uri field should be set for Java/Scala language type. + * `mainFileUri` (*type:* `String.t`, *default:* `nil`) - The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type. + * `properties` (*type:* `map()`, *default:* `nil`) - Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html) and the [procedure option list](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list). * `pyFileUris` (*type:* `list(String.t)`, *default:* `nil`) - Python files to be placed on the PYTHONPATH for PySpark application. Supported file types: `.py`, `.egg`, and `.zip`. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html). * `runtimeVersion` (*type:* `String.t`, *default:* `nil`) - Runtime version. If not specified, the default runtime version is used. """ @@ -40,6 +41,7 @@ defmodule GoogleApi.BigQuery.V2.Model.SparkOptions do :containerImage => String.t() | nil, :fileUris => list(String.t()) | nil, :jarUris => list(String.t()) | nil, + :mainClass => String.t() | nil, :mainFileUri => String.t() | nil, :properties => map() | nil, :pyFileUris => list(String.t()) | nil, @@ -51,6 +53,7 @@ defmodule GoogleApi.BigQuery.V2.Model.SparkOptions do field(:containerImage) field(:fileUris, type: :list) field(:jarUris, type: :list) + field(:mainClass) field(:mainFileUri) field(:properties, type: :map) field(:pyFileUris, type: :list) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/spark_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/spark_statistics.ex index 3c8a74195e..a38fc55cfb 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/spark_statistics.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/spark_statistics.ex @@ -17,29 +17,35 @@ defmodule GoogleApi.BigQuery.V2.Model.SparkStatistics do @moduledoc """ - + Statistics for a BigSpark query. Populated as part of JobStatistics2 ## Attributes - * `endpoints` (*type:* `map()`, *default:* `nil`) - [Output-only] Endpoints generated for the Spark job. - * `logging_info` (*type:* `GoogleApi.BigQuery.V2.Model.SparkLoggingInfo.t`, *default:* `nil`) - [Output-only] Logging info is used to generate a link to Cloud Logging. - * `spark_job_id` (*type:* `String.t`, *default:* `nil`) - [Output-only] Spark job id if a Spark job is created successfully. - * `spark_job_location` (*type:* `String.t`, *default:* `nil`) - [Output-only] Location where the Spark job is executed. + * `endpoints` (*type:* `map()`, *default:* `nil`) - Output only. Endpoints returned from Dataproc. Key list: - history_server_endpoint: A link to Spark job UI. + * `gcsStagingBucket` (*type:* `String.t`, *default:* `nil`) - Output only. The Google Cloud Storage bucket that is used as the default file system by the Spark application. This field is only filled when the Spark procedure uses the invoker security mode. The `gcsStagingBucket` bucket is inferred from the `@@spark_proc_properties.staging_bucket` system variable (if it is provided). Otherwise, BigQuery creates a default staging bucket for the job and returns the bucket name in this field. Example: * `gs://[bucket_name]` + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Output only. The Cloud KMS encryption key that is used to protect the resources created by the Spark job. If the Spark procedure uses the invoker security mode, the Cloud KMS encryption key is either inferred from the provided system variable, `@@spark_proc_properties.kms_key_name`, or the default key of the BigQuery job's project (if the CMEK organization policy is enforced). Otherwise, the Cloud KMS key is either inferred from the Spark connection associated with the procedure (if it is provided), or from the default key of the Spark connection's project if the CMEK organization policy is enforced. Example: * `projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]` + * `loggingInfo` (*type:* `GoogleApi.BigQuery.V2.Model.SparkLoggingInfo.t`, *default:* `nil`) - Output only. Logging info is used to generate a link to Cloud Logging. + * `sparkJobId` (*type:* `String.t`, *default:* `nil`) - Output only. Spark job ID if a Spark job is created successfully. + * `sparkJobLocation` (*type:* `String.t`, *default:* `nil`) - Output only. Location where the Spark job is executed. A location is selected by BigQueury for jobs configured to run in a multi-region. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :endpoints => map() | nil, - :logging_info => GoogleApi.BigQuery.V2.Model.SparkLoggingInfo.t() | nil, - :spark_job_id => String.t() | nil, - :spark_job_location => String.t() | nil + :gcsStagingBucket => String.t() | nil, + :kmsKeyName => String.t() | nil, + :loggingInfo => GoogleApi.BigQuery.V2.Model.SparkLoggingInfo.t() | nil, + :sparkJobId => String.t() | nil, + :sparkJobLocation => String.t() | nil } field(:endpoints, type: :map) - field(:logging_info, as: GoogleApi.BigQuery.V2.Model.SparkLoggingInfo) - field(:spark_job_id) - field(:spark_job_location) + field(:gcsStagingBucket) + field(:kmsKeyName) + field(:loggingInfo, as: GoogleApi.BigQuery.V2.Model.SparkLoggingInfo) + field(:sparkJobId) + field(:sparkJobLocation) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.SparkStatistics do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/stage_performance_change_insight.ex b/clients/big_query/lib/google_api/big_query/v2/model/stage_performance_change_insight.ex new file mode 100644 index 0000000000..53c4a6ae8d --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/stage_performance_change_insight.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.StagePerformanceChangeInsight do + @moduledoc """ + Performance insights compared to the previous executions for a specific stage. + + ## Attributes + + * `inputDataChange` (*type:* `GoogleApi.BigQuery.V2.Model.InputDataChange.t`, *default:* `nil`) - Output only. Input data change insight of the query stage. + * `stageId` (*type:* `String.t`, *default:* `nil`) - Output only. The stage id that the insight mapped to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :inputDataChange => GoogleApi.BigQuery.V2.Model.InputDataChange.t() | nil, + :stageId => String.t() | nil + } + + field(:inputDataChange, as: GoogleApi.BigQuery.V2.Model.InputDataChange) + field(:stageId) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.StagePerformanceChangeInsight do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.StagePerformanceChangeInsight.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.StagePerformanceChangeInsight do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/stage_performance_standalone_insight.ex b/clients/big_query/lib/google_api/big_query/v2/model/stage_performance_standalone_insight.ex new file mode 100644 index 0000000000..9b89b2a0cf --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/stage_performance_standalone_insight.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.StagePerformanceStandaloneInsight do + @moduledoc """ + Standalone performance insights for a specific stage. + + ## Attributes + + * `biEngineReasons` (*type:* `list(GoogleApi.BigQuery.V2.Model.BiEngineReason.t)`, *default:* `nil`) - Output only. If present, the stage had the following reasons for being disqualified from BI Engine execution. + * `highCardinalityJoins` (*type:* `list(GoogleApi.BigQuery.V2.Model.HighCardinalityJoin.t)`, *default:* `nil`) - Output only. High cardinality joins in the stage. + * `insufficientShuffleQuota` (*type:* `boolean()`, *default:* `nil`) - Output only. True if the stage has insufficient shuffle quota. + * `slotContention` (*type:* `boolean()`, *default:* `nil`) - Output only. True if the stage has a slot contention issue. + * `stageId` (*type:* `String.t`, *default:* `nil`) - Output only. The stage id that the insight mapped to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :biEngineReasons => list(GoogleApi.BigQuery.V2.Model.BiEngineReason.t()) | nil, + :highCardinalityJoins => + list(GoogleApi.BigQuery.V2.Model.HighCardinalityJoin.t()) | nil, + :insufficientShuffleQuota => boolean() | nil, + :slotContention => boolean() | nil, + :stageId => String.t() | nil + } + + field(:biEngineReasons, as: GoogleApi.BigQuery.V2.Model.BiEngineReason, type: :list) + field(:highCardinalityJoins, as: GoogleApi.BigQuery.V2.Model.HighCardinalityJoin, type: :list) + field(:insufficientShuffleQuota) + field(:slotContention) + field(:stageId) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.StagePerformanceStandaloneInsight do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.StagePerformanceStandaloneInsight.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.StagePerformanceStandaloneInsight do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_data_type.ex b/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_data_type.ex index 3204f24375..bad7e0a2ef 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_data_type.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_data_type.ex @@ -22,19 +22,22 @@ defmodule GoogleApi.BigQuery.V2.Model.StandardSqlDataType do ## Attributes * `arrayElementType` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t`, *default:* `nil`) - The type of the array's elements, if type_kind = "ARRAY". + * `rangeElementType` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t`, *default:* `nil`) - The type of the range's elements, if type_kind = "RANGE". * `structType` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlStructType.t`, *default:* `nil`) - The fields of this struct, in order, if type_kind = "STRUCT". - * `typeKind` (*type:* `String.t`, *default:* `nil`) - Required. The top level type of this field. Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY"). + * `typeKind` (*type:* `String.t`, *default:* `nil`) - Required. The top level type of this field. Can be any GoogleSQL data type (e.g., "INT64", "DATE", "ARRAY"). """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :arrayElementType => GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t() | nil, + :rangeElementType => GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t() | nil, :structType => GoogleApi.BigQuery.V2.Model.StandardSqlStructType.t() | nil, :typeKind => String.t() | nil } field(:arrayElementType, as: GoogleApi.BigQuery.V2.Model.StandardSqlDataType) + field(:rangeElementType, as: GoogleApi.BigQuery.V2.Model.StandardSqlDataType) field(:structType, as: GoogleApi.BigQuery.V2.Model.StandardSqlStructType) field(:typeKind) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_struct_type.ex b/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_struct_type.ex index 8af28b778d..e5b9d9e6e3 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_struct_type.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/standard_sql_struct_type.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.StandardSqlStructType do @moduledoc """ - + The representation of a SQL STRUCT type. ## Attributes - * `fields` (*type:* `list(GoogleApi.BigQuery.V2.Model.StandardSqlField.t)`, *default:* `nil`) - + * `fields` (*type:* `list(GoogleApi.BigQuery.V2.Model.StandardSqlField.t)`, *default:* `nil`) - Fields within the struct. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/streamingbuffer.ex b/clients/big_query/lib/google_api/big_query/v2/model/streamingbuffer.ex index f778ebd616..ceefd74f7d 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/streamingbuffer.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/streamingbuffer.ex @@ -21,9 +21,9 @@ defmodule GoogleApi.BigQuery.V2.Model.Streamingbuffer do ## Attributes - * `estimatedBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer. - * `estimatedRows` (*type:* `String.t`, *default:* `nil`) - [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer. - * `oldestEntryTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available. + * `estimatedBytes` (*type:* `String.t`, *default:* `nil`) - Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer. + * `estimatedRows` (*type:* `String.t`, *default:* `nil`) - Output only. A lower-bound estimate of the number of rows currently in the streaming buffer. + * `oldestEntryTime` (*type:* `String.t`, *default:* `nil`) - Output only. Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/system_variables.ex b/clients/big_query/lib/google_api/big_query/v2/model/system_variables.ex new file mode 100644 index 0000000000..4f1018b1bb --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/system_variables.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.SystemVariables do + @moduledoc """ + System variables given to a query. + + ## Attributes + + * `types` (*type:* `%{optional(String.t) => GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t}`, *default:* `nil`) - Output only. Data type for each system variable. + * `values` (*type:* `map()`, *default:* `nil`) - Output only. Value for each system variable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :types => + %{optional(String.t()) => GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t()} | nil, + :values => map() | nil + } + + field(:types, as: GoogleApi.BigQuery.V2.Model.StandardSqlDataType, type: :map) + field(:values, type: :map) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.SystemVariables do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.SystemVariables.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.SystemVariables do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table.ex b/clients/big_query/lib/google_api/big_query/v2/model/table.ex index ee2b445587..83fb8ef2db 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table.ex @@ -21,64 +21,74 @@ defmodule GoogleApi.BigQuery.V2.Model.Table do ## Attributes - * `etag` (*type:* `String.t`, *default:* `nil`) - [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change. - * `numLongTermBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] The number of bytes in the table that are considered "long-term storage". - * `requirePartitionFilter` (*type:* `boolean()`, *default:* `false`) - [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. - * `num_long_term_physical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. - * `num_partitions` (*type:* `String.t`, *default:* `nil`) - [Output-only] The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. - * `description` (*type:* `String.t`, *default:* `nil`) - [Optional] A user-friendly description of this table. - * `snapshotDefinition` (*type:* `GoogleApi.BigQuery.V2.Model.SnapshotDefinition.t`, *default:* `nil`) - [Output-only] Snapshot definition. - * `kind` (*type:* `String.t`, *default:* `bigquery#table`) - [Output-only] The type of the resource. - * `cloneDefinition` (*type:* `GoogleApi.BigQuery.V2.Model.CloneDefinition.t`, *default:* `nil`) - [Output-only] Clone definition. - * `num_active_physical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. - * `numPhysicalBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel. - * `numBytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] The size of this table in bytes, excluding any data in the streaming buffer. - * `num_time_travel_physical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few minutes. - * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] The time when this table was last modified, in milliseconds since the epoch. - * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered. - * `location` (*type:* `String.t`, *default:* `nil`) - [Output-only] The geographic location where the table resides. This value is inherited from the dataset. - * `friendlyName` (*type:* `String.t`, *default:* `nil`) - [Optional] A descriptive name for this table. - * `expirationTime` (*type:* `String.t`, *default:* `nil`) - [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables. - * `timePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.TimePartitioning.t`, *default:* `nil`) - Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. - * `maxStaleness` (*type:* `String.t`, *default:* `nil`) - [Optional] Max staleness of data that could be returned when table or materialized view is queried (formatted as Google SQL Interval type). - * `model` (*type:* `GoogleApi.BigQuery.V2.Model.ModelDefinition.t`, *default:* `nil`) - [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run 'PREDICT' queries. - * `creationTime` (*type:* `String.t`, *default:* `nil`) - [Output-only] The time when this table was created, in milliseconds since the epoch. - * `view` (*type:* `GoogleApi.BigQuery.V2.Model.ViewDefinition.t`, *default:* `nil`) - [Optional] The view definition. - * `num_total_logical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Total number of logical bytes in the table or materialized view. - * `defaultCollation` (*type:* `String.t`, *default:* `nil`) - [Output-only] The default collation of the table. - * `num_active_logical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of logical bytes that are less than 90 days old. - * `tableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - [Required] Reference describing the ID of this table. - * `externalDataConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t`, *default:* `nil`) - [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. - * `type` (*type:* `String.t`, *default:* `nil`) - [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. SNAPSHOT: An immutable, read-only table that is a copy of another table. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE. - * `numRows` (*type:* `String.t`, *default:* `nil`) - [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer. - * `id` (*type:* `String.t`, *default:* `nil`) - [Output-only] An opaque ID uniquely identifying the table. - * `num_total_physical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. - * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. - * `materializedView` (*type:* `GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition.t`, *default:* `nil`) - [Optional] Materialized view definition. + * `numLongTermLogicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of logical bytes that are more than 90 days old. + * `etag` (*type:* `String.t`, *default:* `nil`) - Output only. A hash of this resource. + * `numTotalPhysicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. + * `numLongTermBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The number of logical bytes in the table that are considered "long-term storage". + * `partitionDefinition` (*type:* `GoogleApi.BigQuery.V2.Model.PartitioningDefinition.t`, *default:* `nil`) - Output only. The partition information for all table formats, including managed partitioned tables, hive partitioned tables, and iceberg partitioned tables. + * `requirePartitionFilter` (*type:* `boolean()`, *default:* `false`) - Optional. If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. A user-friendly description of this table. + * `numActivePhysicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. + * `snapshotDefinition` (*type:* `GoogleApi.BigQuery.V2.Model.SnapshotDefinition.t`, *default:* `nil`) - Output only. Contains information about the snapshot. This value is set via snapshot creation. + * `kind` (*type:* `String.t`, *default:* `bigquery#table`) - The type of resource ID. + * `cloneDefinition` (*type:* `GoogleApi.BigQuery.V2.Model.CloneDefinition.t`, *default:* `nil`) - Output only. Contains information about the clone. This value is set via the clone operation. + * `tableConstraints` (*type:* `GoogleApi.BigQuery.V2.Model.TableConstraints.t`, *default:* `nil`) - Optional. Tables Primary Key and Foreign Key information + * `numPhysicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The physical size of this table in bytes. This includes storage used for time travel. + * `numBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The size of this table in logical bytes, excluding any data in the streaming buffer. + * `numLongTermPhysicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. + * `lastModifiedTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this table was last modified, in milliseconds since the epoch. + * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - Clustering specification for the table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered. + * `location` (*type:* `String.t`, *default:* `nil`) - Output only. The geographic location where the table resides. This value is inherited from the dataset. + * `friendlyName` (*type:* `String.t`, *default:* `nil`) - Optional. A descriptive name for this table. + * `expirationTime` (*type:* `String.t`, *default:* `nil`) - Optional. The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables. + * `timePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.TimePartitioning.t`, *default:* `nil`) - If specified, configures time-based partitioning for this table. + * `maxStaleness` (*type:* `String.t`, *default:* `nil`) - Optional. The maximum staleness of data that could be returned when the table (or stale MV) is queried. Staleness encoded as a string encoding of sql IntervalValue type. + * `model` (*type:* `GoogleApi.BigQuery.V2.Model.ModelDefinition.t`, *default:* `nil`) - Deprecated. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this table was created, in milliseconds since the epoch. + * `tableReplicationInfo` (*type:* `GoogleApi.BigQuery.V2.Model.TableReplicationInfo.t`, *default:* `nil`) - Optional. Table replication info for table created `AS REPLICA` DDL like: `CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv` + * `view` (*type:* `GoogleApi.BigQuery.V2.Model.ViewDefinition.t`, *default:* `nil`) - Optional. The view definition. + * `defaultRoundingMode` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the default rounding mode specification of new decimal fields (NUMERIC OR BIGNUMERIC) in the table. During table creation or update, if a decimal field is added to this table without an explicit rounding mode specified, then the field inherits the table default rounding mode. Changing this field doesn't affect existing fields. + * `defaultCollation` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the default collation specification of new STRING fields in the table. During table creation or update, if a STRING field is added to this table without explicit collation specified, then the table inherits the table default collation. A change to this field affects only fields added afterwards, and does not alter the existing fields. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. + * `tableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Required. Reference describing the ID of this table. + * `numTimeTravelPhysicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few minutes. + * `externalDataConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t`, *default:* `nil`) - Optional. Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. Describes the table type. The following values are supported: * `TABLE`: A normal BigQuery table. * `VIEW`: A virtual table defined by a SQL query. * `EXTERNAL`: A table that references data stored in an external storage system, such as Google Cloud Storage. * `MATERIALIZED_VIEW`: A precomputed view defined by a SQL query. * `SNAPSHOT`: An immutable BigQuery table that preserves the contents of a base table at a particular time. See additional information on [table snapshots](/bigquery/docs/table-snapshots-intro). The default value is `TABLE`. + * `resourceTags` (*type:* `map()`, *default:* `nil`) - [Optional] The tags associated with this table. Tag keys are globally unique. See additional information on [tags](https://cloud.google.com/iam/docs/tags-access-control#definitions). An object containing a list of "key": value pairs. The key is the namespaced friendly name of the tag key, e.g. "12345/environment" where 12345 is parent id. The value is the friendly short name of the tag value, e.g. "production". + * `numRows` (*type:* `String.t`, *default:* `nil`) - Output only. The number of rows of data in this table, excluding any data in the streaming buffer. + * `numTotalLogicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Total number of logical bytes in the table or materialized view. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. An opaque ID uniquely identifying the table. + * `replicas` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableReference.t)`, *default:* `nil`) - Optional. Output only. Table references of all replicas currently active on the table. + * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - If specified, configures range partitioning for this table. + * `materializedView` (*type:* `GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition.t`, *default:* `nil`) - Optional. The materialized view definition. + * `materializedViewStatus` (*type:* `GoogleApi.BigQuery.V2.Model.MaterializedViewStatus.t`, *default:* `nil`) - Output only. The materialized view status. * `labels` (*type:* `map()`, *default:* `nil`) - The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key. - * `selfLink` (*type:* `String.t`, *default:* `nil`) - [Output-only] A URL that can be used to access this resource again. + * `selfLink` (*type:* `String.t`, *default:* `nil`) - Output only. A URL that can be used to access this resource again. + * `numPartitions` (*type:* `String.t`, *default:* `nil`) - Output only. The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. * `encryptionConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t`, *default:* `nil`) - Custom encryption configuration (e.g., Cloud KMS keys). - * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - [Optional] Describes the schema of this table. - * `num_long_term_logical_bytes` (*type:* `String.t`, *default:* `nil`) - [Output-only] Number of logical bytes that are more than 90 days old. - * `streamingBuffer` (*type:* `GoogleApi.BigQuery.V2.Model.Streamingbuffer.t`, *default:* `nil`) - [Output-only] Contains information regarding this table's streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer. + * `schema` (*type:* `GoogleApi.BigQuery.V2.Model.TableSchema.t`, *default:* `nil`) - Optional. Describes the schema of this table. + * `numActiveLogicalBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Number of logical bytes that are less than 90 days old. + * `biglakeConfiguration` (*type:* `GoogleApi.BigQuery.V2.Model.BigLakeConfiguration.t`, *default:* `nil`) - Optional. Specifies the configuration of a BigLake managed table. + * `streamingBuffer` (*type:* `GoogleApi.BigQuery.V2.Model.Streamingbuffer.t`, *default:* `nil`) - Output only. Contains information regarding this table's streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :numLongTermLogicalBytes => String.t() | nil, :etag => String.t() | nil, + :numTotalPhysicalBytes => String.t() | nil, :numLongTermBytes => String.t() | nil, + :partitionDefinition => GoogleApi.BigQuery.V2.Model.PartitioningDefinition.t() | nil, :requirePartitionFilter => boolean() | nil, - :num_long_term_physical_bytes => String.t() | nil, - :num_partitions => String.t() | nil, :description => String.t() | nil, + :numActivePhysicalBytes => String.t() | nil, :snapshotDefinition => GoogleApi.BigQuery.V2.Model.SnapshotDefinition.t() | nil, :kind => String.t() | nil, :cloneDefinition => GoogleApi.BigQuery.V2.Model.CloneDefinition.t() | nil, - :num_active_physical_bytes => String.t() | nil, + :tableConstraints => GoogleApi.BigQuery.V2.Model.TableConstraints.t() | nil, :numPhysicalBytes => String.t() | nil, :numBytes => String.t() | nil, - :num_time_travel_physical_bytes => String.t() | nil, + :numLongTermPhysicalBytes => String.t() | nil, :lastModifiedTime => String.t() | nil, :clustering => GoogleApi.BigQuery.V2.Model.Clustering.t() | nil, :location => String.t() | nil, @@ -88,41 +98,49 @@ defmodule GoogleApi.BigQuery.V2.Model.Table do :maxStaleness => String.t() | nil, :model => GoogleApi.BigQuery.V2.Model.ModelDefinition.t() | nil, :creationTime => String.t() | nil, + :tableReplicationInfo => GoogleApi.BigQuery.V2.Model.TableReplicationInfo.t() | nil, :view => GoogleApi.BigQuery.V2.Model.ViewDefinition.t() | nil, - :num_total_logical_bytes => String.t() | nil, + :defaultRoundingMode => String.t() | nil, :defaultCollation => String.t() | nil, - :num_active_logical_bytes => String.t() | nil, :tableReference => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, + :numTimeTravelPhysicalBytes => String.t() | nil, :externalDataConfiguration => GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration.t() | nil, :type => String.t() | nil, + :resourceTags => map() | nil, :numRows => String.t() | nil, + :numTotalLogicalBytes => String.t() | nil, :id => String.t() | nil, - :num_total_physical_bytes => String.t() | nil, + :replicas => list(GoogleApi.BigQuery.V2.Model.TableReference.t()) | nil, :rangePartitioning => GoogleApi.BigQuery.V2.Model.RangePartitioning.t() | nil, :materializedView => GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition.t() | nil, + :materializedViewStatus => GoogleApi.BigQuery.V2.Model.MaterializedViewStatus.t() | nil, :labels => map() | nil, :selfLink => String.t() | nil, + :numPartitions => String.t() | nil, :encryptionConfiguration => GoogleApi.BigQuery.V2.Model.EncryptionConfiguration.t() | nil, :schema => GoogleApi.BigQuery.V2.Model.TableSchema.t() | nil, - :num_long_term_logical_bytes => String.t() | nil, + :numActiveLogicalBytes => String.t() | nil, + :biglakeConfiguration => GoogleApi.BigQuery.V2.Model.BigLakeConfiguration.t() | nil, :streamingBuffer => GoogleApi.BigQuery.V2.Model.Streamingbuffer.t() | nil } + field(:numLongTermLogicalBytes) field(:etag) + field(:numTotalPhysicalBytes) field(:numLongTermBytes) + field(:partitionDefinition, as: GoogleApi.BigQuery.V2.Model.PartitioningDefinition) field(:requirePartitionFilter) - field(:num_long_term_physical_bytes) - field(:num_partitions) field(:description) + field(:numActivePhysicalBytes) field(:snapshotDefinition, as: GoogleApi.BigQuery.V2.Model.SnapshotDefinition) field(:kind) field(:cloneDefinition, as: GoogleApi.BigQuery.V2.Model.CloneDefinition) - field(:num_active_physical_bytes) + field(:tableConstraints, as: GoogleApi.BigQuery.V2.Model.TableConstraints) field(:numPhysicalBytes) field(:numBytes) - field(:num_time_travel_physical_bytes) + field(:numLongTermPhysicalBytes) field(:lastModifiedTime) field(:clustering, as: GoogleApi.BigQuery.V2.Model.Clustering) field(:location) @@ -132,23 +150,29 @@ defmodule GoogleApi.BigQuery.V2.Model.Table do field(:maxStaleness) field(:model, as: GoogleApi.BigQuery.V2.Model.ModelDefinition) field(:creationTime) + field(:tableReplicationInfo, as: GoogleApi.BigQuery.V2.Model.TableReplicationInfo) field(:view, as: GoogleApi.BigQuery.V2.Model.ViewDefinition) - field(:num_total_logical_bytes) + field(:defaultRoundingMode) field(:defaultCollation) - field(:num_active_logical_bytes) field(:tableReference, as: GoogleApi.BigQuery.V2.Model.TableReference) + field(:numTimeTravelPhysicalBytes) field(:externalDataConfiguration, as: GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration) field(:type) + field(:resourceTags, type: :map) field(:numRows) + field(:numTotalLogicalBytes) field(:id) - field(:num_total_physical_bytes) + field(:replicas, as: GoogleApi.BigQuery.V2.Model.TableReference, type: :list) field(:rangePartitioning, as: GoogleApi.BigQuery.V2.Model.RangePartitioning) field(:materializedView, as: GoogleApi.BigQuery.V2.Model.MaterializedViewDefinition) + field(:materializedViewStatus, as: GoogleApi.BigQuery.V2.Model.MaterializedViewStatus) field(:labels, type: :map) field(:selfLink) + field(:numPartitions) field(:encryptionConfiguration, as: GoogleApi.BigQuery.V2.Model.EncryptionConfiguration) field(:schema, as: GoogleApi.BigQuery.V2.Model.TableSchema) - field(:num_long_term_logical_bytes) + field(:numActiveLogicalBytes) + field(:biglakeConfiguration, as: GoogleApi.BigQuery.V2.Model.BigLakeConfiguration) field(:streamingBuffer, as: GoogleApi.BigQuery.V2.Model.Streamingbuffer) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_constraints.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints.ex new file mode 100644 index 0000000000..50e3e34469 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableConstraints do + @moduledoc """ + The TableConstraints defines the primary key and foreign key. + + ## Attributes + + * `foreignKeys` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeys.t)`, *default:* `nil`) - Optional. Present only if the table has a foreign key. The foreign key is not enforced. + * `primaryKey` (*type:* `GoogleApi.BigQuery.V2.Model.TableConstraintsPrimaryKey.t`, *default:* `nil`) - Represents the primary key constraint on a table's columns. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :foreignKeys => list(GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeys.t()) | nil, + :primaryKey => GoogleApi.BigQuery.V2.Model.TableConstraintsPrimaryKey.t() | nil + } + + field(:foreignKeys, as: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeys, type: :list) + field(:primaryKey, as: GoogleApi.BigQuery.V2.Model.TableConstraintsPrimaryKey) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TableConstraints do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableConstraints.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.TableConstraints do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys.ex new file mode 100644 index 0000000000..4f77c7e062 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys.ex @@ -0,0 +1,62 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeys do + @moduledoc """ + Represents a foreign key constraint on a table's columns. + + ## Attributes + + * `columnReferences` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysColumnReferences.t)`, *default:* `nil`) - Required. The columns that compose the foreign key. + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. Set only if the foreign key constraint is named. + * `referencedTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysReferencedTable.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columnReferences => + list(GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysColumnReferences.t()) + | nil, + :name => String.t() | nil, + :referencedTable => + GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysReferencedTable.t() | nil + } + + field(:columnReferences, + as: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysColumnReferences, + type: :list + ) + + field(:name) + + field(:referencedTable, + as: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysReferencedTable + ) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeys do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeys.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeys do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys_column_references.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys_column_references.ex new file mode 100644 index 0000000000..631d962084 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys_column_references.ex @@ -0,0 +1,51 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysColumnReferences do + @moduledoc """ + The pair of the foreign key column and primary key column. + + ## Attributes + + * `referencedColumn` (*type:* `String.t`, *default:* `nil`) - Required. The column in the primary key that are referenced by the referencing_column. + * `referencingColumn` (*type:* `String.t`, *default:* `nil`) - Required. The column that composes the foreign key. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :referencedColumn => String.t() | nil, + :referencingColumn => String.t() | nil + } + + field(:referencedColumn) + field(:referencingColumn) +end + +defimpl Poison.Decoder, + for: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysColumnReferences do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysColumnReferences.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysColumnReferences do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys_referenced_table.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys_referenced_table.ex new file mode 100644 index 0000000000..120ecada44 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_foreign_keys_referenced_table.ex @@ -0,0 +1,54 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysReferencedTable do + @moduledoc """ + + + ## Attributes + + * `datasetId` (*type:* `String.t`, *default:* `nil`) - + * `projectId` (*type:* `String.t`, *default:* `nil`) - + * `tableId` (*type:* `String.t`, *default:* `nil`) - + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :datasetId => String.t() | nil, + :projectId => String.t() | nil, + :tableId => String.t() | nil + } + + field(:datasetId) + field(:projectId) + field(:tableId) +end + +defimpl Poison.Decoder, + for: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysReferencedTable do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysReferencedTable.decode(value, options) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.BigQuery.V2.Model.TableConstraintsForeignKeysReferencedTable do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_primary_key.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_primary_key.ex new file mode 100644 index 0000000000..1f56848c75 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_constraints_primary_key.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableConstraintsPrimaryKey do + @moduledoc """ + Represents the primary key constraint on a table's columns. + + ## Attributes + + * `columns` (*type:* `list(String.t)`, *default:* `nil`) - Required. The columns that are composed of the primary key constraint. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :columns => list(String.t()) | nil + } + + field(:columns, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TableConstraintsPrimaryKey do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableConstraintsPrimaryKey.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.TableConstraintsPrimaryKey do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex index 70133ab151..d832796864 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request.ex @@ -17,15 +17,16 @@ defmodule GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequest do @moduledoc """ - + Request for sending a single streaming insert. ## Attributes - * `ignoreUnknownValues` (*type:* `boolean()`, *default:* `nil`) - [Optional] Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors. - * `kind` (*type:* `String.t`, *default:* `bigquery#tableDataInsertAllRequest`) - The resource type of the response. - * `rows` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequestRows.t)`, *default:* `nil`) - The rows to insert. - * `skipInvalidRows` (*type:* `boolean()`, *default:* `nil`) - [Optional] Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist. - * `templateSuffix` (*type:* `String.t`, *default:* `nil`) - If specified, treats the destination table as a base template, and inserts the rows into an instance table named "{destination}{templateSuffix}". BigQuery will manage creation of the instance table, using the schema of the base template table. See https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables for considerations when working with templates tables. + * `ignoreUnknownValues` (*type:* `boolean()`, *default:* `nil`) - Optional. Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors. + * `kind` (*type:* `String.t`, *default:* `bigquery#tableDataInsertAllRequest`) - Optional. The resource type of the response. The value is not checked at the backend. Historically, it has been set to "bigquery#tableDataInsertAllRequest" but you are not required to set it. + * `rows` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequestRows.t)`, *default:* `nil`) - + * `skipInvalidRows` (*type:* `boolean()`, *default:* `nil`) - Optional. Insert all valid rows of a request, even if invalid rows exist. The default value is false, which causes the entire request to fail if any invalid rows exist. + * `templateSuffix` (*type:* `String.t`, *default:* `nil`) - Optional. If specified, treats the destination table as a base template, and inserts the rows into an instance table named "{destination}{templateSuffix}". BigQuery will manage creation of the instance table, using the schema of the base template table. See https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables for considerations when working with templates tables. + * `traceId` (*type:* `String.t`, *default:* `nil`) - Optional. Unique request trace id. Used for debugging purposes only. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. """ use GoogleApi.Gax.ModelBase @@ -35,7 +36,8 @@ defmodule GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequest do :kind => String.t() | nil, :rows => list(GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequestRows.t()) | nil, :skipInvalidRows => boolean() | nil, - :templateSuffix => String.t() | nil + :templateSuffix => String.t() | nil, + :traceId => String.t() | nil } field(:ignoreUnknownValues) @@ -43,6 +45,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequest do field(:rows, as: GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequestRows, type: :list) field(:skipInvalidRows) field(:templateSuffix) + field(:traceId) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequest do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request_rows.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request_rows.ex index 90c5b6816c..e352f68b1b 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request_rows.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_request_rows.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequestRows do @moduledoc """ - + Data for a single insertion row. ## Attributes - * `insertId` (*type:* `String.t`, *default:* `nil`) - [Optional] A unique ID for each row. BigQuery uses this property to detect duplicate insertion requests on a best-effort basis. - * `json` (*type:* `GoogleApi.BigQuery.V2.Model.JsonObject.t`, *default:* `nil`) - [Required] A JSON object that contains a row of data. The object's properties and values must match the destination table's schema. + * `insertId` (*type:* `String.t`, *default:* `nil`) - Insertion ID for best-effort deduplication. This feature is not recommended, and users seeking stronger insertion semantics are encouraged to use other mechanisms such as the BigQuery Write API. + * `json` (*type:* `GoogleApi.BigQuery.V2.Model.JsonObject.t`, *default:* `nil`) - Data for a single row. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response.ex index 63db8d782a..c58c0e952c 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponse do @moduledoc """ - + Describes the format of a streaming insert response. ## Attributes - * `insertErrors` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponseInsertErrors.t)`, *default:* `nil`) - An array of errors for rows that were not inserted. - * `kind` (*type:* `String.t`, *default:* `bigquery#tableDataInsertAllResponse`) - The resource type of the response. + * `insertErrors` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponseInsertErrors.t)`, *default:* `nil`) - Describes specific errors encountered while processing the request. + * `kind` (*type:* `String.t`, *default:* `bigquery#tableDataInsertAllResponse`) - Returns "bigquery#tableDataInsertAllResponse". """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response_insert_errors.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response_insert_errors.ex index 85d40e3ea6..a1b6b7cb6f 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response_insert_errors.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_data_insert_all_response_insert_errors.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponseInsertErrors do @moduledoc """ - + Error details about a single row's insertion. ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_data_list.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_data_list.ex index defb35c2d2..d41a0faa0a 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_data_list.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_data_list.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TableDataList do * `kind` (*type:* `String.t`, *default:* `bigquery#tableDataList`) - The resource type of the response. * `pageToken` (*type:* `String.t`, *default:* `nil`) - A token used for paging results. Providing this token instead of the startIndex parameter can help you retrieve stable results when an underlying table is changing. * `rows` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableRow.t)`, *default:* `nil`) - Rows of results. - * `totalRows` (*type:* `String.t`, *default:* `nil`) - The total number of rows in the complete table. + * `totalRows` (*type:* `String.t`, *default:* `nil`) - Total rows of the entire table. In order to show default value 0 we have to present it as string. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema.ex index eb32514aa8..5c5df88b10 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema.ex @@ -17,22 +17,24 @@ defmodule GoogleApi.BigQuery.V2.Model.TableFieldSchema do @moduledoc """ - + A field in TableSchema ## Attributes - * `categories` (*type:* `GoogleApi.BigQuery.V2.Model.TableFieldSchemaCategories.t`, *default:* `nil`) - [Optional] The categories attached to this field, used for field-level access control. - * `collation` (*type:* `String.t`, *default:* `nil`) - Optional. Collation specification of the field. It only can be set on string type field. - * `defaultValueExpression` (*type:* `String.t`, *default:* `nil`) - Optional. A SQL expression to specify the default value for this field. It can only be set for top level fields (columns). You can use struct or array expression to specify default value for the entire struct or array. The valid SQL expressions are: - Literals for all data types, including STRUCT and ARRAY. - Following functions: - CURRENT_TIMESTAMP - CURRENT_TIME - CURRENT_DATE - CURRENT_DATETIME - GENERATE_UUID - RAND - SESSION_USER - ST_GEOGPOINT - Struct or array composed with the above allowed functions, for example, [CURRENT_DATE(), DATE '2020-01-01'] - * `description` (*type:* `String.t`, *default:* `nil`) - [Optional] The field description. The maximum length is 1,024 characters. - * `fields` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableFieldSchema.t)`, *default:* `nil`) - [Optional] Describes the nested schema fields if the type property is set to RECORD. - * `maxLength` (*type:* `String.t`, *default:* `nil`) - [Optional] Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES". - * `mode` (*type:* `String.t`, *default:* `nil`) - [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. - * `name` (*type:* `String.t`, *default:* `nil`) - [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 300 characters. - * `policyTags` (*type:* `GoogleApi.BigQuery.V2.Model.TableFieldSchemaPolicyTags.t`, *default:* `nil`) - - * `precision` (*type:* `String.t`, *default:* `nil`) - [Optional] Precision (maximum number of total digits in base 10) and scale (maximum number of digits in the fractional part in base 10) constraints for values of this field for NUMERIC or BIGNUMERIC. It is invalid to set precision or scale if type ≠ "NUMERIC" and ≠ "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: - Precision (P) and scale (S) are specified: [-10P-S + 10-S, 10P-S - 10-S] - Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10P + 1, 10P - 1]. Acceptable values for precision and scale if both are specified: - If type = "NUMERIC": 1 ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9. - If type = "BIGNUMERIC": 1 ≤ precision - scale ≤ 38 and 0 ≤ scale ≤ 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): - If type = "NUMERIC": 1 ≤ precision ≤ 29. - If type = "BIGNUMERIC": 1 ≤ precision ≤ 38. If scale is specified but not precision, then it is invalid. - * `scale` (*type:* `String.t`, *default:* `nil`) - [Optional] See documentation for precision. - * `type` (*type:* `String.t`, *default:* `nil`) - [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC, BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, INTERVAL, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD). + * `categories` (*type:* `GoogleApi.BigQuery.V2.Model.TableFieldSchemaCategories.t`, *default:* `nil`) - Deprecated. + * `collation` (*type:* `String.t`, *default:* `nil`) - Optional. Field collation can be set only when the type of field is STRING. The following values are supported: * 'und:ci': undetermined locale, case insensitive. * '': empty string. Default to case-sensitive behavior. + * `defaultValueExpression` (*type:* `String.t`, *default:* `nil`) - Optional. A SQL expression to specify the [default value] (https://cloud.google.com/bigquery/docs/default-values) for this field. + * `description` (*type:* `String.t`, *default:* `nil`) - Optional. The field description. The maximum length is 1,024 characters. + * `fields` (*type:* `list(GoogleApi.BigQuery.V2.Model.TableFieldSchema.t)`, *default:* `nil`) - Optional. Describes the nested schema fields if the type property is set to RECORD. + * `maxLength` (*type:* `String.t`, *default:* `nil`) - Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES". + * `mode` (*type:* `String.t`, *default:* `nil`) - Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. + * `name` (*type:* `String.t`, *default:* `nil`) - Required. The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 300 characters. + * `policyTags` (*type:* `GoogleApi.BigQuery.V2.Model.TableFieldSchemaPolicyTags.t`, *default:* `nil`) - Optional. The policy tags attached to this field, used for field-level access control. If not set, defaults to empty policy_tags. + * `precision` (*type:* `String.t`, *default:* `nil`) - Optional. Precision (maximum number of total digits in base 10) and scale (maximum number of digits in the fractional part in base 10) constraints for values of this field for NUMERIC or BIGNUMERIC. It is invalid to set precision or scale if type ≠ "NUMERIC" and ≠ "BIGNUMERIC". If precision and scale are not specified, no value range constraint is imposed on this field insofar as values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field must be in this range when: * Precision (P) and scale (S) are specified: [-10P-S + 10-S, 10P-S - 10-S] * Precision (P) is specified but not scale (and thus scale is interpreted to be equal to zero): [-10P + 1, 10P - 1]. Acceptable values for precision and scale if both are specified: * If type = "NUMERIC": 1 ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9. * If type = "BIGNUMERIC": 1 ≤ precision - scale ≤ 38 and 0 ≤ scale ≤ 38. Acceptable values for precision if only precision is specified but not scale (and thus scale is interpreted to be equal to zero): * If type = "NUMERIC": 1 ≤ precision ≤ 29. * If type = "BIGNUMERIC": 1 ≤ precision ≤ 38. If scale is specified but not precision, then it is invalid. + * `rangeElementType` (*type:* `GoogleApi.BigQuery.V2.Model.TableFieldSchemaRangeElementType.t`, *default:* `nil`) - Represents the type of a field element. + * `roundingMode` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the rounding mode to be used when storing values of NUMERIC and BIGNUMERIC type. + * `scale` (*type:* `String.t`, *default:* `nil`) - Optional. See documentation for precision. + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The field data type. Possible values include: * STRING * BYTES * INTEGER (or INT64) * FLOAT (or FLOAT64) * BOOLEAN (or BOOL) * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY * NUMERIC * BIGNUMERIC * JSON * RECORD (or STRUCT) * RANGE ([Preview](/products/#product-launch-stages)) Use of RECORD/STRUCT indicates that the field contains a nested schema. """ use GoogleApi.Gax.ModelBase @@ -48,6 +50,9 @@ defmodule GoogleApi.BigQuery.V2.Model.TableFieldSchema do :name => String.t() | nil, :policyTags => GoogleApi.BigQuery.V2.Model.TableFieldSchemaPolicyTags.t() | nil, :precision => String.t() | nil, + :rangeElementType => + GoogleApi.BigQuery.V2.Model.TableFieldSchemaRangeElementType.t() | nil, + :roundingMode => String.t() | nil, :scale => String.t() | nil, :type => String.t() | nil } @@ -62,6 +67,8 @@ defmodule GoogleApi.BigQuery.V2.Model.TableFieldSchema do field(:name) field(:policyTags, as: GoogleApi.BigQuery.V2.Model.TableFieldSchemaPolicyTags) field(:precision) + field(:rangeElementType, as: GoogleApi.BigQuery.V2.Model.TableFieldSchemaRangeElementType) + field(:roundingMode) field(:scale) field(:type) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_categories.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_categories.ex index b9254c253a..be5517263c 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_categories.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_categories.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.TableFieldSchemaCategories do @moduledoc """ - [Optional] The categories attached to this field, used for field-level access control. + Deprecated. ## Attributes - * `names` (*type:* `list(String.t)`, *default:* `nil`) - A list of category resource names. For example, "projects/1/taxonomies/2/categories/3". At most 5 categories are allowed. + * `names` (*type:* `list(String.t)`, *default:* `nil`) - Deprecated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_policy_tags.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_policy_tags.ex index b700ea2aa4..976c007cdb 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_policy_tags.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_policy_tags.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.TableFieldSchemaPolicyTags do @moduledoc """ - + Optional. The policy tags attached to this field, used for field-level access control. If not set, defaults to empty policy_tags. ## Attributes - * `names` (*type:* `list(String.t)`, *default:* `nil`) - A list of category resource names. For example, "projects/1/location/eu/taxonomies/2/policyTags/3". At most 1 policy tag is allowed. + * `names` (*type:* `list(String.t)`, *default:* `nil`) - A list of policy tag resource names. For example, "projects/1/locations/eu/taxonomies/2/policyTags/3". At most 1 policy tag is currently allowed. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_range_element_type.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_range_element_type.ex new file mode 100644 index 0000000000..2262a963bc --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_field_schema_range_element_type.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableFieldSchemaRangeElementType do + @moduledoc """ + Represents the type of a field element. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The type of a field element. For more information, see TableFieldSchema.type. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TableFieldSchemaRangeElementType do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableFieldSchemaRangeElementType.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.TableFieldSchemaRangeElementType do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_list.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_list.ex index 895172dfd3..1f3777fa60 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_list.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_list.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TableList do @moduledoc """ - + Partial projection of the metadata for a given table in a list response. ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables.ex index b058e1cd66..e1c5c72f72 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables.ex @@ -21,18 +21,19 @@ defmodule GoogleApi.BigQuery.V2.Model.TableListTables do ## Attributes - * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - [Beta] Clustering specification for this table, if configured. - * `creationTime` (*type:* `String.t`, *default:* `nil`) - The time when this table was created, in milliseconds since the epoch. - * `expirationTime` (*type:* `String.t`, *default:* `nil`) - [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. + * `clustering` (*type:* `GoogleApi.BigQuery.V2.Model.Clustering.t`, *default:* `nil`) - Clustering specification for this table, if configured. + * `creationTime` (*type:* `String.t`, *default:* `nil`) - Output only. The time when this table was created, in milliseconds since the epoch. + * `expirationTime` (*type:* `String.t`, *default:* `nil`) - The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. * `friendlyName` (*type:* `String.t`, *default:* `nil`) - The user-friendly name for this table. - * `id` (*type:* `String.t`, *default:* `nil`) - An opaque ID of the table - * `kind` (*type:* `String.t`, *default:* `bigquery#table`) - The resource type. + * `id` (*type:* `String.t`, *default:* `nil`) - An opaque ID of the table. + * `kind` (*type:* `String.t`, *default:* `nil`) - The resource type. * `labels` (*type:* `map()`, *default:* `nil`) - The labels associated with this table. You can use these to organize and group your tables. - * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - The range partitioning specification for this table, if configured. - * `tableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - A reference uniquely identifying the table. - * `timePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.TimePartitioning.t`, *default:* `nil`) - The time-based partitioning specification for this table, if configured. - * `type` (*type:* `String.t`, *default:* `nil`) - The type of table. Possible values are: TABLE, VIEW. - * `view` (*type:* `GoogleApi.BigQuery.V2.Model.TableListTablesView.t`, *default:* `nil`) - Additional details for a view. + * `rangePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.RangePartitioning.t`, *default:* `nil`) - The range partitioning for this table. + * `requirePartitionFilter` (*type:* `boolean()`, *default:* `false`) - Optional. If set to true, queries including this table must specify a partition filter. This filter is used for partition elimination. + * `tableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - A reference uniquely identifying table. + * `timePartitioning` (*type:* `GoogleApi.BigQuery.V2.Model.TimePartitioning.t`, *default:* `nil`) - The time-based partitioning for this table. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of table. + * `view` (*type:* `GoogleApi.BigQuery.V2.Model.TableListTablesView.t`, *default:* `nil`) - Information about a logical view. """ use GoogleApi.Gax.ModelBase @@ -46,6 +47,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TableListTables do :kind => String.t() | nil, :labels => map() | nil, :rangePartitioning => GoogleApi.BigQuery.V2.Model.RangePartitioning.t() | nil, + :requirePartitionFilter => boolean() | nil, :tableReference => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, :timePartitioning => GoogleApi.BigQuery.V2.Model.TimePartitioning.t() | nil, :type => String.t() | nil, @@ -60,6 +62,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TableListTables do field(:kind) field(:labels, type: :map) field(:rangePartitioning, as: GoogleApi.BigQuery.V2.Model.RangePartitioning) + field(:requirePartitionFilter) field(:tableReference, as: GoogleApi.BigQuery.V2.Model.TableReference) field(:timePartitioning, as: GoogleApi.BigQuery.V2.Model.TimePartitioning) field(:type) diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables_view.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables_view.ex index 4b99422bc7..723d9a9e75 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables_view.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_list_tables_view.ex @@ -17,19 +17,22 @@ defmodule GoogleApi.BigQuery.V2.Model.TableListTablesView do @moduledoc """ - Additional details for a view. + Information about a logical view. ## Attributes - * `useLegacySql` (*type:* `boolean()`, *default:* `nil`) - True if view is defined in legacy SQL dialect, false if in standard SQL. + * `privacyPolicy` (*type:* `GoogleApi.BigQuery.V2.Model.PrivacyPolicy.t`, *default:* `nil`) - Specifices the privacy policy for the view. + * `useLegacySql` (*type:* `boolean()`, *default:* `nil`) - True if view is defined in legacy SQL dialect, false if in GoogleSQL. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :privacyPolicy => GoogleApi.BigQuery.V2.Model.PrivacyPolicy.t() | nil, :useLegacySql => boolean() | nil } + field(:privacyPolicy, as: GoogleApi.BigQuery.V2.Model.PrivacyPolicy) field(:useLegacySql) end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_metadata_cache_usage.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_metadata_cache_usage.ex new file mode 100644 index 0000000000..158df2cb18 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_metadata_cache_usage.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableMetadataCacheUsage do + @moduledoc """ + Table level detail on the usage of metadata caching. Only set for Metadata caching eligible tables referenced in the query. + + ## Attributes + + * `explanation` (*type:* `String.t`, *default:* `nil`) - Free form human-readable reason metadata caching was unused for the job. + * `tableReference` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Metadata caching eligible table referenced in the query. + * `tableType` (*type:* `String.t`, *default:* `nil`) - [Table type](/bigquery/docs/reference/rest/v2/tables#Table.FIELDS.type). + * `unusedReason` (*type:* `String.t`, *default:* `nil`) - Reason for not using metadata caching for the table. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :explanation => String.t() | nil, + :tableReference => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil, + :tableType => String.t() | nil, + :unusedReason => String.t() | nil + } + + field(:explanation) + field(:tableReference, as: GoogleApi.BigQuery.V2.Model.TableReference) + field(:tableType) + field(:unusedReason) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TableMetadataCacheUsage do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableMetadataCacheUsage.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.TableMetadataCacheUsage do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_reference.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_reference.ex index a1f25be564..e870cb9524 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_reference.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_reference.ex @@ -21,9 +21,9 @@ defmodule GoogleApi.BigQuery.V2.Model.TableReference do ## Attributes - * `datasetId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the dataset containing this table. - * `projectId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the project containing this table. - * `tableId` (*type:* `String.t`, *default:* `nil`) - [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. + * `datasetId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the dataset containing this table. + * `projectId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the project containing this table. + * `tableId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the table. The ID can contain Unicode characters in category L (letter), M (mark), N (number), Pc (connector, including underscore), Pd (dash), and Zs (space). For more information, see [General Category](https://wikipedia.org/wiki/Unicode_character_property#General_Category). The maximum length is 1,024 characters. Certain operations allow suffixing of the table ID with a partition decorator, such as `sample_table$20190123`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_replication_info.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_replication_info.ex new file mode 100644 index 0000000000..0f1747911c --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_replication_info.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TableReplicationInfo do + @moduledoc """ + Replication info of a table created using `AS REPLICA` DDL like: `CREATE MATERIALIZED VIEW mv1 AS REPLICA OF src_mv` + + ## Attributes + + * `replicatedSourceLastRefreshTime` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. If source is a materialized view, this field signifies the last refresh time of the source. + * `replicationError` (*type:* `GoogleApi.BigQuery.V2.Model.ErrorProto.t`, *default:* `nil`) - Optional. Output only. Replication error that will permanently stopped table replication. + * `replicationIntervalMs` (*type:* `String.t`, *default:* `nil`) - Required. Specifies the interval at which the source table is polled for updates. + * `replicationStatus` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. Replication status of configured replication. + * `sourceTable` (*type:* `GoogleApi.BigQuery.V2.Model.TableReference.t`, *default:* `nil`) - Required. Source table reference that is replicated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :replicatedSourceLastRefreshTime => String.t() | nil, + :replicationError => GoogleApi.BigQuery.V2.Model.ErrorProto.t() | nil, + :replicationIntervalMs => String.t() | nil, + :replicationStatus => String.t() | nil, + :sourceTable => GoogleApi.BigQuery.V2.Model.TableReference.t() | nil + } + + field(:replicatedSourceLastRefreshTime) + field(:replicationError, as: GoogleApi.BigQuery.V2.Model.ErrorProto) + field(:replicationIntervalMs) + field(:replicationStatus) + field(:sourceTable, as: GoogleApi.BigQuery.V2.Model.TableReference) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TableReplicationInfo do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TableReplicationInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.TableReplicationInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/table_schema.ex b/clients/big_query/lib/google_api/big_query/v2/model/table_schema.ex index 8f5f7913e6..93122fa8e4 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/table_schema.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/table_schema.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TableSchema do @moduledoc """ - + Schema of a table ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/time_partitioning.ex b/clients/big_query/lib/google_api/big_query/v2/model/time_partitioning.ex index fd13bcbc3f..f4ab6756b9 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/time_partitioning.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/time_partitioning.ex @@ -21,10 +21,10 @@ defmodule GoogleApi.BigQuery.V2.Model.TimePartitioning do ## Attributes - * `expirationMs` (*type:* `String.t`, *default:* `nil`) - [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value. - * `field` (*type:* `String.t`, *default:* `nil`) - [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED. - * `requirePartitionFilter` (*type:* `boolean()`, *default:* `nil`) - - * `type` (*type:* `String.t`, *default:* `nil`) - [Required] The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. When the type is not specified, the default behavior is DAY. + * `expirationMs` (*type:* `String.t`, *default:* `nil`) - Optional. Number of milliseconds for which to keep the storage for a partition. A wrapper is used here because 0 is an invalid value. + * `field` (*type:* `String.t`, *default:* `nil`) - Optional. If not set, the table is partitioned by pseudo column '_PARTITIONTIME'; if set, the table is partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED. A wrapper is used here because an empty string is an invalid value. + * `requirePartitionFilter` (*type:* `boolean()`, *default:* `false`) - If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. This field is deprecated; please set the field with the same name on the table itself instead. This field needs a wrapper because we want to output the default value, false, if the user explicitly set it. + * `type` (*type:* `String.t`, *default:* `nil`) - Required. The supported types are DAY, HOUR, MONTH, and YEAR, which will generate one partition per day, hour, month, and year, respectively. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/training_options.ex b/clients/big_query/lib/google_api/big_query/v2/model/training_options.ex index 12a60d0480..2f3a3ed091 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/training_options.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/training_options.ex @@ -22,34 +22,44 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do ## Attributes * `cleanSpikesAndDips` (*type:* `boolean()`, *default:* `nil`) - If true, clean spikes and dips in the input time series. - * `minTimeSeriesLength` (*type:* `String.t`, *default:* `nil`) - Set fast trend ARIMA_PLUS model minimum training length. Use in pair with time_series_length_fraction. + * `minTimeSeriesLength` (*type:* `String.t`, *default:* `nil`) - The minimum number of time points in a time series that are used in modeling the trend component of the time series. If you use this option you must also set the `timeSeriesLengthFraction` option. This training option ensures that enough time points are available when you use `timeSeriesLengthFraction` in trend modeling. This is particularly important when forecasting multiple time series in a single query using `timeSeriesIdColumn`. If the total number of time points is less than the `minTimeSeriesLength` value, then the query uses all available time points. * `subsample` (*type:* `float()`, *default:* `nil`) - Subsample fraction of the training data to grow tree to prevent overfitting for boosted tree models. * `horizon` (*type:* `String.t`, *default:* `nil`) - The number of periods ahead that need to be forecasted. - * `trendSmoothingWindowSize` (*type:* `String.t`, *default:* `nil`) - The smoothing window size for the trend component of the time series. + * `budgetHours` (*type:* `float()`, *default:* `nil`) - Budget in hours for AutoML training. + * `trendSmoothingWindowSize` (*type:* `String.t`, *default:* `nil`) - Smoothing window size for the trend component. When a positive value is specified, a center moving average smoothing is applied on the history trend. When the smoothing window is out of the boundary at the beginning or the end of the trend, the first element or the last element is padded to fill the smoothing window before the average is applied. * `modelUri` (*type:* `String.t`, *default:* `nil`) - Google Cloud Storage URI from which the model was imported. Only applicable for imported models. + * `xgboostVersion` (*type:* `String.t`, *default:* `nil`) - User-selected XGBoost versions for training of XGBoost models. * `boosterType` (*type:* `String.t`, *default:* `nil`) - Booster type for boosted tree models. + * `vertexAiModelVersionAliases` (*type:* `list(String.t)`, *default:* `nil`) - The version aliases to apply in Vertex AI model registry. Always overwrite if the version aliases exists in a existing model. + * `fitIntercept` (*type:* `boolean()`, *default:* `nil`) - Whether the model should include intercept during model training. * `includeDrift` (*type:* `boolean()`, *default:* `nil`) - Include drift when fitting an ARIMA model. * `autoArima` (*type:* `boolean()`, *default:* `nil`) - Whether to enable auto ARIMA or not. * `learnRateStrategy` (*type:* `String.t`, *default:* `nil`) - The strategy to determine learn rate for the current iteration. * `labelClassWeights` (*type:* `map()`, *default:* `nil`) - Weights associated with each label class, for rebalancing the training data. Only applicable for classification models. - * `maxTimeSeriesLength` (*type:* `String.t`, *default:* `nil`) - Get truncated length by last n points in time series. Use separately from time_series_length_fraction and min_time_series_length. + * `autoClassWeights` (*type:* `boolean()`, *default:* `nil`) - Whether to calculate class weights automatically based on the popularity of each label. + * `maxTimeSeriesLength` (*type:* `String.t`, *default:* `nil`) - The maximum number of time points in a time series that can be used in modeling the trend component of the time series. Don't use this option with the `timeSeriesLengthFraction` or `minTimeSeriesLength` options. * `l2Regularization` (*type:* `float()`, *default:* `nil`) - L2 regularization coefficient. * `dartNormalizeType` (*type:* `String.t`, *default:* `nil`) - Type of normalization algorithm for boosted tree models using dart booster. * `userColumn` (*type:* `String.t`, *default:* `nil`) - User column specified for matrix factorization models. * `integratedGradientsNumSteps` (*type:* `String.t`, *default:* `nil`) - Number of integral steps for the integrated gradients explain method. * `lossType` (*type:* `String.t`, *default:* `nil`) - Type of loss function used during training run. + * `tfVersion` (*type:* `String.t`, *default:* `nil`) - Based on the selected TF version, the corresponding docker image is used to train external models. * `learnRate` (*type:* `float()`, *default:* `nil`) - Learning rate in training. Used only for iterative training algorithms. * `colorSpace` (*type:* `String.t`, *default:* `nil`) - Enums for color space, used for processing images in Object Table. See more details at https://www.tensorflow.org/io/tutorials/colorspace. * `hiddenUnits` (*type:* `list(String.t)`, *default:* `nil`) - Hidden units for dnn models. * `numFactors` (*type:* `String.t`, *default:* `nil`) - Num factors specified for matrix factorization models. * `numParallelTree` (*type:* `String.t`, *default:* `nil`) - Number of parallel trees constructed during each iteration for boosted tree models. + * `approxGlobalFeatureContrib` (*type:* `boolean()`, *default:* `nil`) - Whether to use approximate feature contribution method in XGBoost model explanation for global explain. * `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. * `dataSplitEvalFraction` (*type:* `float()`, *default:* `nil`) - The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2. * `colsampleBynode` (*type:* `float()`, *default:* `nil`) - Subsample ratio of columns for each node(split) for boosted tree models. * `dataFrequency` (*type:* `String.t`, *default:* `nil`) - The data frequency of a time series. * `dataSplitColumn` (*type:* `String.t`, *default:* `nil`) - The column to split data with. This column won't be used as a feature. 1. When data_split_method is CUSTOM, the corresponding column should be boolean. The rows with true value tag are eval data, and the false are training data. 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the corresponding column are used as training data, and the rest are eval data. It respects the order in Orderable data types: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-type-properties * `walsAlpha` (*type:* `float()`, *default:* `nil`) - Hyperparameter for matrix factoration when implicit feedback type is specified. - * `autoArimaMaxOrder` (*type:* `String.t`, *default:* `nil`) - The max value of non-seasonal p and q. + * `autoArimaMinOrder` (*type:* `String.t`, *default:* `nil`) - The min value of the sum of non-seasonal p and q. + * `autoArimaMaxOrder` (*type:* `String.t`, *default:* `nil`) - The max value of the sum of non-seasonal p and q. + * `instanceWeightColumn` (*type:* `String.t`, *default:* `nil`) - Name of the instance weight column for training data. This column isn't be used as a feature. + * `modelRegistry` (*type:* `String.t`, *default:* `nil`) - The model registry. * `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. * `dropout` (*type:* `float()`, *default:* `nil`) - Dropout probability for dnn models. * `l1Regularization` (*type:* `float()`, *default:* `nil`) - L1 regularization coefficient. @@ -62,17 +72,22 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do * `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. * `dataSplitMethod` (*type:* `String.t`, *default:* `nil`) - The data split type for training and evaluation, e.g. RANDOM. * `minSplitLoss` (*type:* `float()`, *default:* `nil`) - Minimum split loss for boosted tree models. + * `pcaExplainedVarianceRatio` (*type:* `float()`, *default:* `nil`) - The minimum ratio of cumulative explained variance that needs to be given by the PCA model. * `holidayRegion` (*type:* `String.t`, *default:* `nil`) - The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled. - * `timeSeriesLengthFraction` (*type:* `float()`, *default:* `nil`) - Get truncated length by fraction in time series. + * `timeSeriesLengthFraction` (*type:* `float()`, *default:* `nil`) - The fraction of the interpolated length of the time series that's used to model the time series trend component. All of the time points of the time series are used to model the non-trend component. This training option accelerates modeling training without sacrificing much forecasting accuracy. You can use this option with `minTimeSeriesLength` but not with `maxTimeSeriesLength`. * `warmStart` (*type:* `boolean()`, *default:* `nil`) - Whether to train a model from the last checkpoint. * `optimizationStrategy` (*type:* `String.t`, *default:* `nil`) - Optimization strategy for training linear regression models. * `treeMethod` (*type:* `String.t`, *default:* `nil`) - Tree construction algorithm for boosted tree models. * `sampledShapleyNumPaths` (*type:* `String.t`, *default:* `nil`) - Number of paths for the sampled Shapley explain method. - * `preserveInputStructs` (*type:* `boolean()`, *default:* `nil`) - Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output feature name is A.b. + * `pcaSolver` (*type:* `String.t`, *default:* `nil`) - The solver for PCA. * `feedbackType` (*type:* `String.t`, *default:* `nil`) - Feedback type that specifies which algorithm to run for matrix factorization. * `decomposeTimeSeries` (*type:* `boolean()`, *default:* `nil`) - If true, perform decompose time series and save the results. + * `activationFn` (*type:* `String.t`, *default:* `nil`) - Activation function of the neural nets. + * `optimizer` (*type:* `String.t`, *default:* `nil`) - Optimizer used for training the neural nets. * `distanceType` (*type:* `String.t`, *default:* `nil`) - Distance type for clustering models. + * `holidayRegions` (*type:* `list(String.t)`, *default:* `nil`) - A list of geographical regions that are used for time series modeling. * `colsampleBytree` (*type:* `float()`, *default:* `nil`) - Subsample ratio of columns when constructing each tree for boosted tree models. + * `numPrincipalComponents` (*type:* `String.t`, *default:* `nil`) - Number of principal components to keep in the PCA model. Must be <= the number of features. * `maxTreeDepth` (*type:* `String.t`, *default:* `nil`) - Maximum depth of a tree for boosted tree models. * `inputLabelColumns` (*type:* `list(String.t)`, *default:* `nil`) - Name of input label columns in training data. * `timeSeriesIdColumn` (*type:* `String.t`, *default:* `nil`) - The time series id column that was used during ARIMA model training. @@ -83,11 +98,15 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do * `batchSize` (*type:* `String.t`, *default:* `nil`) - Batch size for dnn models. * `timeSeriesIdColumns` (*type:* `list(String.t)`, *default:* `nil`) - The time series id columns that were used during ARIMA model training. * `colsampleBylevel` (*type:* `float()`, *default:* `nil`) - Subsample ratio of columns for each level for boosted tree models. + * `categoryEncodingMethod` (*type:* `String.t`, *default:* `nil`) - Categorical feature encoding method. * `enableGlobalExplain` (*type:* `boolean()`, *default:* `nil`) - If true, enable global explanation during training. * `kmeansInitializationMethod` (*type:* `String.t`, *default:* `nil`) - The method used to initialize the centroids for kmeans algorithm. * `initialLearnRate` (*type:* `float()`, *default:* `nil`) - Specifies the initial learning rate for the line search learn rate strategy. * `maxIterations` (*type:* `String.t`, *default:* `nil`) - The maximum number of iterations in training. Used only for iterative training algorithms. * `itemColumn` (*type:* `String.t`, *default:* `nil`) - Item column specified for matrix factorization models. + * `l1RegActivation` (*type:* `float()`, *default:* `nil`) - L1 regularization coefficient to activations. + * `standardizeFeatures` (*type:* `boolean()`, *default:* `nil`) - Whether to standardize numerical features. Default to true. + * `scaleFeatures` (*type:* `boolean()`, *default:* `nil`) - If true, scale the feature values by dividing the feature standard deviation. Currently only apply to PCA. """ use GoogleApi.Gax.ModelBase @@ -97,31 +116,41 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do :minTimeSeriesLength => String.t() | nil, :subsample => float() | nil, :horizon => String.t() | nil, + :budgetHours => float() | nil, :trendSmoothingWindowSize => String.t() | nil, :modelUri => String.t() | nil, + :xgboostVersion => String.t() | nil, :boosterType => String.t() | nil, + :vertexAiModelVersionAliases => list(String.t()) | nil, + :fitIntercept => boolean() | nil, :includeDrift => boolean() | nil, :autoArima => boolean() | nil, :learnRateStrategy => String.t() | nil, :labelClassWeights => map() | nil, + :autoClassWeights => boolean() | nil, :maxTimeSeriesLength => String.t() | nil, :l2Regularization => float() | nil, :dartNormalizeType => String.t() | nil, :userColumn => String.t() | nil, :integratedGradientsNumSteps => String.t() | nil, :lossType => String.t() | nil, + :tfVersion => String.t() | nil, :learnRate => float() | nil, :colorSpace => String.t() | nil, :hiddenUnits => list(String.t()) | nil, :numFactors => String.t() | nil, :numParallelTree => String.t() | nil, + :approxGlobalFeatureContrib => boolean() | nil, :calculatePValues => boolean() | nil, :dataSplitEvalFraction => float() | nil, :colsampleBynode => float() | nil, :dataFrequency => String.t() | nil, :dataSplitColumn => String.t() | nil, :walsAlpha => float() | nil, + :autoArimaMinOrder => String.t() | nil, :autoArimaMaxOrder => String.t() | nil, + :instanceWeightColumn => String.t() | nil, + :modelRegistry => String.t() | nil, :earlyStop => boolean() | nil, :dropout => float() | nil, :l1Regularization => float() | nil, @@ -134,17 +163,22 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do :minRelativeProgress => float() | nil, :dataSplitMethod => String.t() | nil, :minSplitLoss => float() | nil, + :pcaExplainedVarianceRatio => float() | nil, :holidayRegion => String.t() | nil, :timeSeriesLengthFraction => float() | nil, :warmStart => boolean() | nil, :optimizationStrategy => String.t() | nil, :treeMethod => String.t() | nil, :sampledShapleyNumPaths => String.t() | nil, - :preserveInputStructs => boolean() | nil, + :pcaSolver => String.t() | nil, :feedbackType => String.t() | nil, :decomposeTimeSeries => boolean() | nil, + :activationFn => String.t() | nil, + :optimizer => String.t() | nil, :distanceType => String.t() | nil, + :holidayRegions => list(String.t()) | nil, :colsampleBytree => float() | nil, + :numPrincipalComponents => String.t() | nil, :maxTreeDepth => String.t() | nil, :inputLabelColumns => list(String.t()) | nil, :timeSeriesIdColumn => String.t() | nil, @@ -155,42 +189,56 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do :batchSize => String.t() | nil, :timeSeriesIdColumns => list(String.t()) | nil, :colsampleBylevel => float() | nil, + :categoryEncodingMethod => String.t() | nil, :enableGlobalExplain => boolean() | nil, :kmeansInitializationMethod => String.t() | nil, :initialLearnRate => float() | nil, :maxIterations => String.t() | nil, - :itemColumn => String.t() | nil + :itemColumn => String.t() | nil, + :l1RegActivation => float() | nil, + :standardizeFeatures => boolean() | nil, + :scaleFeatures => boolean() | nil } field(:cleanSpikesAndDips) field(:minTimeSeriesLength) field(:subsample) field(:horizon) + field(:budgetHours) field(:trendSmoothingWindowSize) field(:modelUri) + field(:xgboostVersion) field(:boosterType) + field(:vertexAiModelVersionAliases, type: :list) + field(:fitIntercept) field(:includeDrift) field(:autoArima) field(:learnRateStrategy) field(:labelClassWeights, type: :map) + field(:autoClassWeights) field(:maxTimeSeriesLength) field(:l2Regularization) field(:dartNormalizeType) field(:userColumn) field(:integratedGradientsNumSteps) field(:lossType) + field(:tfVersion) field(:learnRate) field(:colorSpace) field(:hiddenUnits, type: :list) field(:numFactors) field(:numParallelTree) + field(:approxGlobalFeatureContrib) field(:calculatePValues) field(:dataSplitEvalFraction) field(:colsampleBynode) field(:dataFrequency) field(:dataSplitColumn) field(:walsAlpha) + field(:autoArimaMinOrder) field(:autoArimaMaxOrder) + field(:instanceWeightColumn) + field(:modelRegistry) field(:earlyStop) field(:dropout) field(:l1Regularization) @@ -203,17 +251,22 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do field(:minRelativeProgress) field(:dataSplitMethod) field(:minSplitLoss) + field(:pcaExplainedVarianceRatio) field(:holidayRegion) field(:timeSeriesLengthFraction) field(:warmStart) field(:optimizationStrategy) field(:treeMethod) field(:sampledShapleyNumPaths) - field(:preserveInputStructs) + field(:pcaSolver) field(:feedbackType) field(:decomposeTimeSeries) + field(:activationFn) + field(:optimizer) field(:distanceType) + field(:holidayRegions, type: :list) field(:colsampleBytree) + field(:numPrincipalComponents) field(:maxTreeDepth) field(:inputLabelColumns, type: :list) field(:timeSeriesIdColumn) @@ -224,11 +277,15 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do field(:batchSize) field(:timeSeriesIdColumns, type: :list) field(:colsampleBylevel) + field(:categoryEncodingMethod) field(:enableGlobalExplain) field(:kmeansInitializationMethod) field(:initialLearnRate) field(:maxIterations) field(:itemColumn) + field(:l1RegActivation) + field(:standardizeFeatures) + field(:scaleFeatures) end defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TrainingOptions do diff --git a/clients/big_query/lib/google_api/big_query/v2/model/transaction_info.ex b/clients/big_query/lib/google_api/big_query/v2/model/transaction_info.ex index f958e7ed7c..036fd77e5f 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/transaction_info.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/transaction_info.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.BigQuery.V2.Model.TransactionInfo do @moduledoc """ - + [Alpha] Information of a multi-statement transaction. ## Attributes - * `transactionId` (*type:* `String.t`, *default:* `nil`) - [Output-only] // [Alpha] Id of the transaction. + * `transactionId` (*type:* `String.t`, *default:* `nil`) - Output only. [Alpha] Id of the transaction. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query/lib/google_api/big_query/v2/model/transform_column.ex b/clients/big_query/lib/google_api/big_query/v2/model/transform_column.ex new file mode 100644 index 0000000000..14fe020bbf --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/transform_column.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.TransformColumn do + @moduledoc """ + Information about a single transform column. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the column. + * `transformSql` (*type:* `String.t`, *default:* `nil`) - Output only. The SQL expression used in the column transform. + * `type` (*type:* `GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t`, *default:* `nil`) - Output only. Data type of the column after the transform. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :transformSql => String.t() | nil, + :type => GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t() | nil + } + + field(:name) + field(:transformSql) + field(:type, as: GoogleApi.BigQuery.V2.Model.StandardSqlDataType) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.TransformColumn do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.TransformColumn.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.TransformColumn do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/undelete_dataset_request.ex b/clients/big_query/lib/google_api/big_query/v2/model/undelete_dataset_request.ex new file mode 100644 index 0000000000..8702ae7f07 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/undelete_dataset_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.UndeleteDatasetRequest do + @moduledoc """ + Request format for undeleting a dataset. + + ## Attributes + + * `deletionTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. The exact time when the dataset was deleted. If not specified, it will undelete the most recently deleted version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deletionTime => DateTime.t() | nil + } + + field(:deletionTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.UndeleteDatasetRequest do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.UndeleteDatasetRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.UndeleteDatasetRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/user_defined_function_resource.ex b/clients/big_query/lib/google_api/big_query/v2/model/user_defined_function_resource.ex index b796ac81ce..d496cff171 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/user_defined_function_resource.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/user_defined_function_resource.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource do @moduledoc """ - This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions + This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of GoogleSQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions ## Attributes diff --git a/clients/big_query/lib/google_api/big_query/v2/model/vector_search_statistics.ex b/clients/big_query/lib/google_api/big_query/v2/model/vector_search_statistics.ex new file mode 100644 index 0000000000..3f6f15f2f5 --- /dev/null +++ b/clients/big_query/lib/google_api/big_query/v2/model/vector_search_statistics.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.BigQuery.V2.Model.VectorSearchStatistics do + @moduledoc """ + Statistics for a vector search query. Populated as part of JobStatistics2. + + ## Attributes + + * `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. + * `indexUsageMode` (*type:* `String.t`, *default:* `nil`) - Specifies the index usage mode for the query. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :indexUnusedReasons => list(GoogleApi.BigQuery.V2.Model.IndexUnusedReason.t()) | nil, + :indexUsageMode => String.t() | nil + } + + field(:indexUnusedReasons, as: GoogleApi.BigQuery.V2.Model.IndexUnusedReason, type: :list) + field(:indexUsageMode) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQuery.V2.Model.VectorSearchStatistics do + def decode(value, options) do + GoogleApi.BigQuery.V2.Model.VectorSearchStatistics.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQuery.V2.Model.VectorSearchStatistics do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query/lib/google_api/big_query/v2/model/view_definition.ex b/clients/big_query/lib/google_api/big_query/v2/model/view_definition.ex index 931e737838..302a228787 100644 --- a/clients/big_query/lib/google_api/big_query/v2/model/view_definition.ex +++ b/clients/big_query/lib/google_api/big_query/v2/model/view_definition.ex @@ -17,19 +17,21 @@ defmodule GoogleApi.BigQuery.V2.Model.ViewDefinition do @moduledoc """ - + Describes the definition of a logical view. ## Attributes - * `query` (*type:* `String.t`, *default:* `nil`) - [Required] A query that BigQuery executes when the view is referenced. - * `useExplicitColumnNames` (*type:* `boolean()`, *default:* `nil`) - True if the column names are explicitly specified. For example by using the 'CREATE VIEW v(c1, c2) AS ...' syntax. Can only be set using BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ - * `useLegacySql` (*type:* `boolean()`, *default:* `nil`) - Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value. + * `privacyPolicy` (*type:* `GoogleApi.BigQuery.V2.Model.PrivacyPolicy.t`, *default:* `nil`) - Optional. Specifices the privacy policy for the view. + * `query` (*type:* `String.t`, *default:* `nil`) - Required. A query that BigQuery executes when the view is referenced. + * `useExplicitColumnNames` (*type:* `boolean()`, *default:* `nil`) - True if the column names are explicitly specified. For example by using the 'CREATE VIEW v(c1, c2) AS ...' syntax. Can only be set for GoogleSQL views. + * `useLegacySql` (*type:* `boolean()`, *default:* `nil`) - Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's GoogleSQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value. A wrapper is used here because the default value is True. * `userDefinedFunctionResources` (*type:* `list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t)`, *default:* `nil`) - Describes user-defined function resources used in the query. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :privacyPolicy => GoogleApi.BigQuery.V2.Model.PrivacyPolicy.t() | nil, :query => String.t() | nil, :useExplicitColumnNames => boolean() | nil, :useLegacySql => boolean() | nil, @@ -37,6 +39,7 @@ defmodule GoogleApi.BigQuery.V2.Model.ViewDefinition do list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t()) | nil } + field(:privacyPolicy, as: GoogleApi.BigQuery.V2.Model.PrivacyPolicy) field(:query) field(:useExplicitColumnNames) field(:useLegacySql)