From 355191bfccd91e7f83abda0e813f810110302964 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 21 Nov 2024 13:16:40 +0000 Subject: [PATCH] feat: Automated regeneration of ServiceConsumerManagement client --- clients/service_consumer_management/README.md | 2 +- .../service_consumer_management/v1/api/operations.ex | 2 +- .../google_api/service_consumer_management/v1/metadata.ex | 2 +- .../v1/model/experimental_features.ex | 3 +++ .../service_consumer_management/v1/model/go_settings.ex | 6 +++++- .../service_consumer_management/v1/model/quota_limit.ex | 2 +- clients/service_consumer_management/mix.exs | 2 +- 7 files changed, 13 insertions(+), 6 deletions(-) diff --git a/clients/service_consumer_management/README.md b/clients/service_consumer_management/README.md index 29df7e3999..e73b79f87e 100644 --- a/clients/service_consumer_management/README.md +++ b/clients/service_consumer_management/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_service_consumer_management, "~> 0.35"}] + [{:google_api_service_consumer_management, "~> 0.36"}] end ``` diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex index 23cd2e70fc..d909d85961 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/api/operations.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Api.Operations do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. ## Parameters diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex index 47b088c202..f172c31f45 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1 do API client metadata for GoogleApi.ServiceConsumerManagement.V1. """ - @discovery_revision "20240929" + @discovery_revision "20241115" def discovery_revision(), do: @discovery_revision end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/experimental_features.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/experimental_features.ex index b7430f0ed8..d8fd2afd99 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/experimental_features.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/experimental_features.ex @@ -21,15 +21,18 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.ExperimentalFeatures do ## Attributes + * `protobufPythonicTypesEnabled` (*type:* `boolean()`, *default:* `nil`) - Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf>=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages. * `restAsyncIoEnabled` (*type:* `boolean()`, *default:* `nil`) - Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :protobufPythonicTypesEnabled => boolean() | nil, :restAsyncIoEnabled => boolean() | nil } + field(:protobufPythonicTypesEnabled) field(:restAsyncIoEnabled) end diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/go_settings.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/go_settings.ex index e55e1979d7..39a949799d 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/go_settings.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/go_settings.ex @@ -22,15 +22,19 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.GoSettings do ## Attributes * `common` (*type:* `GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings.t`, *default:* `nil`) - Some settings. + * `renamedServices` (*type:* `map()`, *default:* `nil`) - Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options. publishing: go_settings: renamed_services: Publisher: TopicAdmin """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :common => GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings.t() | nil + :common => + GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings.t() | nil, + :renamedServices => map() | nil } field(:common, as: GoogleApi.ServiceConsumerManagement.V1.Model.CommonLanguageSettings) + field(:renamedServices, type: :map) end defimpl Poison.Decoder, for: GoogleApi.ServiceConsumerManagement.V1.Model.GoSettings do diff --git a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/quota_limit.ex b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/quota_limit.ex index 5ed44356e5..af7aea61a3 100644 --- a/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/quota_limit.ex +++ b/clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/quota_limit.ex @@ -29,7 +29,7 @@ defmodule GoogleApi.ServiceConsumerManagement.V1.Model.QuotaLimit do * `maxLimit` (*type:* `String.t`, *default:* `nil`) - Maximum number of tokens that can be consumed during the specified duration. Client application developers can override the default limit up to this maximum. If specified, this value cannot be set to a value less than the default limit. If not specified, it is set to the default limit. To allow clients to apply overrides with no upper bound, set this to -1, indicating unlimited maximum quota. Used by group-based quotas only. * `metric` (*type:* `String.t`, *default:* `nil`) - The name of the metric this quota limit applies to. The quota limits with the same metric will be checked together during runtime. The metric must be defined within the service config. * `name` (*type:* `String.t`, *default:* `nil`) - Name of the quota limit. The name must be provided, and it must be unique within the service. The name can only include alphanumeric characters as well as '-'. The maximum length of the limit name is 64 characters. - * `unit` (*type:* `String.t`, *default:* `nil`) - Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * "1/min/{project}" for quota per minute per project. Note: the order of unit components is insignificant. The "1" at the beginning is required to follow the metric unit syntax. + * `unit` (*type:* `String.t`, *default:* `nil`) - Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * "1/min/{project}" for quota per minute per project. Note: the order of unit components is insignificant. The "1" at the beginning is required to follow the metric unit syntax. * `values` (*type:* `map()`, *default:* `nil`) - Tiered limit values. You must specify this as a key:value pair, with an integer value that is the maximum number of requests allowed for the specified unit. Currently only STANDARD is supported. """ diff --git a/clients/service_consumer_management/mix.exs b/clients/service_consumer_management/mix.exs index 1423f3f001..c70e209441 100644 --- a/clients/service_consumer_management/mix.exs +++ b/clients/service_consumer_management/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.ServiceConsumerManagement.Mixfile do use Mix.Project - @version "0.35.1" + @version "0.36.0" def project() do [