Skip to content

Commit

Permalink
feat: Automated regeneration of PageSpeedOnline client (#12068)
Browse files Browse the repository at this point in the history
Auto-created at 2024-08-31 13:12:29 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Aug 31, 2024
1 parent d829ddc commit bccb7f7
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/page_speed_online/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_page_speed_online, "~> 0.17"}]
[{:google_api_page_speed_online, "~> 0.18"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.PageSpeedOnline.V5 do
API client metadata for GoogleApi.PageSpeedOnline.V5.
"""

@discovery_revision "20240509"
@discovery_revision "20240829"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule GoogleApi.PageSpeedOnline.V5.Model.LighthouseAuditResultV5 do
* `errorMessage` (*type:* `String.t`, *default:* `nil`) - An error message from a thrown error inside the audit.
* `explanation` (*type:* `String.t`, *default:* `nil`) - An explanation of the errors in the audit.
* `id` (*type:* `String.t`, *default:* `nil`) - The audit's id.
* `metricSavings` (*type:* `GoogleApi.PageSpeedOnline.V5.Model.MetricSavings.t`, *default:* `nil`) - The metric savings of the audit.
* `numericUnit` (*type:* `String.t`, *default:* `nil`) - The unit of the numeric_value field. Used to format the numeric value for display.
* `numericValue` (*type:* `float()`, *default:* `nil`) - A numeric value that has a meaning specific to the audit, e.g. the number of nodes in the DOM or the timestamp of a specific load event. More information can be found in the audit details, if present.
* `score` (*type:* `any()`, *default:* `nil`) - The score of the audit, can be null.
Expand All @@ -44,6 +45,7 @@ defmodule GoogleApi.PageSpeedOnline.V5.Model.LighthouseAuditResultV5 do
:errorMessage => String.t() | nil,
:explanation => String.t() | nil,
:id => String.t() | nil,
:metricSavings => GoogleApi.PageSpeedOnline.V5.Model.MetricSavings.t() | nil,
:numericUnit => String.t() | nil,
:numericValue => float() | nil,
:score => any() | nil,
Expand All @@ -58,6 +60,7 @@ defmodule GoogleApi.PageSpeedOnline.V5.Model.LighthouseAuditResultV5 do
field(:errorMessage)
field(:explanation)
field(:id)
field(:metricSavings, as: GoogleApi.PageSpeedOnline.V5.Model.MetricSavings)
field(:numericUnit)
field(:numericValue)
field(:score)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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.PageSpeedOnline.V5.Model.MetricSavings do
@moduledoc """
The metric savings of the audit.
## Attributes
* `CLS` (*type:* `float()`, *default:* `nil`) - Optional. Optional numeric value representing the audit's savings for the CLS metric.
* `FCP` (*type:* `float()`, *default:* `nil`) - Optional. Optional numeric value representing the audit's savings for the FCP metric.
* `INP` (*type:* `float()`, *default:* `nil`) - Optional. Optional numeric value representing the audit's savings for the INP metric.
* `LCP` (*type:* `float()`, *default:* `nil`) - Optional. Optional numeric value representing the audit's savings for the LCP metric.
* `TBT` (*type:* `float()`, *default:* `nil`) - Optional. Optional numeric value representing the audit's savings for the TBT metric.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:CLS => float() | nil,
:FCP => float() | nil,
:INP => float() | nil,
:LCP => float() | nil,
:TBT => float() | nil
}

field(:CLS)
field(:FCP)
field(:INP)
field(:LCP)
field(:TBT)
end

defimpl Poison.Decoder, for: GoogleApi.PageSpeedOnline.V5.Model.MetricSavings do
def decode(value, options) do
GoogleApi.PageSpeedOnline.V5.Model.MetricSavings.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.PageSpeedOnline.V5.Model.MetricSavings do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/page_speed_online/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.PageSpeedOnline.Mixfile do
use Mix.Project

@version "0.17.0"
@version "0.18.0"

def project() do
[
Expand Down

0 comments on commit bccb7f7

Please sign in to comment.