-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of CertificateManager client (#10880)
Auto-created at 2024-03-12 01:31:36 +0000 using the toys pull request generator.
- Loading branch information
1 parent
60c7341
commit 0b1be33
Showing
13 changed files
with
638 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
372 changes: 371 additions & 1 deletion
372
clients/certificate_manager/lib/google_api/certificate_manager/v1/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
clients/certificate_manager/lib/google_api/certificate_manager/v1/model/intermediate_ca.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.CertificateManager.V1.Model.IntermediateCA do | ||
@moduledoc """ | ||
Defines an intermediate CA. | ||
## Attributes | ||
* `pemCertificate` (*type:* `String.t`, *default:* `nil`) - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:pemCertificate => String.t() | nil | ||
} | ||
|
||
field(:pemCertificate) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.CertificateManager.V1.Model.IntermediateCA do | ||
def decode(value, options) do | ||
GoogleApi.CertificateManager.V1.Model.IntermediateCA.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.CertificateManager.V1.Model.IntermediateCA do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
...ficate_manager/lib/google_api/certificate_manager/v1/model/list_trust_configs_response.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.CertificateManager.V1.Model.ListTrustConfigsResponse do | ||
@moduledoc """ | ||
Response for the `ListTrustConfigs` method. | ||
## Attributes | ||
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`. | ||
* `trustConfigs` (*type:* `list(GoogleApi.CertificateManager.V1.Model.TrustConfig.t)`, *default:* `nil`) - A list of TrustConfigs for the parent resource. | ||
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:nextPageToken => String.t() | nil, | ||
:trustConfigs => list(GoogleApi.CertificateManager.V1.Model.TrustConfig.t()) | nil, | ||
:unreachable => list(String.t()) | nil | ||
} | ||
|
||
field(:nextPageToken) | ||
field(:trustConfigs, as: GoogleApi.CertificateManager.V1.Model.TrustConfig, type: :list) | ||
field(:unreachable, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.CertificateManager.V1.Model.ListTrustConfigsResponse do | ||
def decode(value, options) do | ||
GoogleApi.CertificateManager.V1.Model.ListTrustConfigsResponse.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.CertificateManager.V1.Model.ListTrustConfigsResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_anchor.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.CertificateManager.V1.Model.TrustAnchor do | ||
@moduledoc """ | ||
Defines a trust anchor. | ||
## Attributes | ||
* `pemCertificate` (*type:* `String.t`, *default:* `nil`) - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:pemCertificate => String.t() | nil | ||
} | ||
|
||
field(:pemCertificate) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.CertificateManager.V1.Model.TrustAnchor do | ||
def decode(value, options) do | ||
GoogleApi.CertificateManager.V1.Model.TrustAnchor.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.CertificateManager.V1.Model.TrustAnchor do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
64 changes: 64 additions & 0 deletions
64
clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_config.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.CertificateManager.V1.Model.TrustConfig do | ||
@moduledoc """ | ||
Defines a trust config. | ||
## Attributes | ||
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation timestamp of a TrustConfig. | ||
* `description` (*type:* `String.t`, *default:* `nil`) - One or more paragraphs of text description of a TrustConfig. | ||
* `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. | ||
* `labels` (*type:* `map()`, *default:* `nil`) - Set of labels associated with a TrustConfig. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern `projects/*/locations/*/trustConfigs/*`. | ||
* `trustStores` (*type:* `list(GoogleApi.CertificateManager.V1.Model.TrustStore.t)`, *default:* `nil`) - Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed. | ||
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last update timestamp of a TrustConfig. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:createTime => DateTime.t() | nil, | ||
:description => String.t() | nil, | ||
:etag => String.t() | nil, | ||
:labels => map() | nil, | ||
:name => String.t() | nil, | ||
:trustStores => list(GoogleApi.CertificateManager.V1.Model.TrustStore.t()) | nil, | ||
:updateTime => DateTime.t() | nil | ||
} | ||
|
||
field(:createTime, as: DateTime) | ||
field(:description) | ||
field(:etag) | ||
field(:labels, type: :map) | ||
field(:name) | ||
field(:trustStores, as: GoogleApi.CertificateManager.V1.Model.TrustStore, type: :list) | ||
field(:updateTime, as: DateTime) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.CertificateManager.V1.Model.TrustConfig do | ||
def decode(value, options) do | ||
GoogleApi.CertificateManager.V1.Model.TrustConfig.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.CertificateManager.V1.Model.TrustConfig do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
50 changes: 50 additions & 0 deletions
50
clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_store.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.CertificateManager.V1.Model.TrustStore do | ||
@moduledoc """ | ||
Defines a trust store. | ||
## Attributes | ||
* `intermediateCas` (*type:* `list(GoogleApi.CertificateManager.V1.Model.IntermediateCA.t)`, *default:* `nil`) - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature. | ||
* `trustAnchors` (*type:* `list(GoogleApi.CertificateManager.V1.Model.TrustAnchor.t)`, *default:* `nil`) - List of Trust Anchors to be used while performing validation against a given TrustStore. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:intermediateCas => | ||
list(GoogleApi.CertificateManager.V1.Model.IntermediateCA.t()) | nil, | ||
:trustAnchors => list(GoogleApi.CertificateManager.V1.Model.TrustAnchor.t()) | nil | ||
} | ||
|
||
field(:intermediateCas, as: GoogleApi.CertificateManager.V1.Model.IntermediateCA, type: :list) | ||
field(:trustAnchors, as: GoogleApi.CertificateManager.V1.Model.TrustAnchor, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.CertificateManager.V1.Model.TrustStore do | ||
def decode(value, options) do | ||
GoogleApi.CertificateManager.V1.Model.TrustStore.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.CertificateManager.V1.Model.TrustStore do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters