Skip to content

Commit 4aca7c4

Browse files
feat: Automated regeneration of CertificateManager client (googleapis#12942)
Auto-created at 2025-02-09 13:10:25 +0000 using the toys pull request generator.
1 parent 4d10fed commit 4aca7c4

File tree

5 files changed

+53
-4
lines changed

5 files changed

+53
-4
lines changed

clients/certificate_manager/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_certificate_manager, "~> 0.8"}]
14+
[{:google_api_certificate_manager, "~> 0.9"}]
1515
end
1616
```
1717

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

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

23-
@discovery_revision "20241204"
23+
@discovery_revision "20250203"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/certificate_manager/lib/google_api/certificate_manager/v1/model/certificate.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ defmodule GoogleApi.CertificateManager.V1.Model.Certificate do
3232
* `scope` (*type:* `String.t`, *default:* `nil`) - Optional. Immutable. The scope of the certificate.
3333
* `selfManaged` (*type:* `GoogleApi.CertificateManager.V1.Model.SelfManagedCertificate.t`, *default:* `nil`) - If set, defines data of a self-managed certificate.
3434
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last update timestamp of a Certificate.
35+
* `usedBy` (*type:* `list(GoogleApi.CertificateManager.V1.Model.UsedBy.t)`, *default:* `nil`) - Output only. The list of resources that use this Certificate.
3536
"""
3637

3738
use GoogleApi.Gax.ModelBase
@@ -47,7 +48,8 @@ defmodule GoogleApi.CertificateManager.V1.Model.Certificate do
4748
:sanDnsnames => list(String.t()) | nil,
4849
:scope => String.t() | nil,
4950
:selfManaged => GoogleApi.CertificateManager.V1.Model.SelfManagedCertificate.t() | nil,
50-
:updateTime => DateTime.t() | nil
51+
:updateTime => DateTime.t() | nil,
52+
:usedBy => list(GoogleApi.CertificateManager.V1.Model.UsedBy.t()) | nil
5153
}
5254

5355
field(:createTime, as: DateTime)
@@ -61,6 +63,7 @@ defmodule GoogleApi.CertificateManager.V1.Model.Certificate do
6163
field(:scope)
6264
field(:selfManaged, as: GoogleApi.CertificateManager.V1.Model.SelfManagedCertificate)
6365
field(:updateTime, as: DateTime)
66+
field(:usedBy, as: GoogleApi.CertificateManager.V1.Model.UsedBy, type: :list)
6467
end
6568

6669
defimpl Poison.Decoder, for: GoogleApi.CertificateManager.V1.Model.Certificate do
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.CertificateManager.V1.Model.UsedBy do
19+
@moduledoc """
20+
Defines a resource that uses the certificate.
21+
22+
## Attributes
23+
24+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, e.g. `//certificatemanager.googleapis.com/projects/*/locations/*/certificateMaps/*/certificateMapEntries/*` or `//compute.googleapis.com/projects/*/locations/*/targetHttpsProxies/*`.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:name => String.t() | nil
31+
}
32+
33+
field(:name)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.CertificateManager.V1.Model.UsedBy do
37+
def decode(value, options) do
38+
GoogleApi.CertificateManager.V1.Model.UsedBy.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.CertificateManager.V1.Model.UsedBy do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/certificate_manager/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.CertificateManager.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.8.1"
21+
@version "0.9.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)