|
| 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.AndroidManagement.V1.Model.EnterpriseUpgradeEvent do |
| 19 | + @moduledoc """ |
| 20 | + An event sent for an enterprise upgrade. An enterprise upgrade is a process that upgrades a managed Google Play Accounts enterprise to a managed Google domain. |
| 21 | +
|
| 22 | + ## Attributes |
| 23 | +
|
| 24 | + * `enterprise` (*type:* `String.t`, *default:* `nil`) - The name of upgraded enterprise in the format "enterprises/{enterprise}" |
| 25 | + * `upgradeState` (*type:* `String.t`, *default:* `nil`) - Output only. The upgrade state of the enterprise. |
| 26 | + """ |
| 27 | + |
| 28 | + use GoogleApi.Gax.ModelBase |
| 29 | + |
| 30 | + @type t :: %__MODULE__{ |
| 31 | + :enterprise => String.t() | nil, |
| 32 | + :upgradeState => String.t() | nil |
| 33 | + } |
| 34 | + |
| 35 | + field(:enterprise) |
| 36 | + field(:upgradeState) |
| 37 | +end |
| 38 | + |
| 39 | +defimpl Poison.Decoder, for: GoogleApi.AndroidManagement.V1.Model.EnterpriseUpgradeEvent do |
| 40 | + def decode(value, options) do |
| 41 | + GoogleApi.AndroidManagement.V1.Model.EnterpriseUpgradeEvent.decode(value, options) |
| 42 | + end |
| 43 | +end |
| 44 | + |
| 45 | +defimpl Poison.Encoder, for: GoogleApi.AndroidManagement.V1.Model.EnterpriseUpgradeEvent do |
| 46 | + def encode(value, options) do |
| 47 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 48 | + end |
| 49 | +end |
0 commit comments