Skip to content

Commit 420346d

Browse files
feat: Automated regeneration of Dataflow client (#12714)
Auto-created at 2024-12-13 13:20:48 +0000 using the toys pull request generator.
1 parent ed561c4 commit 420346d

File tree

5 files changed

+55
-3
lines changed

5 files changed

+55
-3
lines changed

clients/dataflow/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_dataflow, "~> 0.51"}]
14+
[{:google_api_dataflow, "~> 0.52"}]
1515
end
1616
```
1717

clients/dataflow/lib/google_api/dataflow/v1b3/metadata.ex

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

23-
@discovery_revision "20241028"
23+
@discovery_revision "20241209"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.Dataflow.V1b3.Model.DataflowGaugeValue do
19+
@moduledoc """
20+
The gauge value of a metric.
21+
22+
## Attributes
23+
24+
* `measuredTime` (*type:* `DateTime.t`, *default:* `nil`) - The timestamp when the gauge was recorded.
25+
* `value` (*type:* `String.t`, *default:* `nil`) - The value of the gauge.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:measuredTime => DateTime.t() | nil,
32+
:value => String.t() | nil
33+
}
34+
35+
field(:measuredTime, as: DateTime)
36+
field(:value)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Dataflow.V1b3.Model.DataflowGaugeValue do
40+
def decode(value, options) do
41+
GoogleApi.Dataflow.V1b3.Model.DataflowGaugeValue.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Dataflow.V1b3.Model.DataflowGaugeValue do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_value.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricValue do
2323
2424
* `metric` (*type:* `String.t`, *default:* `nil`) - Base name for this metric.
2525
* `metricLabels` (*type:* `map()`, *default:* `nil`) - Optional. Set of metric labels for this metric.
26+
* `valueGauge64` (*type:* `GoogleApi.Dataflow.V1b3.Model.DataflowGaugeValue.t`, *default:* `nil`) - Non-cumulative int64 value of this metric.
2627
* `valueHistogram` (*type:* `GoogleApi.Dataflow.V1b3.Model.DataflowHistogramValue.t`, *default:* `nil`) - Histogram value of this metric.
2728
* `valueInt64` (*type:* `String.t`, *default:* `nil`) - Integer value of this metric.
2829
"""
@@ -32,12 +33,14 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricValue do
3233
@type t :: %__MODULE__{
3334
:metric => String.t() | nil,
3435
:metricLabels => map() | nil,
36+
:valueGauge64 => GoogleApi.Dataflow.V1b3.Model.DataflowGaugeValue.t() | nil,
3537
:valueHistogram => GoogleApi.Dataflow.V1b3.Model.DataflowHistogramValue.t() | nil,
3638
:valueInt64 => String.t() | nil
3739
}
3840

3941
field(:metric)
4042
field(:metricLabels, type: :map)
43+
field(:valueGauge64, as: GoogleApi.Dataflow.V1b3.Model.DataflowGaugeValue)
4144
field(:valueHistogram, as: GoogleApi.Dataflow.V1b3.Model.DataflowHistogramValue)
4245
field(:valueInt64)
4346
end

clients/dataflow/mix.exs

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

21-
@version "0.51.0"
21+
@version "0.52.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)