# 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.VMMigration.V1.Model.ImageImportOsAdaptationParameters do
  @moduledoc """
  Parameters affecting the OS adaptation process.

  ## Attributes

  *   `bootConversion` (*type:* `String.t`, *default:* `nil`) - Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion
  *   `generalize` (*type:* `boolean()`, *default:* `nil`) - Optional. Set to true in order to generalize the imported image. The generalization process enables co-existence of multiple VMs created from the same image. For Windows, generalizing the image removes computer-specific information such as installed drivers and the computer security identifier (SID).
  *   `licenseType` (*type:* `String.t`, *default:* `nil`) - Optional. Choose which type of license to apply to the imported image.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :bootConversion => String.t() | nil,
          :generalize => boolean() | nil,
          :licenseType => String.t() | nil
        }

  field(:bootConversion)
  field(:generalize)
  field(:licenseType)
end

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

defimpl Poison.Encoder, for: GoogleApi.VMMigration.V1.Model.ImageImportOsAdaptationParameters do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
