Skip to content

Commit

Permalink
feat: Automated regeneration of CertificateManager client (#10880)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 01:31:36 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 60c7341 commit 0b1be33
Show file tree
Hide file tree
Showing 13 changed files with 638 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clients/certificate_manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_certificate_manager, "~> 0.4"}]
[{:google_api_certificate_manager, "~> 0.5"}]
end
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.CertificateManager.V1 do
API client metadata for GoogleApi.CertificateManager.V1.
"""

@discovery_revision "20221108"
@discovery_revision "20240221"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.CertificateManager.V1.Model.CertificateMapEntry do
## Attributes
* `certificates` (*type:* `list(String.t)`, *default:* `nil`) - A set of Certificates defines for the given `hostname`. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern `projects/*/locations/*/certificates/*`.
* `certificates` (*type:* `list(String.t)`, *default:* `nil`) - A set of Certificates defines for the given `hostname`. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match pattern `projects/*/locations/*/certificates/*`.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation timestamp of a Certificate Map Entry.
* `description` (*type:* `String.t`, *default:* `nil`) - One or more paragraphs of text description of a certificate map entry.
* `hostname` (*type:* `String.t`, *default:* `nil`) - A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression (`*.example.com`) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule GoogleApi.CertificateManager.V1.Model.DnsAuthorization do
* `domain` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a single domain and its wildcard, e.g. authorization for `example.com` can be used to issue certificates for `example.com` and `*.example.com`.
* `labels` (*type:* `map()`, *default:* `nil`) - Set of labels associated with a DnsAuthorization.
* `name` (*type:* `String.t`, *default:* `nil`) - A user-defined name of the dns authorization. DnsAuthorization names must be unique globally and match pattern `projects/*/locations/*/dnsAuthorizations/*`.
* `type` (*type:* `String.t`, *default:* `nil`) - Immutable. Type of DnsAuthorization. If unset during resource creation the following default will be used: - in location global: FIXED_RECORD.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last update timestamp of a DnsAuthorization.
"""

Expand All @@ -39,6 +40,7 @@ defmodule GoogleApi.CertificateManager.V1.Model.DnsAuthorization do
:domain => String.t() | nil,
:labels => map() | nil,
:name => String.t() | nil,
:type => String.t() | nil,
:updateTime => DateTime.t() | nil
}

Expand All @@ -48,6 +50,7 @@ defmodule GoogleApi.CertificateManager.V1.Model.DnsAuthorization do
field(:domain)
field(:labels, type: :map)
field(:name)
field(:type)
field(:updateTime, as: DateTime)
end

Expand Down
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.CertificateManager.V1.Model.Location do
@moduledoc """
A resource that represents Google Cloud Platform location.
A resource that represents a Google Cloud location.
## Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule GoogleApi.CertificateManager.V1.Model.Operation do
* `error` (*type:* `GoogleApi.CertificateManager.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation.
* `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
* `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
"""

use GoogleApi.Gax.ModelBase
Expand Down
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
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
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
2 changes: 1 addition & 1 deletion clients/certificate_manager/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.CertificateManager.Mixfile do
use Mix.Project

@version "0.4.1"
@version "0.5.0"

def project() do
[
Expand Down

0 comments on commit 0b1be33

Please sign in to comment.