-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of BusinessProfilePerformance client
- Loading branch information
1 parent
7ac1a0b
commit e86ba37
Showing
10 changed files
with
366 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...formance/lib/google_api/business_profile_performance/v1/model/daily_metric_time_series.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# 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.BusinessProfilePerformance.V1.Model.DailyMetricTimeSeries do | ||
@moduledoc """ | ||
Represents a single datapoint, where each datapoint is a DailyMetric-DailySubEntityType-TimeSeries tuple. | ||
## Attributes | ||
* `dailyMetric` (*type:* `String.t`, *default:* `nil`) - The DailyMetric that the TimeSeries represents. | ||
* `dailySubEntityType` (*type:* `GoogleApi.BusinessProfilePerformance.V1.Model.DailySubEntityType.t`, *default:* `nil`) - The DailySubEntityType that the TimeSeries represents. Will not be present when breakdown does not exist. | ||
* `timeSeries` (*type:* `GoogleApi.BusinessProfilePerformance.V1.Model.TimeSeries.t`, *default:* `nil`) - List of datapoints where each datapoint is a date-value pair. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:dailyMetric => String.t() | nil, | ||
:dailySubEntityType => | ||
GoogleApi.BusinessProfilePerformance.V1.Model.DailySubEntityType.t() | nil, | ||
:timeSeries => GoogleApi.BusinessProfilePerformance.V1.Model.TimeSeries.t() | nil | ||
} | ||
|
||
field(:dailyMetric) | ||
field(:dailySubEntityType, as: GoogleApi.BusinessProfilePerformance.V1.Model.DailySubEntityType) | ||
field(:timeSeries, as: GoogleApi.BusinessProfilePerformance.V1.Model.TimeSeries) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.BusinessProfilePerformance.V1.Model.DailyMetricTimeSeries do | ||
def decode(value, options) do | ||
GoogleApi.BusinessProfilePerformance.V1.Model.DailyMetricTimeSeries.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.BusinessProfilePerformance.V1.Model.DailyMetricTimeSeries do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
49 changes: 49 additions & 0 deletions
49
...performance/lib/google_api/business_profile_performance/v1/model/daily_sub_entity_type.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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.BusinessProfilePerformance.V1.Model.DailySubEntityType do | ||
@moduledoc """ | ||
Represents all possible subentity types that are associated with DailyMetrics. | ||
## Attributes | ||
* `dayOfWeek` (*type:* `String.t`, *default:* `nil`) - Represents the day of the week. Eg: MONDAY. Currently supported DailyMetrics = NONE. | ||
* `timeOfDay` (*type:* `GoogleApi.BusinessProfilePerformance.V1.Model.TimeOfDay.t`, *default:* `nil`) - Represents the time of the day in 24 hour format. Eg: 13:34:20 Currently supported DailyMetrics = NONE. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:dayOfWeek => String.t() | nil, | ||
:timeOfDay => GoogleApi.BusinessProfilePerformance.V1.Model.TimeOfDay.t() | nil | ||
} | ||
|
||
field(:dayOfWeek) | ||
field(:timeOfDay, as: GoogleApi.BusinessProfilePerformance.V1.Model.TimeOfDay) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.BusinessProfilePerformance.V1.Model.DailySubEntityType do | ||
def decode(value, options) do | ||
GoogleApi.BusinessProfilePerformance.V1.Model.DailySubEntityType.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.BusinessProfilePerformance.V1.Model.DailySubEntityType do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...i/business_profile_performance/v1/model/fetch_multi_daily_metrics_time_series_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# 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.BusinessProfilePerformance.V1.Model.FetchMultiDailyMetricsTimeSeriesResponse do | ||
@moduledoc """ | ||
Represents the response for FetchMultiDailyMetricsTimeSeries. | ||
## Attributes | ||
* `multiDailyMetricTimeSeries` (*type:* `list(GoogleApi.BusinessProfilePerformance.V1.Model.MultiDailyMetricTimeSeries.t)`, *default:* `nil`) - DailyMetrics and their corresponding time series. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:multiDailyMetricTimeSeries => | ||
list(GoogleApi.BusinessProfilePerformance.V1.Model.MultiDailyMetricTimeSeries.t()) | ||
| nil | ||
} | ||
|
||
field(:multiDailyMetricTimeSeries, | ||
as: GoogleApi.BusinessProfilePerformance.V1.Model.MultiDailyMetricTimeSeries, | ||
type: :list | ||
) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.BusinessProfilePerformance.V1.Model.FetchMultiDailyMetricsTimeSeriesResponse do | ||
def decode(value, options) do | ||
GoogleApi.BusinessProfilePerformance.V1.Model.FetchMultiDailyMetricsTimeSeriesResponse.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.BusinessProfilePerformance.V1.Model.FetchMultiDailyMetricsTimeSeriesResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
55 changes: 55 additions & 0 deletions
55
...ce/lib/google_api/business_profile_performance/v1/model/multi_daily_metric_time_series.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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.BusinessProfilePerformance.V1.Model.MultiDailyMetricTimeSeries do | ||
@moduledoc """ | ||
Represents a list of tuples of DailyMetric-DailySubEntityType-TimeSeries. | ||
## Attributes | ||
* `dailyMetricTimeSeries` (*type:* `list(GoogleApi.BusinessProfilePerformance.V1.Model.DailyMetricTimeSeries.t)`, *default:* `nil`) - List of DailyMetric-TimeSeries pairs. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:dailyMetricTimeSeries => | ||
list(GoogleApi.BusinessProfilePerformance.V1.Model.DailyMetricTimeSeries.t()) | nil | ||
} | ||
|
||
field(:dailyMetricTimeSeries, | ||
as: GoogleApi.BusinessProfilePerformance.V1.Model.DailyMetricTimeSeries, | ||
type: :list | ||
) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.BusinessProfilePerformance.V1.Model.MultiDailyMetricTimeSeries do | ||
def decode(value, options) do | ||
GoogleApi.BusinessProfilePerformance.V1.Model.MultiDailyMetricTimeSeries.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.BusinessProfilePerformance.V1.Model.MultiDailyMetricTimeSeries do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.