diff --git a/clients/big_query_data_transfer/README.md b/clients/big_query_data_transfer/README.md index df822cb547..7f9e40e8da 100644 --- a/clients/big_query_data_transfer/README.md +++ b/clients/big_query_data_transfer/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_big_query_data_transfer, "~> 0.26"}] + [{:google_api_big_query_data_transfer, "~> 0.27"}] end ``` diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex index 3ba0ddc6fd..261c48c17b 100644 --- a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/api/projects.ex @@ -537,6 +537,78 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Api.Projects do ) end + @doc """ + Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). Data transfers configurations of unenrolled data sources will not be scheduled. + + ## Parameters + + * `connection` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - The name of the project resource in the form: `projects/{project_id}` + * `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.BigQueryDataTransfer.V1.Model.UnenrollDataSourcesRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.BigQueryDataTransfer.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec bigquerydatatransfer_projects_locations_unenroll_data_sources( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.BigQueryDataTransfer.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def bigquerydatatransfer_projects_locations_unenroll_data_sources( + connection, + name, + 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("/v1/{+name}:unenrollDataSources", %{ + "name" => URI.encode(name, &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.BigQueryDataTransfer.V1.Model.Empty{}]) + end + @doc """ Returns true if valid credentials exist for the given data source and requesting user. @@ -777,7 +849,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Api.Projects do * `: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"). * `:authorizationCode` (*type:* `String.t`) - Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. - * `:serviceAccountName` (*type:* `String.t`) - Optional service account name. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). + * `:serviceAccountName` (*type:* `String.t`) - Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). * `:versionInfo` (*type:* `String.t`) - Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. * `:body` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -1063,7 +1135,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. + * `name` (*type:* `String.t`) - The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/transferConfigs/{config_id}`, where `config_id` is usually a UUID, even though it is not guaranteed or required. The name is ignored when creating a transfer config. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1077,7 +1149,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Api.Projects do * `: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"). * `:authorizationCode` (*type:* `String.t`) - Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. - * `:serviceAccountName` (*type:* `String.t`) - Optional service account name. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). + * `:serviceAccountName` (*type:* `String.t`) - Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). * `:updateMask` (*type:* `String.t`) - Required. Required list of fields to be updated in this request. * `:versionInfo` (*type:* `String.t`) - Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. * `:body` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig.t`) - @@ -1605,7 +1677,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Api.Projects do * `: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"). * `:authorizationCode` (*type:* `String.t`) - Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. - * `:serviceAccountName` (*type:* `String.t`) - Optional service account name. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). + * `:serviceAccountName` (*type:* `String.t`) - Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). * `:versionInfo` (*type:* `String.t`) - Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. * `:body` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -1891,7 +1963,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. + * `name` (*type:* `String.t`) - The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/transferConfigs/{config_id}`, where `config_id` is usually a UUID, even though it is not guaranteed or required. The name is ignored when creating a transfer config. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -1905,7 +1977,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Api.Projects do * `: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"). * `:authorizationCode` (*type:* `String.t`) - Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. - * `:serviceAccountName` (*type:* `String.t`) - Optional service account name. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). + * `:serviceAccountName` (*type:* `String.t`) - Optional service account email. If this field is set, the transfer config will be created with this service account's credentials. It requires that the requesting user calling this API has permissions to act as this service account. Note that not all data sources support service account credentials when creating a transfer config. For the latest list of data sources, read about [using service accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts). * `:updateMask` (*type:* `String.t`) - Required. Required list of fields to be updated in this request. * `:versionInfo` (*type:* `String.t`) - Optional version info. This is required only if `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain version info, make a request to the following URL: https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the a data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. * `:body` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig.t`) - diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex index 9140fa5b4c..66aae06a37 100644 --- a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1 do API client metadata for GoogleApi.BigQueryDataTransfer.V1. """ - @discovery_revision "20221021" + @discovery_revision "20240306" def discovery_revision(), do: @discovery_revision end diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/encryption_configuration.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/encryption_configuration.ex new file mode 100644 index 0000000000..7dbb288f78 --- /dev/null +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/encryption_configuration.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.BigQueryDataTransfer.V1.Model.EncryptionConfiguration do + @moduledoc """ + Represents the encryption configuration for a transfer. + + ## Attributes + + * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - The name of the KMS key used for encrypting BigQuery data. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :kmsKeyName => String.t() | nil + } + + field(:kmsKeyName) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration do + def decode(value, options) do + GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/location.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/location.ex index 69b680f228..5792e801bc 100644 --- a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/location.ex +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.Location do @moduledoc """ - A resource that represents Google Cloud Platform location. + A resource that represents a Google Cloud location. ## Attributes diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/schedule_options.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/schedule_options.ex index 39cc7a3e58..042418e6bd 100644 --- a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/schedule_options.ex +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/schedule_options.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptions do ## Attributes * `disableAutoScheduling` (*type:* `boolean()`, *default:* `nil`) - If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. - * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. - * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be trigerred manually is not limited by this option. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Defines time to stop scheduling transfer runs. A transfer run cannot be scheduled at or after the end time. The end time can be changed at any moment. The time when a data transfer can be triggered manually is not limited by this option. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Specifies time to start scheduling transfer runs. The first run will be scheduled at or after the start time according to a recurrence pattern defined in the schedule string. The start time can be changed at any moment. The time when a data transfer can be triggered manually is not limited by this option. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/start_manual_transfer_runs_request.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/start_manual_transfer_runs_request.ex index 847eb81130..c2e5150326 100644 --- a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/start_manual_transfer_runs_request.ex +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/start_manual_transfer_runs_request.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.StartManualTransferRunsRequest ## Attributes - * `requestedRunTime` (*type:* `DateTime.t`, *default:* `nil`) - Specific run_time for a transfer run to be started. The requested_run_time must not be in the future. - * `requestedTimeRange` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.TimeRange.t`, *default:* `nil`) - Time range for the transfer runs that should be started. + * `requestedRunTime` (*type:* `DateTime.t`, *default:* `nil`) - A run_time timestamp for historical data files or reports that are scheduled to be transferred by the scheduled transfer run. requested_run_time must be a past time and cannot include future time values. + * `requestedTimeRange` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.TimeRange.t`, *default:* `nil`) - A time_range start and end timestamp for historical data files or reports that are scheduled to be transferred by the scheduled transfer run. requested_time_range must be a past time and cannot include future time values. """ use GoogleApi.Gax.ModelBase diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_config.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_config.ex index 284c382688..08e86224dc 100644 --- a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_config.ex +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_config.ex @@ -25,12 +25,13 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig do * `dataSourceId` (*type:* `String.t`, *default:* `nil`) - Data source ID. This cannot be changed once data transfer is created. The full list of available data source IDs can be returned through an API call: https://cloud.google.com/bigquery-transfer/docs/reference/datatransfer/rest/v1/projects.locations.dataSources/list * `datasetRegion` (*type:* `String.t`, *default:* `nil`) - Output only. Region in which BigQuery dataset is located. * `destinationDatasetId` (*type:* `String.t`, *default:* `nil`) - The BigQuery target dataset id. - * `disabled` (*type:* `boolean()`, *default:* `nil`) - Is this config disabled. When set to true, no runs are scheduled for a given transfer. + * `disabled` (*type:* `boolean()`, *default:* `nil`) - Is this config disabled. When set to true, no runs will be scheduled for this transfer config. * `displayName` (*type:* `String.t`, *default:* `nil`) - User specified display name for the data transfer. * `emailPreferences` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.EmailPreferences.t`, *default:* `nil`) - Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config. - * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config. + * `encryptionConfiguration` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration.t`, *default:* `nil`) - The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/transferConfigs/{config_id}`, where `config_id` is usually a UUID, even though it is not guaranteed or required. The name is ignored when creating a transfer config. * `nextRunTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Next time when data transfer will run. - * `notificationPubsubTopic` (*type:* `String.t`, *default:* `nil`) - Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` + * `notificationPubsubTopic` (*type:* `String.t`, *default:* `nil`) - Pub/Sub topic where notifications will be sent after transfer runs associated with this transfer config finish. The format for specifying a pubsub topic is: `projects/{project_id}/topics/{topic_id}` * `ownerInfo` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.UserInfo.t`, *default:* `nil`) - Output only. Information about the user whose credentials are used to transfer data. Populated only for `transferConfigs.get` requests. In case the user information is not available, this field will not be populated. * `params` (*type:* `map()`, *default:* `nil`) - Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq * `schedule` (*type:* `String.t`, *default:* `nil`) - Data transfer schedule. If the data source does not support a custom schedule, this should be empty. If it is empty, the default value for the data source will be used. The specified times are in UTC. Examples of valid format: `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and `first sunday of quarter 00:00`. See more explanation about the format here: https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format NOTE: The minimum interval time between recurring transfers depends on the data source; refer to the documentation for your data source. @@ -50,6 +51,8 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig do :disabled => boolean() | nil, :displayName => String.t() | nil, :emailPreferences => GoogleApi.BigQueryDataTransfer.V1.Model.EmailPreferences.t() | nil, + :encryptionConfiguration => + GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration.t() | nil, :name => String.t() | nil, :nextRunTime => DateTime.t() | nil, :notificationPubsubTopic => String.t() | nil, @@ -69,6 +72,11 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig do field(:disabled) field(:displayName) field(:emailPreferences, as: GoogleApi.BigQueryDataTransfer.V1.Model.EmailPreferences) + + field(:encryptionConfiguration, + as: GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration + ) + field(:name) field(:nextRunTime, as: DateTime) field(:notificationPubsubTopic) diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_run.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_run.ex index 24b6eb4f8e..2603921011 100644 --- a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_run.ex +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_run.ex @@ -27,7 +27,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TransferRun do * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when transfer run ended. Parameter ignored by server for input requests. * `errorStatus` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.Status.t`, *default:* `nil`) - Status of the transfer run. * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the transfer run. Transfer run names have the form `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. The name is ignored when creating a transfer run. - * `notificationPubsubTopic` (*type:* `String.t`, *default:* `nil`) - Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes. The format for specifying a pubsub topic is: `projects/{project}/topics/{topic}` + * `notificationPubsubTopic` (*type:* `String.t`, *default:* `nil`) - Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes. The format for specifying a pubsub topic is: `projects/{project_id}/topics/{topic_id}` * `params` (*type:* `map()`, *default:* `nil`) - Output only. Parameters specific to each data source. For more information see the bq tab in the 'Setting up a data transfer' section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq * `runTime` (*type:* `DateTime.t`, *default:* `nil`) - For batch transfer runs, specifies the date and time of the data should be ingested. * `schedule` (*type:* `String.t`, *default:* `nil`) - Output only. Describes the schedule of this transfer run if it was created as part of a regular schedule. For batch transfer runs that are scheduled manually, this is empty. NOTE: the system might choose to delay the schedule depending on the current load, so `schedule_time` doesn't always match this. diff --git a/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/unenroll_data_sources_request.ex b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/unenroll_data_sources_request.ex new file mode 100644 index 0000000000..b7ca684843 --- /dev/null +++ b/clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/unenroll_data_sources_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.BigQueryDataTransfer.V1.Model.UnenrollDataSourcesRequest do + @moduledoc """ + A request to unenroll a set of data sources so they are no longer visible in the BigQuery UI's `Transfer` tab. + + ## Attributes + + * `dataSourceIds` (*type:* `list(String.t)`, *default:* `nil`) - Data sources that are unenrolled. It is required to provide at least one data source id. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :dataSourceIds => list(String.t()) | nil + } + + field(:dataSourceIds, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.UnenrollDataSourcesRequest do + def decode(value, options) do + GoogleApi.BigQueryDataTransfer.V1.Model.UnenrollDataSourcesRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.UnenrollDataSourcesRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/big_query_data_transfer/mix.exs b/clients/big_query_data_transfer/mix.exs index ccd4c96a49..eff1272032 100644 --- a/clients/big_query_data_transfer/mix.exs +++ b/clients/big_query_data_transfer/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.BigQueryDataTransfer.Mixfile do use Mix.Project - @version "0.26.5" + @version "0.27.0" def project() do [