Skip to content

Commit

Permalink
feat: Automated regeneration of Apigee client (#11155)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-19 13:09:18 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 19, 2024
1 parent 6be02cb commit e251f22
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/apigee/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_apigee, "~> 0.45"}]
[{:google_api_apigee, "~> 0.46"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/apigee/lib/google_api/apigee/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Apigee.V1 do
API client metadata for GoogleApi.Apigee.V1.
"""

@discovery_revision "20240312"
@discovery_revision "20240318"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.Apigee.V1.Model.GoogleCloudApigeeV1AccessLoggingConfig do
@moduledoc """
Access logging configuration enables customers to ship the access logs from the tenant projects to their own project's cloud logging. The feature is at the instance level ad disabled by default. It can be enabled during CreateInstance or UpdateInstance.
## Attributes
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Boolean flag that specifies whether the customer access log feature is enabled.
* `filter` (*type:* `String.t`, *default:* `nil`) - Optional. Ship the access log entries that match the status_code defined in the filter. The status_code is the only expected/supported filter field. (Ex: status_code) The filter will parse it to the Common Expression Language semantics for expression evaluation to build the filter condition. (Ex: "filter": status_code >= 200 && status_code < 300 )
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:enabled => boolean() | nil,
:filter => String.t() | nil
}

field(:enabled)
field(:filter)
end

defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AccessLoggingConfig do
def decode(value, options) do
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AccessLoggingConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AccessLoggingConfig 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 @@ -21,6 +21,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Instance do
## Attributes
* `accessLoggingConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AccessLoggingConfig.t`, *default:* `nil`) - Optional. Access logging configuration enables the access logging feature at the instance. Apigee customers can enable access logging to ship the access logs to their own project's cloud logging.
* `consumerAcceptList` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Customer accept list represents the list of projects (id/number) on customer side that can privately connect to the service attachment. It is an optional field which the customers can provide during the instance creation. By default, the customer project associated with the Apigee organization will be included to the list.
* `createdAt` (*type:* `String.t`, *default:* `nil`) - Output only. Time the instance was created in milliseconds since epoch.
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the instance.
Expand All @@ -41,6 +42,8 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Instance do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:accessLoggingConfig =>
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AccessLoggingConfig.t() | nil,
:consumerAcceptList => list(String.t()) | nil,
:createdAt => String.t() | nil,
:description => String.t() | nil,
Expand All @@ -58,6 +61,8 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Instance do
:state => String.t() | nil
}

field(:accessLoggingConfig, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AccessLoggingConfig)

field(:consumerAcceptList, type: :list)
field(:createdAt)
field(:description)
Expand Down
2 changes: 1 addition & 1 deletion clients/apigee/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Apigee.Mixfile do
use Mix.Project

@version "0.45.0"
@version "0.46.0"

def project() do
[
Expand Down

0 comments on commit e251f22

Please sign in to comment.