Skip to content

Commit 985e126

Browse files
feat: Automated regeneration of AnalyticsHub client (googleapis#12759)
Auto-created at 2025-01-03 13:15:28 +0000 using the toys pull request generator.
1 parent 9a62110 commit 985e126

14 files changed

+340
-5
lines changed

clients/analytics_hub/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_analytics_hub, "~> 0.5"}]
14+
[{:google_api_analytics_hub, "~> 0.6"}]
1515
end
1616
```
1717

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

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

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

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/analytics_hub/lib/google_api/analytics_hub/v1/model/analytics_hub_subscription_info.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.AnalyticsHub.V1.Model.AnalyticsHubSubscriptionInfo do
1919
@moduledoc """
20-
Information about an associated Analytics Hub subscription (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
20+
Information about an associated [Analytics Hub subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
2121
2222
## Attributes
2323
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo do
19+
@moduledoc """
20+
Commercial info contains the information about the commercial data products associated with the listing.
21+
22+
## Attributes
23+
24+
* `cloudMarketplace` (*type:* `GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo.t`, *default:* `nil`) - Output only. Details of the Marketplace Data Product associated with the Listing.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:cloudMarketplace =>
31+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo.t()
32+
| nil
33+
}
34+
35+
field(:cloudMarketplace,
36+
as:
37+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo
38+
)
39+
end
40+
41+
defimpl Poison.Decoder,
42+
for: GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo do
43+
def decode(value, options) do
44+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo.decode(
45+
value,
46+
options
47+
)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder,
52+
for: GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo do
19+
@moduledoc """
20+
Specifies the details of the Marketplace Data Product associated with the Listing.
21+
22+
## Attributes
23+
24+
* `commercialState` (*type:* `String.t`, *default:* `nil`) - Output only. Commercial state of the Marketplace Data Product.
25+
* `service` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the commercial service associated with the Marketplace Data Product. e.g. example.com
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:commercialState => String.t() | nil,
32+
:service => String.t() | nil
33+
}
34+
35+
field(:commercialState)
36+
field(:service)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo do
42+
def decode(value, options) do
43+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo do
19+
@moduledoc """
20+
Commercial info metadata for this subscription.
21+
22+
## Attributes
23+
24+
* `cloudMarketplace` (*type:* `GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo.t`, *default:* `nil`) - Output only. This is set when the subscription is commercialised via Cloud Marketplace.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:cloudMarketplace =>
31+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo.t()
32+
| nil
33+
}
34+
35+
field(:cloudMarketplace,
36+
as:
37+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo
38+
)
39+
end
40+
41+
defimpl Poison.Decoder,
42+
for: GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo do
43+
def decode(value, options) do
44+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo.decode(
45+
value,
46+
options
47+
)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder,
52+
for: GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo do
19+
@moduledoc """
20+
Cloud Marketplace commercial metadata for this subscription.
21+
22+
## Attributes
23+
24+
* `order` (*type:* `String.t`, *default:* `nil`) - Resource name of the Marketplace Order.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:order => String.t() | nil
31+
}
32+
33+
field(:order)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for:
38+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo do
39+
def decode(value, options) do
40+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo.decode(
41+
value,
42+
options
43+
)
44+
end
45+
end
46+
47+
defimpl Poison.Encoder,
48+
for:
49+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo do
50+
def encode(value, options) do
51+
GoogleApi.Gax.ModelBase.encode(value, options)
52+
end
53+
end

clients/analytics_hub/lib/google_api/analytics_hub/v1/model/listing.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.Listing do
2323
2424
* `bigqueryDataset` (*type:* `GoogleApi.AnalyticsHub.V1.Model.BigQueryDatasetSource.t`, *default:* `nil`) - Required. Shared dataset i.e. BigQuery dataset source.
2525
* `categories` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Categories of the listing. Up to two categories are allowed.
26+
* `commercialInfo` (*type:* `GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo.t`, *default:* `nil`) - Output only. Commercial info contains the information about the commercial data products associated with the listing.
2627
* `dataProvider` (*type:* `GoogleApi.AnalyticsHub.V1.Model.DataProvider.t`, *default:* `nil`) - Optional. Details of the data provider who owns the source data.
2728
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
2829
* `discoveryType` (*type:* `String.t`, *default:* `nil`) - Optional. Type of discovery of the listing on the discovery page.
@@ -44,6 +45,9 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.Listing do
4445
@type t :: %__MODULE__{
4546
:bigqueryDataset => GoogleApi.AnalyticsHub.V1.Model.BigQueryDatasetSource.t() | nil,
4647
:categories => list(String.t()) | nil,
48+
:commercialInfo =>
49+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo.t()
50+
| nil,
4751
:dataProvider => GoogleApi.AnalyticsHub.V1.Model.DataProvider.t() | nil,
4852
:description => String.t() | nil,
4953
:discoveryType => String.t() | nil,
@@ -63,6 +67,11 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.Listing do
6367

6468
field(:bigqueryDataset, as: GoogleApi.AnalyticsHub.V1.Model.BigQueryDatasetSource)
6569
field(:categories, type: :list)
70+
71+
field(:commercialInfo,
72+
as: GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo
73+
)
74+
6675
field(:dataProvider, as: GoogleApi.AnalyticsHub.V1.Model.DataProvider)
6776
field(:description)
6877
field(:discoveryType)

clients/analytics_hub/lib/google_api/analytics_hub/v1/model/subscription.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.Subscription do
2121
2222
## Attributes
2323
24+
* `commercialInfo` (*type:* `GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo.t`, *default:* `nil`) - Output only. This is set if this is a commercial subscription i.e. if this subscription was created from subscribing to a commercial listing.
2425
* `creationTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the subscription was created.
2526
* `dataExchange` (*type:* `String.t`, *default:* `nil`) - Output only. Resource name of the source Data Exchange. e.g. projects/123/locations/US/dataExchanges/456
2627
* `lastModifyTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the subscription was last modified.
@@ -38,6 +39,9 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.Subscription do
3839
use GoogleApi.Gax.ModelBase
3940

4041
@type t :: %__MODULE__{
42+
:commercialInfo =>
43+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo.t()
44+
| nil,
4145
:creationTime => DateTime.t() | nil,
4246
:dataExchange => String.t() | nil,
4347
:lastModifyTime => DateTime.t() | nil,
@@ -53,6 +57,11 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.Subscription do
5357
:subscriberContact => String.t() | nil
5458
}
5559

60+
field(:commercialInfo,
61+
as:
62+
GoogleApi.AnalyticsHub.V1.Model.GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo
63+
)
64+
5665
field(:creationTime, as: DateTime)
5766
field(:dataExchange)
5867
field(:lastModifyTime, as: DateTime)

clients/analytics_hub/lib/google_api/analytics_hub/v1beta1/metadata.ex

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

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

2525
def discovery_revision(), do: @discovery_revision
2626
end

0 commit comments

Comments
 (0)