diff --git a/clients/monitoring/README.md b/clients/monitoring/README.md index 726558ca03..8b51fc6841 100644 --- a/clients/monitoring/README.md +++ b/clients/monitoring/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_monitoring, "~> 0.55"}] + [{:google_api_monitoring, "~> 0.56"}] end ``` diff --git a/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex b/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex index e546e050f8..73f23d09b8 100644 --- a/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex +++ b/clients/monitoring/lib/google_api/monitoring/v3/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Monitoring.V3 do API client metadata for GoogleApi.Monitoring.V3. """ - @discovery_revision "20240303" + @discovery_revision "20240414" def discovery_revision(), do: @discovery_revision end diff --git a/clients/monitoring/lib/google_api/monitoring/v3/model/documentation.ex b/clients/monitoring/lib/google_api/monitoring/v3/model/documentation.ex index 74b2e98042..9d7dad48c7 100644 --- a/clients/monitoring/lib/google_api/monitoring/v3/model/documentation.ex +++ b/clients/monitoring/lib/google_api/monitoring/v3/model/documentation.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Monitoring.V3.Model.Documentation do @moduledoc """ - A content string and a MIME type that describes the content string's format. + Documentation that is included in the notifications and incidents pertaining to this policy. ## Attributes diff --git a/clients/monitoring/lib/google_api/monitoring/v3/model/http_check.ex b/clients/monitoring/lib/google_api/monitoring/v3/model/http_check.ex index 2afcd06bce..6842092ec7 100644 --- a/clients/monitoring/lib/google_api/monitoring/v3/model/http_check.ex +++ b/clients/monitoring/lib/google_api/monitoring/v3/model/http_check.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Monitoring.V3.Model.HttpCheck do ## Attributes * `acceptedResponseStatusCodes` (*type:* `list(GoogleApi.Monitoring.V3.Model.ResponseStatusCode.t)`, *default:* `nil`) - If present, the check will only pass if the HTTP response status code is in this set of status codes. If empty, the HTTP status code will only pass if the HTTP status code is 200-299. - * `authInfo` (*type:* `GoogleApi.Monitoring.V3.Model.BasicAuthentication.t`, *default:* `nil`) - The authentication information. Optional when creating an HTTP check; defaults to empty. + * `authInfo` (*type:* `GoogleApi.Monitoring.V3.Model.BasicAuthentication.t`, *default:* `nil`) - The authentication information. Optional when creating an HTTP check; defaults to empty. Do not set both auth_method and auth_info. * `body` (*type:* `String.t`, *default:* `nil`) - The request body associated with the HTTP POST request. If content_type is URL_ENCODED, the body passed in must be URL-encoded. Users can provide a Content-Length header via the headers field or the API will do so. If the request_method is GET and body is not empty, the API will return an error. The maximum byte size is 1 megabyte.Note: If client libraries aren't used (which performs the conversion automatically) base64 encode your body data since the field is of bytes type. * `contentType` (*type:* `String.t`, *default:* `nil`) - The content type header to use for the check. The following configurations result in errors: 1. Content type is specified in both the headers field and the content_type field. 2. Request method is GET and content_type is not TYPE_UNSPECIFIED 3. Request method is POST and content_type is TYPE_UNSPECIFIED. 4. Request method is POST and a "Content-Type" header is provided via headers field. The content_type field should be used instead. * `customContentType` (*type:* `String.t`, *default:* `nil`) - A user provided content type header to use for the check. The invalid configurations outlined in the content_type field apply to custom_content_type, as well as the following: 1. content_type is URL_ENCODED and custom_content_type is set. 2. content_type is USER_PROVIDED and custom_content_type is not set. @@ -32,6 +32,7 @@ defmodule GoogleApi.Monitoring.V3.Model.HttpCheck do * `pingConfig` (*type:* `GoogleApi.Monitoring.V3.Model.PingConfig.t`, *default:* `nil`) - Contains information needed to add pings to an HTTP check. * `port` (*type:* `integer()`, *default:* `nil`) - Optional (defaults to 80 when use_ssl is false, and 443 when use_ssl is true). The TCP port on the HTTP server against which to run the check. Will be combined with host (specified within the monitored_resource) and path to construct the full URL. * `requestMethod` (*type:* `String.t`, *default:* `nil`) - The HTTP request method to use for the check. If set to METHOD_UNSPECIFIED then request_method defaults to GET. + * `serviceAgentAuthentication` (*type:* `GoogleApi.Monitoring.V3.Model.ServiceAgentAuthentication.t`, *default:* `nil`) - If specified, Uptime will generate and attach an OIDC JWT token for the Monitoring service agent service account as an Authorization header in the HTTP request when probing. * `useSsl` (*type:* `boolean()`, *default:* `nil`) - If true, use HTTPS instead of HTTP to run the check. * `validateSsl` (*type:* `boolean()`, *default:* `nil`) - Boolean specifying whether to include SSL certificate validation as a part of the Uptime check. Only applies to checks where monitored_resource is set to uptime_url. If use_ssl is false, setting validate_ssl to true has no effect. """ @@ -51,6 +52,8 @@ defmodule GoogleApi.Monitoring.V3.Model.HttpCheck do :pingConfig => GoogleApi.Monitoring.V3.Model.PingConfig.t() | nil, :port => integer() | nil, :requestMethod => String.t() | nil, + :serviceAgentAuthentication => + GoogleApi.Monitoring.V3.Model.ServiceAgentAuthentication.t() | nil, :useSsl => boolean() | nil, :validateSsl => boolean() | nil } @@ -70,6 +73,7 @@ defmodule GoogleApi.Monitoring.V3.Model.HttpCheck do field(:pingConfig, as: GoogleApi.Monitoring.V3.Model.PingConfig) field(:port) field(:requestMethod) + field(:serviceAgentAuthentication, as: GoogleApi.Monitoring.V3.Model.ServiceAgentAuthentication) field(:useSsl) field(:validateSsl) end diff --git a/clients/monitoring/lib/google_api/monitoring/v3/model/service_agent_authentication.ex b/clients/monitoring/lib/google_api/monitoring/v3/model/service_agent_authentication.ex new file mode 100644 index 0000000000..ceb2811e00 --- /dev/null +++ b/clients/monitoring/lib/google_api/monitoring/v3/model/service_agent_authentication.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.Monitoring.V3.Model.ServiceAgentAuthentication do + @moduledoc """ + Contains information needed for generating an OpenID Connect token (https://developers.google.com/identity/protocols/OpenIDConnect). The OIDC token will be generated for the Monitoring service agent service account. + + ## Attributes + + * `type` (*type:* `String.t`, *default:* `nil`) - Type of authentication. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :type => String.t() | nil + } + + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Monitoring.V3.Model.ServiceAgentAuthentication do + def decode(value, options) do + GoogleApi.Monitoring.V3.Model.ServiceAgentAuthentication.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Monitoring.V3.Model.ServiceAgentAuthentication do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/monitoring/mix.exs b/clients/monitoring/mix.exs index 12e7350fc8..02efedeab1 100644 --- a/clients/monitoring/mix.exs +++ b/clients/monitoring/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Monitoring.Mixfile do use Mix.Project - @version "0.55.0" + @version "0.56.0" def project() do [