diff --git a/clients/apigee/README.md b/clients/apigee/README.md index 0014dac40e..082645ffaa 100644 --- a/clients/apigee/README.md +++ b/clients/apigee/README.md @@ -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 ``` diff --git a/clients/apigee/lib/google_api/apigee/v1/metadata.ex b/clients/apigee/lib/google_api/apigee/v1/metadata.ex index 4106eba1b7..5423fad4b4 100644 --- a/clients/apigee/lib/google_api/apigee/v1/metadata.ex +++ b/clients/apigee/lib/google_api/apigee/v1/metadata.ex @@ -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 diff --git a/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_access_logging_config.ex b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_access_logging_config.ex new file mode 100644 index 0000000000..a99fe19d46 --- /dev/null +++ b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_access_logging_config.ex @@ -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 diff --git a/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance.ex b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance.ex index d61c7e5836..edcdf74ed1 100644 --- a/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance.ex +++ b/clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_instance.ex @@ -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. @@ -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, @@ -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) diff --git a/clients/apigee/mix.exs b/clients/apigee/mix.exs index 51a6faaeab..432497fc0b 100644 --- a/clients/apigee/mix.exs +++ b/clients/apigee/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Apigee.Mixfile do use Mix.Project - @version "0.45.0" + @version "0.46.0" def project() do [