Skip to content

Commit 088588e

Browse files
feat: Automated regeneration of BigQueryDataTransfer client (googleapis#12173)
Auto-created at 2024-09-19 13:18:31 +0000 using the toys pull request generator.
1 parent 49bf4e3 commit 088588e

File tree

8 files changed

+203
-3
lines changed

8 files changed

+203
-3
lines changed

clients/big_query_data_transfer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_big_query_data_transfer, "~> 0.28"}]
14+
[{:google_api_big_query_data_transfer, "~> 0.29"}]
1515
end
1616
```
1717

clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.BigQueryDataTransfer.V1 do
2020
API client metadata for GoogleApi.BigQueryDataTransfer.V1.
2121
"""
2222

23-
@discovery_revision "20240806"
23+
@discovery_revision "20240914"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQueryDataTransfer.V1.Model.EventDrivenSchedule do
19+
@moduledoc """
20+
Options customizing EventDriven transfers schedule.
21+
22+
## Attributes
23+
24+
* `pubsubSubscription` (*type:* `String.t`, *default:* `nil`) - Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/{project}/subscriptions/{subscription}
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:pubsubSubscription => String.t() | nil
31+
}
32+
33+
field(:pubsubSubscription)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.EventDrivenSchedule do
37+
def decode(value, options) do
38+
GoogleApi.BigQueryDataTransfer.V1.Model.EventDrivenSchedule.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.EventDrivenSchedule do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQueryDataTransfer.V1.Model.ManualSchedule do
19+
@moduledoc """
20+
Options customizing manual transfers schedule.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.ManualSchedule do
32+
def decode(value, options) do
33+
GoogleApi.BigQueryDataTransfer.V1.Model.ManualSchedule.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.ManualSchedule do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptionsV2 do
19+
@moduledoc """
20+
V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event-Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
21+
22+
## Attributes
23+
24+
* `eventDrivenSchedule` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.EventDrivenSchedule.t`, *default:* `nil`) - Event driven transfer schedule options. If set, the transfer will be scheduled upon events arrial.
25+
* `manualSchedule` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.ManualSchedule.t`, *default:* `nil`) - Manual transfer schedule. If set, the transfer run will not be auto-scheduled by the system, unless the client invokes StartManualTransferRuns. This is equivalent to disable_auto_scheduling = true.
26+
* `timeBasedSchedule` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.TimeBasedSchedule.t`, *default:* `nil`) - Time based transfer schedule options. This is the default schedule option.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:eventDrivenSchedule =>
33+
GoogleApi.BigQueryDataTransfer.V1.Model.EventDrivenSchedule.t() | nil,
34+
:manualSchedule => GoogleApi.BigQueryDataTransfer.V1.Model.ManualSchedule.t() | nil,
35+
:timeBasedSchedule =>
36+
GoogleApi.BigQueryDataTransfer.V1.Model.TimeBasedSchedule.t() | nil
37+
}
38+
39+
field(:eventDrivenSchedule, as: GoogleApi.BigQueryDataTransfer.V1.Model.EventDrivenSchedule)
40+
field(:manualSchedule, as: GoogleApi.BigQueryDataTransfer.V1.Model.ManualSchedule)
41+
field(:timeBasedSchedule, as: GoogleApi.BigQueryDataTransfer.V1.Model.TimeBasedSchedule)
42+
end
43+
44+
defimpl Poison.Decoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptionsV2 do
45+
def decode(value, options) do
46+
GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptionsV2.decode(value, options)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptionsV2 do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TimeBasedSchedule do
19+
@moduledoc """
20+
Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message.
21+
22+
## Attributes
23+
24+
* `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.
25+
* `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.
26+
* `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.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:endTime => DateTime.t() | nil,
33+
:schedule => String.t() | nil,
34+
:startTime => DateTime.t() | nil
35+
}
36+
37+
field(:endTime, as: DateTime)
38+
field(:schedule)
39+
field(:startTime, as: DateTime)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.TimeBasedSchedule do
43+
def decode(value, options) do
44+
GoogleApi.BigQueryDataTransfer.V1.Model.TimeBasedSchedule.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.BigQueryDataTransfer.V1.Model.TimeBasedSchedule do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

clients/big_query_data_transfer/lib/google_api/big_query_data_transfer/v1/model/transfer_config.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig do
2929
* `displayName` (*type:* `String.t`, *default:* `nil`) - User specified display name for the data transfer.
3030
* `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.
3131
* `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.
32+
* `error` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.Status.t`, *default:* `nil`) - Output only. Error code with detailed information about reason of the latest config failure.
3233
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. 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.
3334
* `nextRunTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Next time when data transfer will run.
3435
* `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}`
3536
* `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.
3637
* `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
3738
* `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.
3839
* `scheduleOptions` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptions.t`, *default:* `nil`) - Options customizing the data transfer schedule.
40+
* `scheduleOptionsV2` (*type:* `GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptionsV2.t`, *default:* `nil`) - Options customizing different types of data transfer schedule. This field replaces "schedule" and "schedule_options" fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.
3941
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the most recently updated transfer run.
4042
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Data transfer modification time. Ignored by server on input.
4143
* `userId` (*type:* `String.t`, *default:* `nil`) - Deprecated. Unique ID of the user on whose behalf transfer is done.
@@ -53,13 +55,16 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig do
5355
:emailPreferences => GoogleApi.BigQueryDataTransfer.V1.Model.EmailPreferences.t() | nil,
5456
:encryptionConfiguration =>
5557
GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration.t() | nil,
58+
:error => GoogleApi.BigQueryDataTransfer.V1.Model.Status.t() | nil,
5659
:name => String.t() | nil,
5760
:nextRunTime => DateTime.t() | nil,
5861
:notificationPubsubTopic => String.t() | nil,
5962
:ownerInfo => GoogleApi.BigQueryDataTransfer.V1.Model.UserInfo.t() | nil,
6063
:params => map() | nil,
6164
:schedule => String.t() | nil,
6265
:scheduleOptions => GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptions.t() | nil,
66+
:scheduleOptionsV2 =>
67+
GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptionsV2.t() | nil,
6368
:state => String.t() | nil,
6469
:updateTime => DateTime.t() | nil,
6570
:userId => String.t() | nil
@@ -77,13 +82,15 @@ defmodule GoogleApi.BigQueryDataTransfer.V1.Model.TransferConfig do
7782
as: GoogleApi.BigQueryDataTransfer.V1.Model.EncryptionConfiguration
7883
)
7984

85+
field(:error, as: GoogleApi.BigQueryDataTransfer.V1.Model.Status)
8086
field(:name)
8187
field(:nextRunTime, as: DateTime)
8288
field(:notificationPubsubTopic)
8389
field(:ownerInfo, as: GoogleApi.BigQueryDataTransfer.V1.Model.UserInfo)
8490
field(:params, type: :map)
8591
field(:schedule)
8692
field(:scheduleOptions, as: GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptions)
93+
field(:scheduleOptionsV2, as: GoogleApi.BigQueryDataTransfer.V1.Model.ScheduleOptionsV2)
8794
field(:state)
8895
field(:updateTime, as: DateTime)
8996
field(:userId)

clients/big_query_data_transfer/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.BigQueryDataTransfer.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.28.1"
21+
@version "0.29.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)