Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Monitoring client #11306

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/monitoring/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_monitoring, "~> 0.55"}]
[{:google_api_monitoring, "~> 0.56"}]
end
```

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

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

@version "0.55.0"
@version "0.56.0"

def project() do
[
Expand Down
Loading