# 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.Dataplex.V1.Model.GoogleCloudDataplexV1EnvironmentInfrastructureSpecOsImageRuntime do
  @moduledoc """
  Software Runtime Configuration to run Analyze.

  ## Attributes

  *   `imageVersion` (*type:* `String.t`, *default:* `nil`) - Required. Dataplex Image version.
  *   `javaLibraries` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of Java jars to be included in the runtime environment. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
  *   `properties` (*type:* `map()`, *default:* `nil`) - Optional. Spark properties to provide configuration for use in sessions created for this environment. The properties to set on daemon config files. Property keys are specified in prefix:property format. The prefix must be "spark".
  *   `pythonPackages` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :imageVersion => String.t() | nil,
          :javaLibraries => list(String.t()) | nil,
          :properties => map() | nil,
          :pythonPackages => list(String.t()) | nil
        }

  field(:imageVersion)
  field(:javaLibraries, type: :list)
  field(:properties, type: :map)
  field(:pythonPackages, type: :list)
end

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

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