|
| 1 | +# Copyright 2019 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# NOTE: This file is auto generated by the elixir code generator program. |
| 16 | +# Do not edit this file manually. |
| 17 | + |
| 18 | +defmodule GoogleApi.AppEngine.V1.Model.ResourceEvent do |
| 19 | + @moduledoc """ |
| 20 | + The request that is passed to CLH during per-resource events. The request will be sent with update semantics in all cases except for data governance purge events. These events will be sent with delete semantics and the CLH is expected to delete the resource receiving this event. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `eventId` (*type:* `String.t`, *default:* `nil`) - The unique ID for this per-resource event. CLHs can use this value to dedup repeated calls. required |
| 25 | + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the resource for which this event is. required |
| 26 | + * `state` (*type:* `GoogleApi.AppEngine.V1.Model.ContainerState.t`, *default:* `nil`) - The state of the project that led to this event. |
| 27 | + """ |
| 28 | + |
| 29 | + use GoogleApi.Gax.ModelBase |
| 30 | + |
| 31 | + @type t :: %__MODULE__{ |
| 32 | + :eventId => String.t() | nil, |
| 33 | + :name => String.t() | nil, |
| 34 | + :state => GoogleApi.AppEngine.V1.Model.ContainerState.t() | nil |
| 35 | + } |
| 36 | + |
| 37 | + field(:eventId) |
| 38 | + field(:name) |
| 39 | + field(:state, as: GoogleApi.AppEngine.V1.Model.ContainerState) |
| 40 | +end |
| 41 | + |
| 42 | +defimpl Poison.Decoder, for: GoogleApi.AppEngine.V1.Model.ResourceEvent do |
| 43 | + def decode(value, options) do |
| 44 | + GoogleApi.AppEngine.V1.Model.ResourceEvent.decode(value, options) |
| 45 | + end |
| 46 | +end |
| 47 | + |
| 48 | +defimpl Poison.Encoder, for: GoogleApi.AppEngine.V1.Model.ResourceEvent do |
| 49 | + def encode(value, options) do |
| 50 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 51 | + end |
| 52 | +end |
0 commit comments