Skip to content

Commit

Permalink
feat: Automated regeneration of AnalyticsHub client (googleapis#12464)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-02 13:15:09 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 2, 2024
1 parent 07cf0d9 commit eac3234
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 18 deletions.
2 changes: 1 addition & 1 deletion clients/analytics_hub/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_analytics_hub, "~> 0.4"}]
[{:google_api_analytics_hub, "~> 0.5"}]
end
```

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

@discovery_revision "20240925"
@discovery_revision "20241028"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.SubscribeDataExchangeRequest do
## Attributes
* `destination` (*type:* `String.t`, *default:* `nil`) - Required. The parent resource path of the Subscription. e.g. `projects/subscriberproject/locations/US`
* `destinationDataset` (*type:* `GoogleApi.AnalyticsHub.V1.Model.DestinationDataset.t`, *default:* `nil`) - Optional. BigQuery destination dataset to create for the subscriber.
* `subscriberContact` (*type:* `String.t`, *default:* `nil`) - Email of the subscriber.
* `subscription` (*type:* `String.t`, *default:* `nil`) - Required. Name of the subscription to create. e.g. `subscription1`
"""
Expand All @@ -30,11 +31,13 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.SubscribeDataExchangeRequest do

@type t :: %__MODULE__{
:destination => String.t() | nil,
:destinationDataset => GoogleApi.AnalyticsHub.V1.Model.DestinationDataset.t() | nil,
:subscriberContact => String.t() | nil,
:subscription => String.t() | nil
}

field(:destination)
field(:destinationDataset, as: GoogleApi.AnalyticsHub.V1.Model.DestinationDataset)
field(:subscriberContact)
field(:subscription)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AnalyticsHub.V1beta1 do
API client metadata for GoogleApi.AnalyticsHub.V1beta1.
"""

@discovery_revision "20240624"
@discovery_revision "20241028"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset do
defmodule GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset do
@moduledoc """
Defines the destination bigquery dataset.
## Attributes
* `datasetReference` (*type:* `GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference.t`, *default:* `nil`) - Required. A reference that identifies the destination dataset.
* `datasetReference` (*type:* `GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference.t`, *default:* `nil`) - Required. A reference that identifies the destination dataset.
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. A user-friendly description of the dataset.
* `friendlyName` (*type:* `String.t`, *default:* `nil`) - Optional. A descriptive name for the dataset.
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.
Expand All @@ -32,27 +32,39 @@ defmodule GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset do

@type t :: %__MODULE__{
:datasetReference =>
GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference.t() | nil,
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference.t()
| nil,
:description => String.t() | nil,
:friendlyName => String.t() | nil,
:labels => map() | nil,
:location => String.t() | nil
}

field(:datasetReference, as: GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference)
field(:datasetReference,
as:
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference
)

field(:description)
field(:friendlyName)
field(:labels, type: :map)
field(:location)
end

defimpl Poison.Decoder, for: GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset do
defimpl Poison.Decoder,
for:
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset do
def decode(value, options) do
GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset.decode(value, options)
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset.decode(
value,
options
)
end
end

defimpl Poison.Encoder, for: GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset do
defimpl Poison.Encoder,
for:
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference do
defmodule GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference do
@moduledoc """
Contains the reference that identifies a destination bigquery dataset.
Expand All @@ -36,13 +36,20 @@ defmodule GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference do
field(:projectId)
end

defimpl Poison.Decoder, for: GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference do
defimpl Poison.Decoder,
for:
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference do
def decode(value, options) do
GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference.decode(value, options)
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference.decode(
value,
options
)
end
end

defimpl Poison.Encoder, for: GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDatasetReference do
defimpl Poison.Encoder,
for:
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,21 @@ defmodule GoogleApi.AnalyticsHub.V1beta1.Model.SubscribeListingRequest do
## Attributes
* `destinationDataset` (*type:* `GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset.t`, *default:* `nil`) - BigQuery destination dataset to create for the subscriber.
* `destinationDataset` (*type:* `GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset.t`, *default:* `nil`) - BigQuery destination dataset to create for the subscriber.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:destinationDataset => GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset.t() | nil
:destinationDataset =>
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset.t()
| nil
}

field(:destinationDataset, as: GoogleApi.AnalyticsHub.V1beta1.Model.DestinationDataset)
field(:destinationDataset,
as:
GoogleApi.AnalyticsHub.V1beta1.Model.GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset
)
end

defimpl Poison.Decoder, for: GoogleApi.AnalyticsHub.V1beta1.Model.SubscribeListingRequest do
Expand Down
2 changes: 1 addition & 1 deletion clients/analytics_hub/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.AnalyticsHub.Mixfile do
use Mix.Project

@version "0.4.2"
@version "0.5.0"

def project() do
[
Expand Down

0 comments on commit eac3234

Please sign in to comment.