From 2a624421f72e09c31250b001089e1a81821d39c7 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 13 Mar 2024 06:16:17 -0700 Subject: [PATCH] feat: Automated regeneration of AnalyticsHub client (#11077) Auto-created at 2024-03-13 13:12:56 +0000 using the toys pull request generator. --- .../google_api/analytics_hub/v1/metadata.ex | 2 +- .../v1/model/big_query_dataset_source.ex | 5 +- .../v1/model/selected_resource.ex | 46 +++++++++++++++++++ .../analytics_hub/v1beta1/metadata.ex | 2 +- 4 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 clients/analytics_hub/lib/google_api/analytics_hub/v1/model/selected_resource.ex diff --git a/clients/analytics_hub/lib/google_api/analytics_hub/v1/metadata.ex b/clients/analytics_hub/lib/google_api/analytics_hub/v1/metadata.ex index 6d303773e2..725ea30434 100644 --- a/clients/analytics_hub/lib/google_api/analytics_hub/v1/metadata.ex +++ b/clients/analytics_hub/lib/google_api/analytics_hub/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AnalyticsHub.V1 do API client metadata for GoogleApi.AnalyticsHub.V1. """ - @discovery_revision "20240304" + @discovery_revision "20240307" def discovery_revision(), do: @discovery_revision end diff --git a/clients/analytics_hub/lib/google_api/analytics_hub/v1/model/big_query_dataset_source.ex b/clients/analytics_hub/lib/google_api/analytics_hub/v1/model/big_query_dataset_source.ex index e8376f6bed..309c4f6544 100644 --- a/clients/analytics_hub/lib/google_api/analytics_hub/v1/model/big_query_dataset_source.ex +++ b/clients/analytics_hub/lib/google_api/analytics_hub/v1/model/big_query_dataset_source.ex @@ -22,15 +22,18 @@ defmodule GoogleApi.AnalyticsHub.V1.Model.BigQueryDatasetSource do ## Attributes * `dataset` (*type:* `String.t`, *default:* `nil`) - Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123` + * `selectedResources` (*type:* `list(GoogleApi.AnalyticsHub.V1.Model.SelectedResource.t)`, *default:* `nil`) - Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :dataset => String.t() | nil + :dataset => String.t() | nil, + :selectedResources => list(GoogleApi.AnalyticsHub.V1.Model.SelectedResource.t()) | nil } field(:dataset) + field(:selectedResources, as: GoogleApi.AnalyticsHub.V1.Model.SelectedResource, type: :list) end defimpl Poison.Decoder, for: GoogleApi.AnalyticsHub.V1.Model.BigQueryDatasetSource do diff --git a/clients/analytics_hub/lib/google_api/analytics_hub/v1/model/selected_resource.ex b/clients/analytics_hub/lib/google_api/analytics_hub/v1/model/selected_resource.ex new file mode 100644 index 0000000000..3f93deeb03 --- /dev/null +++ b/clients/analytics_hub/lib/google_api/analytics_hub/v1/model/selected_resource.ex @@ -0,0 +1,46 @@ +# 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.AnalyticsHub.V1.Model.SelectedResource do + @moduledoc """ + Resource in this dataset that are selectively shared. + + ## Attributes + + * `table` (*type:* `String.t`, *default:* `nil`) - Optional. Format: For table: `projects/{projectId}/datasets/{datasetId}/tables/{tableId}` Example:"projects/test_project/datasets/test_dataset/tables/test_table" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :table => String.t() | nil + } + + field(:table) +end + +defimpl Poison.Decoder, for: GoogleApi.AnalyticsHub.V1.Model.SelectedResource do + def decode(value, options) do + GoogleApi.AnalyticsHub.V1.Model.SelectedResource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.AnalyticsHub.V1.Model.SelectedResource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/analytics_hub/lib/google_api/analytics_hub/v1beta1/metadata.ex b/clients/analytics_hub/lib/google_api/analytics_hub/v1beta1/metadata.ex index 56492f8e41..2323ae58ec 100644 --- a/clients/analytics_hub/lib/google_api/analytics_hub/v1beta1/metadata.ex +++ b/clients/analytics_hub/lib/google_api/analytics_hub/v1beta1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.AnalyticsHub.V1beta1 do API client metadata for GoogleApi.AnalyticsHub.V1beta1. """ - @discovery_revision "20240304" + @discovery_revision "20240307" def discovery_revision(), do: @discovery_revision end