Skip to content

Commit c90dab1

Browse files
feat: Automated regeneration of PubSub client (googleapis#12215)
Auto-created at 2024-09-26 13:19:02 +0000 using the toys pull request generator.
1 parent a9f0b08 commit c90dab1

File tree

9 files changed

+248
-4
lines changed

9 files changed

+248
-4
lines changed

clients/pub_sub/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_pub_sub, "~> 0.40"}]
14+
[{:google_api_pub_sub, "~> 0.41"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20240912"
23+
@discovery_revision "20240918"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.PubSub.V1.Model.AvroFormat do
19+
@moduledoc """
20+
Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the `data` field of a Pub/Sub message.
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.PubSub.V1.Model.AvroFormat do
32+
def decode(value, options) do
33+
GoogleApi.PubSub.V1.Model.AvroFormat.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.AvroFormat do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
end
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.PubSub.V1.Model.CloudStorage do
19+
@moduledoc """
20+
Ingestion settings for Cloud Storage.
21+
22+
## Attributes
23+
24+
* `avroFormat` (*type:* `GoogleApi.PubSub.V1.Model.AvroFormat.t`, *default:* `nil`) - Optional. Data from Cloud Storage will be interpreted in Avro format.
25+
* `bucket` (*type:* `String.t`, *default:* `nil`) - Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming).
26+
* `matchGlob` (*type:* `String.t`, *default:* `nil`) - Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the [supported patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
27+
* `minimumObjectCreateTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. Only objects with a larger or equal creation timestamp will be ingested.
28+
* `pubsubAvroFormat` (*type:* `GoogleApi.PubSub.V1.Model.PubSubAvroFormat.t`, *default:* `nil`) - Optional. It will be assumed data from Cloud Storage was written via [Cloud Storage subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
29+
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. An output-only field that indicates the state of the Cloud Storage ingestion source.
30+
* `textFormat` (*type:* `GoogleApi.PubSub.V1.Model.TextFormat.t`, *default:* `nil`) - Optional. Data from Cloud Storage will be interpreted as text.
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:avroFormat => GoogleApi.PubSub.V1.Model.AvroFormat.t() | nil,
37+
:bucket => String.t() | nil,
38+
:matchGlob => String.t() | nil,
39+
:minimumObjectCreateTime => DateTime.t() | nil,
40+
:pubsubAvroFormat => GoogleApi.PubSub.V1.Model.PubSubAvroFormat.t() | nil,
41+
:state => String.t() | nil,
42+
:textFormat => GoogleApi.PubSub.V1.Model.TextFormat.t() | nil
43+
}
44+
45+
field(:avroFormat, as: GoogleApi.PubSub.V1.Model.AvroFormat)
46+
field(:bucket)
47+
field(:matchGlob)
48+
field(:minimumObjectCreateTime, as: DateTime)
49+
field(:pubsubAvroFormat, as: GoogleApi.PubSub.V1.Model.PubSubAvroFormat)
50+
field(:state)
51+
field(:textFormat, as: GoogleApi.PubSub.V1.Model.TextFormat)
52+
end
53+
54+
defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.CloudStorage do
55+
def decode(value, options) do
56+
GoogleApi.PubSub.V1.Model.CloudStorage.decode(value, options)
57+
end
58+
end
59+
60+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.CloudStorage do
61+
def encode(value, options) do
62+
GoogleApi.Gax.ModelBase.encode(value, options)
63+
end
64+
end

clients/pub_sub/lib/google_api/pub_sub/v1/model/ingestion_data_source_settings.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,21 @@ defmodule GoogleApi.PubSub.V1.Model.IngestionDataSourceSettings do
2222
## Attributes
2323
2424
* `awsKinesis` (*type:* `GoogleApi.PubSub.V1.Model.AwsKinesis.t`, *default:* `nil`) - Optional. Amazon Kinesis Data Streams.
25+
* `cloudStorage` (*type:* `GoogleApi.PubSub.V1.Model.CloudStorage.t`, *default:* `nil`) - Optional. Cloud Storage.
26+
* `platformLogsSettings` (*type:* `GoogleApi.PubSub.V1.Model.PlatformLogsSettings.t`, *default:* `nil`) - Optional. Platform Logs settings. If unset, no Platform Logs will be generated.
2527
"""
2628

2729
use GoogleApi.Gax.ModelBase
2830

2931
@type t :: %__MODULE__{
30-
:awsKinesis => GoogleApi.PubSub.V1.Model.AwsKinesis.t() | nil
32+
:awsKinesis => GoogleApi.PubSub.V1.Model.AwsKinesis.t() | nil,
33+
:cloudStorage => GoogleApi.PubSub.V1.Model.CloudStorage.t() | nil,
34+
:platformLogsSettings => GoogleApi.PubSub.V1.Model.PlatformLogsSettings.t() | nil
3135
}
3236

3337
field(:awsKinesis, as: GoogleApi.PubSub.V1.Model.AwsKinesis)
38+
field(:cloudStorage, as: GoogleApi.PubSub.V1.Model.CloudStorage)
39+
field(:platformLogsSettings, as: GoogleApi.PubSub.V1.Model.PlatformLogsSettings)
3440
end
3541

3642
defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.IngestionDataSourceSettings do
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.PubSub.V1.Model.PlatformLogsSettings do
19+
@moduledoc """
20+
Settings for Platform Logs produced by Pub/Sub.
21+
22+
## Attributes
23+
24+
* `severity` (*type:* `String.t`, *default:* `nil`) - Optional. The minimum severity level of Platform Logs that will be written.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:severity => String.t() | nil
31+
}
32+
33+
field(:severity)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.PlatformLogsSettings do
37+
def decode(value, options) do
38+
GoogleApi.PubSub.V1.Model.PlatformLogsSettings.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.PlatformLogsSettings 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.PubSub.V1.Model.PubSubAvroFormat do
19+
@moduledoc """
20+
Configuration for reading Cloud Storage data written via [Cloud Storage subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.
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.PubSub.V1.Model.PubSubAvroFormat do
32+
def decode(value, options) do
33+
GoogleApi.PubSub.V1.Model.PubSubAvroFormat.decode(value, options)
34+
end
35+
end
36+
37+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.PubSubAvroFormat do
38+
def encode(value, options) do
39+
GoogleApi.Gax.ModelBase.encode(value, options)
40+
end
41+
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.PubSub.V1.Model.TextFormat do
19+
@moduledoc """
20+
Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the `data` field of a Pub/Sub message.
21+
22+
## Attributes
23+
24+
* `delimiter` (*type:* `String.t`, *default:* `nil`) - Optional. When unset, '\\n' is used.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:delimiter => String.t() | nil
31+
}
32+
33+
field(:delimiter)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.PubSub.V1.Model.TextFormat do
37+
def decode(value, options) do
38+
GoogleApi.PubSub.V1.Model.TextFormat.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.PubSub.V1.Model.TextFormat do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/pub_sub/mix.exs

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

21-
@version "0.40.1"
21+
@version "0.41.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)