Skip to content

Commit 2dcddbc

Browse files
feat: Automated regeneration of CloudKMS client (googleapis#12990)
Auto-created at 2025-02-18 13:12:22 +0000 using the toys pull request generator.
1 parent 5c48115 commit 2dcddbc

File tree

6 files changed

+62
-5
lines changed

6 files changed

+62
-5
lines changed

clients/cloud_kms/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_cloud_kms, "~> 0.42"}]
14+
[{:google_api_cloud_kms, "~> 0.43"}]
1515
end
1616
```
1717

clients/cloud_kms/lib/google_api/cloud_kms/v1/api/projects.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3018,6 +3018,7 @@ defmodule GoogleApi.CloudKMS.V1.Api.Projects do
30183018
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
30193019
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
30203020
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3021+
* `:publicKeyFormat` (*type:* `String.t`) - Optional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.
30213022
* `opts` (*type:* `keyword()`) - Call options
30223023
30233024
## Returns
@@ -3052,7 +3053,8 @@ defmodule GoogleApi.CloudKMS.V1.Api.Projects do
30523053
:prettyPrint => :query,
30533054
:quotaUser => :query,
30543055
:uploadType => :query,
3055-
:upload_protocol => :query
3056+
:upload_protocol => :query,
3057+
:publicKeyFormat => :query
30563058
}
30573059

30583060
request =

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

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

23-
@discovery_revision "20241111"
23+
@discovery_revision "20250205"
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.CloudKMS.V1.Model.ChecksummedData do
19+
@moduledoc """
20+
Data with integrity verification field.
21+
22+
## Attributes
23+
24+
* `crc32cChecksum` (*type:* `String.t`, *default:* `nil`) - Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.
25+
* `data` (*type:* `String.t`, *default:* `nil`) - Raw Data.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:crc32cChecksum => String.t() | nil,
32+
:data => String.t() | nil
33+
}
34+
35+
field(:crc32cChecksum)
36+
field(:data)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.CloudKMS.V1.Model.ChecksummedData do
40+
def decode(value, options) do
41+
GoogleApi.CloudKMS.V1.Model.ChecksummedData.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.CloudKMS.V1.Model.ChecksummedData do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/cloud_kms/lib/google_api/cloud_kms/v1/model/public_key.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ defmodule GoogleApi.CloudKMS.V1.Model.PublicKey do
2626
* `pem` (*type:* `String.t`, *default:* `nil`) - The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13).
2727
* `pemCrc32c` (*type:* `String.t`, *default:* `nil`) - Integrity verification field. A CRC32C checksum of the returned PublicKey.pem. An integrity check of PublicKey.pem can be performed by computing the CRC32C checksum of PublicKey.pem and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type. NOTE: This field is in Beta.
2828
* `protectionLevel` (*type:* `String.t`, *default:* `nil`) - The ProtectionLevel of the CryptoKeyVersion public key.
29+
* `publicKey` (*type:* `GoogleApi.CloudKMS.V1.Model.ChecksummedData.t`, *default:* `nil`) - This field contains the public key (with integrity verification), formatted according to the public_key_format field.
30+
* `publicKeyFormat` (*type:* `String.t`, *default:* `nil`) - The PublicKey format specified by the customer through the public_key_format field.
2931
"""
3032

3133
use GoogleApi.Gax.ModelBase
@@ -35,14 +37,18 @@ defmodule GoogleApi.CloudKMS.V1.Model.PublicKey do
3537
:name => String.t() | nil,
3638
:pem => String.t() | nil,
3739
:pemCrc32c => String.t() | nil,
38-
:protectionLevel => String.t() | nil
40+
:protectionLevel => String.t() | nil,
41+
:publicKey => GoogleApi.CloudKMS.V1.Model.ChecksummedData.t() | nil,
42+
:publicKeyFormat => String.t() | nil
3943
}
4044

4145
field(:algorithm)
4246
field(:name)
4347
field(:pem)
4448
field(:pemCrc32c)
4549
field(:protectionLevel)
50+
field(:publicKey, as: GoogleApi.CloudKMS.V1.Model.ChecksummedData)
51+
field(:publicKeyFormat)
4652
end
4753

4854
defimpl Poison.Decoder, for: GoogleApi.CloudKMS.V1.Model.PublicKey do

clients/cloud_kms/mix.exs

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

21-
@version "0.42.2"
21+
@version "0.43.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)