Skip to content

Commit a77dc08

Browse files
feat: Automated regeneration of ServiceUsage client (googleapis#13008)
Auto-created at 2025-02-20 13:19:04 +0000 using the toys pull request generator.
1 parent c8bc10f commit a77dc08

File tree

8 files changed

+68
-7
lines changed

8 files changed

+68
-7
lines changed

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

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

23-
@discovery_revision "20250130"
23+
@discovery_revision "20250218"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.ServiceUsage.V1.Model.Aspect do
19+
@moduledoc """
20+
Aspect represents Generic aspect. It is used to configure an aspect without making direct changes to service.proto
21+
22+
## Attributes
23+
24+
* `kind` (*type:* `String.t`, *default:* `nil`) - The type of this aspect configuration.
25+
* `spec` (*type:* `map()`, *default:* `nil`) - Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `apiserving/configaspects/proto`.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:kind => String.t() | nil,
32+
:spec => map() | nil
33+
}
34+
35+
field(:kind)
36+
field(:spec, type: :map)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.ServiceUsage.V1.Model.Aspect do
40+
def decode(value, options) do
41+
GoogleApi.ServiceUsage.V1.Model.Aspect.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.ServiceUsage.V1.Model.Aspect do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/service_usage/lib/google_api/service_usage/v1/model/backend_rule.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.BackendRule do
2525
* `deadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
2626
* `disableAuth` (*type:* `boolean()`, *default:* `nil`) - When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header.
2727
* `jwtAudience` (*type:* `String.t`, *default:* `nil`) - The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
28+
* `loadBalancingPolicy` (*type:* `String.t`, *default:* `nil`) - The load balancing policy used for connection to the application backend. Defined as an arbitrary string to accomondate custom load balancing policies supported by the underlying channel, but suggest most users use one of the standard policies, such as the default, "RoundRobin".
2829
* `minDeadline` (*type:* `float()`, *default:* `nil`) - Deprecated, do not use.
2930
* `operationDeadline` (*type:* `float()`, *default:* `nil`) - The number of seconds to wait for the completion of a long running operation. The default is no deadline.
3031
* `overridesByRequestProtocol` (*type:* `%{optional(String.t) => GoogleApi.ServiceUsage.V1.Model.BackendRule.t}`, *default:* `nil`) - The map between request protocol and the backend address.
@@ -40,6 +41,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.BackendRule do
4041
:deadline => float() | nil,
4142
:disableAuth => boolean() | nil,
4243
:jwtAudience => String.t() | nil,
44+
:loadBalancingPolicy => String.t() | nil,
4345
:minDeadline => float() | nil,
4446
:operationDeadline => float() | nil,
4547
:overridesByRequestProtocol =>
@@ -53,6 +55,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.BackendRule do
5355
field(:deadline)
5456
field(:disableAuth)
5557
field(:jwtAudience)
58+
field(:loadBalancingPolicy)
5659
field(:minDeadline)
5760
field(:operationDeadline)
5861
field(:overridesByRequestProtocol, as: GoogleApi.ServiceUsage.V1.Model.BackendRule, type: :map)

clients/service_usage/lib/google_api/service_usage/v1/model/documentation.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.Documentation do
2626
* `overview` (*type:* `String.t`, *default:* `nil`) - Declares a single overview page. For example: documentation: summary: ... overview: (== include overview.md ==) This is a shortcut for the following declaration (using pages style): documentation: summary: ... pages: - name: Overview content: (== include overview.md ==) Note: you cannot specify both `overview` field and `pages` field.
2727
* `pages` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.Page.t)`, *default:* `nil`) - The top level pages for the documentation set.
2828
* `rules` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.DocumentationRule.t)`, *default:* `nil`) - A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order.
29-
* `sectionOverrides` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.Page.t)`, *default:* `nil`) - Specifies section and content to override boilerplate content provided by go/api-docgen. Currently overrides following sections: 1. rest.service.client_libraries
29+
* `sectionOverrides` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.Page.t)`, *default:* `nil`) - Specifies section and content to override the boilerplate content. Currently overrides following sections: 1. rest.service.client_libraries
3030
* `serviceRootUrl` (*type:* `String.t`, *default:* `nil`) - Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections that show a base that other urls are relative to.
3131
* `summary` (*type:* `String.t`, *default:* `nil`) - A short description of what the service does. The summary must be plain text. It becomes the overview of the service displayed in Google Cloud Console. NOTE: This field is equivalent to the standard field `description`.
3232
"""

clients/service_usage/lib/google_api/service_usage/v1/model/documentation_rule.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.DocumentationRule do
2323
2424
* `deprecationDescription` (*type:* `String.t`, *default:* `nil`) - Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`.
2525
* `description` (*type:* `String.t`, *default:* `nil`) - Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
26-
* `disableReplacementWords` (*type:* `String.t`, *default:* `nil`) - String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen.
26+
* `disableReplacementWords` (*type:* `String.t`, *default:* `nil`) - String of comma or space separated case-sensitive words for which method/field name replacement will be disabled.
2727
* `selector` (*type:* `String.t`, *default:* `nil`) - The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
2828
"""
2929

clients/service_usage/lib/google_api/service_usage/v1/model/experimental_features.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.ServiceUsage.V1.Model.ExperimentalFeatures do
2323
2424
* `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.
2525
* `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.
26+
* `unversionedPackageDisabled` (*type:* `boolean()`, *default:* `nil`) - Disables generation of an unversioned Python package for this client library. This means that the module names will need to be versioned in import statements. For example `import google.cloud.library_v2` instead of `import google.cloud.library`.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:protobufPythonicTypesEnabled => boolean() | nil,
32-
:restAsyncIoEnabled => boolean() | nil
33+
:restAsyncIoEnabled => boolean() | nil,
34+
:unversionedPackageDisabled => boolean() | nil
3335
}
3436

3537
field(:protobufPythonicTypesEnabled)
3638
field(:restAsyncIoEnabled)
39+
field(:unversionedPackageDisabled)
3740
end
3841

3942
defimpl Poison.Decoder, for: GoogleApi.ServiceUsage.V1.Model.ExperimentalFeatures do

clients/service_usage/lib/google_api/service_usage/v1/model/google_api_service.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.GoogleApiService do
2222
## Attributes
2323
2424
* `apis` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.Api.t)`, *default:* `nil`) - A list of API interfaces exported by this service. Only the `name` field of the google.protobuf.Api needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against the associated IDL files.
25+
* `aspects` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.Aspect.t)`, *default:* `nil`) - Configuration aspects. This is a repeated field to allow multiple aspects to be configured. The kind field in each ConfigAspect specifies the type of aspect. The spec field contains the configuration for that aspect. The schema for the spec field is defined by the backend service owners.
2526
* `authentication` (*type:* `GoogleApi.ServiceUsage.V1.Model.Authentication.t`, *default:* `nil`) - Auth configuration.
2627
* `backend` (*type:* `GoogleApi.ServiceUsage.V1.Model.Backend.t`, *default:* `nil`) - API backend configuration.
2728
* `billing` (*type:* `GoogleApi.ServiceUsage.V1.Model.Billing.t`, *default:* `nil`) - Billing configuration.
@@ -55,6 +56,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.GoogleApiService do
5556

5657
@type t :: %__MODULE__{
5758
:apis => list(GoogleApi.ServiceUsage.V1.Model.Api.t()) | nil,
59+
:aspects => list(GoogleApi.ServiceUsage.V1.Model.Aspect.t()) | nil,
5860
:authentication => GoogleApi.ServiceUsage.V1.Model.Authentication.t() | nil,
5961
:backend => GoogleApi.ServiceUsage.V1.Model.Backend.t() | nil,
6062
:billing => GoogleApi.ServiceUsage.V1.Model.Billing.t() | nil,
@@ -86,6 +88,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.GoogleApiService do
8688
}
8789

8890
field(:apis, as: GoogleApi.ServiceUsage.V1.Model.Api, type: :list)
91+
field(:aspects, as: GoogleApi.ServiceUsage.V1.Model.Aspect, type: :list)
8992
field(:authentication, as: GoogleApi.ServiceUsage.V1.Model.Authentication)
9093
field(:backend, as: GoogleApi.ServiceUsage.V1.Model.Backend)
9194
field(:billing, as: GoogleApi.ServiceUsage.V1.Model.Billing)

clients/service_usage/lib/google_api/service_usage/v1/model/google_api_serviceusage_v2beta_analysis.ex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis do
2121
2222
## Attributes
2323
24-
* `analysis` (*type:* `GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult.t`, *default:* `nil`) - Output only. Analysis result of updating a policy.
24+
* `analysisResult` (*type:* `GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult.t`, *default:* `nil`) - Output only. Analysis result of updating a policy.
2525
* `analysisType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of analysis.
2626
* `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.
2727
* `service` (*type:* `String.t`, *default:* `nil`) - The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.
@@ -30,14 +30,17 @@ defmodule GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis do
3030
use GoogleApi.Gax.ModelBase
3131

3232
@type t :: %__MODULE__{
33-
:analysis =>
33+
:analysisResult =>
3434
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult.t() | nil,
3535
:analysisType => String.t() | nil,
3636
:displayName => String.t() | nil,
3737
:service => String.t() | nil
3838
}
3939

40-
field(:analysis, as: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult)
40+
field(:analysisResult,
41+
as: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult
42+
)
43+
4144
field(:analysisType)
4245
field(:displayName)
4346
field(:service)

0 commit comments

Comments
 (0)