Skip to content

Commit

Permalink
feat: Automated regeneration of BigQueryDataTransfer client (#10817)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 01:19:42 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 5daa544 commit 7e05096
Show file tree
Hide file tree
Showing 11 changed files with 190 additions and 18 deletions.
2 changes: 1 addition & 1 deletion clients/big_query_data_transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion clients/big_query_data_transfer/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.BigQueryDataTransfer.Mixfile do
use Mix.Project

@version "0.26.5"
@version "0.27.0"

def project() do
[
Expand Down

0 comments on commit 7e05096

Please sign in to comment.