From 0b1be33abe542ea6fd5fa73465f165a94a6bdb3e Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 11 Mar 2024 18:52:16 -0700 Subject: [PATCH] feat: Automated regeneration of CertificateManager client (#10880) Auto-created at 2024-03-12 01:31:36 +0000 using the toys pull request generator. --- clients/certificate_manager/README.md | 2 +- .../certificate_manager/v1/api/projects.ex | 372 +++++++++++++++++- .../certificate_manager/v1/metadata.ex | 2 +- .../v1/model/certificate_map_entry.ex | 2 +- .../v1/model/dns_authorization.ex | 3 + .../v1/model/intermediate_ca.ex | 46 +++ .../v1/model/list_trust_configs_response.ex | 52 +++ .../certificate_manager/v1/model/location.ex | 2 +- .../certificate_manager/v1/model/operation.ex | 2 +- .../v1/model/trust_anchor.ex | 46 +++ .../v1/model/trust_config.ex | 64 +++ .../v1/model/trust_store.ex | 50 +++ clients/certificate_manager/mix.exs | 2 +- 13 files changed, 638 insertions(+), 7 deletions(-) create mode 100644 clients/certificate_manager/lib/google_api/certificate_manager/v1/model/intermediate_ca.ex create mode 100644 clients/certificate_manager/lib/google_api/certificate_manager/v1/model/list_trust_configs_response.ex create mode 100644 clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_anchor.ex create mode 100644 clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_config.ex create mode 100644 clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_store.ex diff --git a/clients/certificate_manager/README.md b/clients/certificate_manager/README.md index 25e3c299a2..7ecc7eb647 100644 --- a/clients/certificate_manager/README.md +++ b/clients/certificate_manager/README.md @@ -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 ``` diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/api/projects.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/api/projects.ex index cf5724dbcd..2a1fd918bc 100644 --- a/clients/certificate_manager/lib/google_api/certificate_manager/v1/api/projects.ex +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/api/projects.ex @@ -2159,7 +2159,7 @@ defmodule GoogleApi.CertificateManager.V1.Api.Projects do end @doc """ - Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id. + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. ## Parameters @@ -2235,4 +2235,374 @@ defmodule GoogleApi.CertificateManager.V1.Api.Projects do opts ++ [struct: %GoogleApi.CertificateManager.V1.Model.ListOperationsResponse{}] ) end + + @doc """ + Creates a new TrustConfig in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.CertificateManager.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The parent resource of the TrustConfig. Must be in the format `projects/*/locations/*`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:trustConfigId` (*type:* `String.t`) - Required. A user-provided name of the TrustConfig. Must match the regexp `[a-z0-9-]{1,63}`. + * `:body` (*type:* `GoogleApi.CertificateManager.V1.Model.TrustConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.CertificateManager.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec certificatemanager_projects_locations_trust_configs_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.CertificateManager.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def certificatemanager_projects_locations_trust_configs_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :trustConfigId => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/trustConfigs", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.CertificateManager.V1.Model.Operation{}]) + end + + @doc """ + Deletes a single TrustConfig. + + ## Parameters + + * `connection` (*type:* `GoogleApi.CertificateManager.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. A name of the TrustConfig to delete. Must be in the format `projects/*/locations/*/trustConfigs/*`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:etag` (*type:* `String.t`) - The current etag of the TrustConfig. If an etag is provided and does not match the current etag of the resource, deletion will be blocked and an ABORTED error will be returned. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.CertificateManager.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec certificatemanager_projects_locations_trust_configs_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.CertificateManager.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def certificatemanager_projects_locations_trust_configs_delete( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :etag => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.CertificateManager.V1.Model.Operation{}]) + end + + @doc """ + Gets details of a single TrustConfig. + + ## Parameters + + * `connection` (*type:* `GoogleApi.CertificateManager.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. A name of the TrustConfig to describe. Must be in the format `projects/*/locations/*/trustConfigs/*`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.CertificateManager.V1.Model.TrustConfig{}}` on success + * `{:error, info}` on failure + """ + @spec certificatemanager_projects_locations_trust_configs_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.CertificateManager.V1.Model.TrustConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def certificatemanager_projects_locations_trust_configs_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.CertificateManager.V1.Model.TrustConfig{}]) + end + + @doc """ + Lists TrustConfigs in a given project and location. + + ## Parameters + + * `connection` (*type:* `GoogleApi.CertificateManager.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The project and location from which the TrustConfigs should be listed, specified in the format `projects/*/locations/*`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Filter expression to restrict the TrustConfigs returned. + * `:orderBy` (*type:* `String.t`) - A list of TrustConfig field names used to specify the order of the returned results. The default sorting order is ascending. To specify descending order for a field, add a suffix " desc". + * `:pageSize` (*type:* `integer()`) - Maximum number of TrustConfigs to return per call. + * `:pageToken` (*type:* `String.t`) - The value returned by the last `ListTrustConfigsResponse`. Indicates that this is a continuation of a prior `ListTrustConfigs` call, and that the system should return the next page of data. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.CertificateManager.V1.Model.ListTrustConfigsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec certificatemanager_projects_locations_trust_configs_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.CertificateManager.V1.Model.ListTrustConfigsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def certificatemanager_projects_locations_trust_configs_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/trustConfigs", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.CertificateManager.V1.Model.ListTrustConfigsResponse{}] + ) + end + + @doc """ + Updates a TrustConfig. + + ## Parameters + + * `connection` (*type:* `GoogleApi.CertificateManager.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern `projects/*/locations/*/trustConfigs/*`. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. + * `:body` (*type:* `GoogleApi.CertificateManager.V1.Model.TrustConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.CertificateManager.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec certificatemanager_projects_locations_trust_configs_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.CertificateManager.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def certificatemanager_projects_locations_trust_configs_patch( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.CertificateManager.V1.Model.Operation{}]) + end end diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/metadata.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/metadata.ex index 02410f777c..9e5ce2412e 100644 --- a/clients/certificate_manager/lib/google_api/certificate_manager/v1/metadata.ex +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/metadata.ex @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/certificate_map_entry.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/certificate_map_entry.ex index 51857070e8..ab7ba425ec 100644 --- a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/certificate_map_entry.ex +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/certificate_map_entry.ex @@ -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. diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/dns_authorization.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/dns_authorization.ex index 31ea1aeb74..587ba8f423 100644 --- a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/dns_authorization.ex +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/dns_authorization.ex @@ -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. """ @@ -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 } @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/intermediate_ca.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/intermediate_ca.ex new file mode 100644 index 0000000000..cfc232ecf2 --- /dev/null +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/intermediate_ca.ex @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/list_trust_configs_response.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/list_trust_configs_response.ex new file mode 100644 index 0000000000..ab8f4e03e8 --- /dev/null +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/list_trust_configs_response.ex @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/location.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/location.ex index d90eedb118..328866f330 100644 --- a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/location.ex +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/location.ex @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/operation.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/operation.ex index f1ae5a5b03..7683574f0f 100644 --- a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/operation.ex +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/operation.ex @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_anchor.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_anchor.ex new file mode 100644 index 0000000000..b787cf281d --- /dev/null +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_anchor.ex @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_config.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_config.ex new file mode 100644 index 0000000000..ba7d54f192 --- /dev/null +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_config.ex @@ -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 diff --git a/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_store.ex b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_store.ex new file mode 100644 index 0000000000..64aec3a0b1 --- /dev/null +++ b/clients/certificate_manager/lib/google_api/certificate_manager/v1/model/trust_store.ex @@ -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 diff --git a/clients/certificate_manager/mix.exs b/clients/certificate_manager/mix.exs index c9951fe54e..c05364874d 100644 --- a/clients/certificate_manager/mix.exs +++ b/clients/certificate_manager/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.CertificateManager.Mixfile do use Mix.Project - @version "0.4.1" + @version "0.5.0" def project() do [