Skip to content

Commit d837e08

Browse files
feat: Automated regeneration of ServiceUsage client (googleapis#12459)
Auto-created at 2024-11-02 13:11:48 +0000 using the toys pull request generator.
1 parent c86c2d9 commit d837e08

11 files changed

+436
-3
lines changed

clients/service_usage/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_service_usage, "~> 0.23"}]
14+
[{:google_api_service_usage, "~> 0.24"}]
1515
end
1616
```
1717

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 "20240929"
23+
@discovery_revision "20241025"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 56 additions & 0 deletions
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.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis do
19+
@moduledoc """
20+
A message to group the analysis information.
21+
22+
## Attributes
23+
24+
* `analysis` (*type:* `GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult.t`, *default:* `nil`) - Output only. Analysis result of updating a policy.
25+
* `analysisType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of analysis.
26+
* `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.
27+
* `service` (*type:* `String.t`, *default:* `nil`) - The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:analysis =>
34+
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult.t() | nil,
35+
:analysisType => String.t() | nil,
36+
:displayName => String.t() | nil,
37+
:service => String.t() | nil
38+
}
39+
40+
field(:analysis, as: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult)
41+
field(:analysisType)
42+
field(:displayName)
43+
field(:service)
44+
end
45+
46+
defimpl Poison.Decoder, for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis do
47+
def decode(value, options) do
48+
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis.decode(value, options)
49+
end
50+
end
51+
52+
defimpl Poison.Encoder, for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.GoogleApiServiceusageV2betaAnalysisResult do
19+
@moduledoc """
20+
An analysis result including blockers and warnings.
21+
22+
## Attributes
23+
24+
* `blockers` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaImpact.t)`, *default:* `nil`) - Blocking information that would prevent the policy changes at runtime.
25+
* `warnings` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaImpact.t)`, *default:* `nil`) - Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:blockers =>
32+
list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaImpact.t()) | nil,
33+
:warnings =>
34+
list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaImpact.t()) | nil
35+
}
36+
37+
field(:blockers,
38+
as: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaImpact,
39+
type: :list
40+
)
41+
42+
field(:warnings,
43+
as: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaImpact,
44+
type: :list
45+
)
46+
end
47+
48+
defimpl Poison.Decoder,
49+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult do
50+
def decode(value, options) do
51+
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult.decode(
52+
value,
53+
options
54+
)
55+
end
56+
end
57+
58+
defimpl Poison.Encoder,
59+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysisResult do
60+
def encode(value, options) do
61+
GoogleApi.Gax.ModelBase.encode(value, options)
62+
end
63+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata do
19+
@moduledoc """
20+
Metadata for the `AnalyzeConsumerPolicy` method.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder,
32+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata do
33+
def decode(value, options) do
34+
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata.decode(
35+
value,
36+
options
37+
)
38+
end
39+
end
40+
41+
defimpl Poison.Encoder,
42+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse do
19+
@moduledoc """
20+
The response of analyzing a consumer policy update.
21+
22+
## Attributes
23+
24+
* `analysis` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis.t)`, *default:* `nil`) - The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:analysis =>
31+
list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis.t()) | nil
32+
}
33+
34+
field(:analysis,
35+
as: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalysis,
36+
type: :list
37+
)
38+
end
39+
40+
defimpl Poison.Decoder,
41+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse do
42+
def decode(value, options) do
43+
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.GoogleApiServiceusageV2betaConsumerPolicy do
19+
@moduledoc """
20+
Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
21+
22+
## Attributes
23+
24+
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)
25+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.
26+
* `enableRules` (*type:* `list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaEnableRule.t)`, *default:* `nil`) - Enable rules define usable services, groups, and categories. There can currently be at most one `EnableRule`. This restriction will be lifted in later releases.
27+
* `etag` (*type:* `String.t`, *default:* `nil`) - Output only. An opaque tag indicating the current version of the policy, used for concurrency control.
28+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the policy. Only the `default` policy is supported: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
29+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time the policy was last updated.
30+
"""
31+
32+
use GoogleApi.Gax.ModelBase
33+
34+
@type t :: %__MODULE__{
35+
:annotations => map() | nil,
36+
:createTime => DateTime.t() | nil,
37+
:enableRules =>
38+
list(GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaEnableRule.t()) | nil,
39+
:etag => String.t() | nil,
40+
:name => String.t() | nil,
41+
:updateTime => DateTime.t() | nil
42+
}
43+
44+
field(:annotations, type: :map)
45+
field(:createTime, as: DateTime)
46+
47+
field(:enableRules,
48+
as: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaEnableRule,
49+
type: :list
50+
)
51+
52+
field(:etag)
53+
field(:name)
54+
field(:updateTime, as: DateTime)
55+
end
56+
57+
defimpl Poison.Decoder,
58+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaConsumerPolicy do
59+
def decode(value, options) do
60+
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaConsumerPolicy.decode(
61+
value,
62+
options
63+
)
64+
end
65+
end
66+
67+
defimpl Poison.Encoder,
68+
for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaConsumerPolicy do
69+
def encode(value, options) do
70+
GoogleApi.Gax.ModelBase.encode(value, options)
71+
end
72+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.GoogleApiServiceusageV2betaEnableRule do
19+
@moduledoc """
20+
The consumer policy rule that defines enabled services, groups, and categories.
21+
22+
## Attributes
23+
24+
* `services` (*type:* `list(String.t)`, *default:* `nil`) - The names of the services that are enabled. Example: `services/storage.googleapis.com`.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:services => list(String.t()) | nil
31+
}
32+
33+
field(:services, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaEnableRule do
37+
def decode(value, options) do
38+
GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaEnableRule.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.ServiceUsage.V1.Model.GoogleApiServiceusageV2betaEnableRule do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)