lib/google_api/os_config/v1/model/inventory_windows_application.ex

# 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.OSConfig.V1.Model.InventoryWindowsApplication do
  @moduledoc """
  Contains information about a Windows application that is retrieved from the Windows Registry. For more information about these fields, see: https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key

  ## Attributes

  *   `displayName` (*type:* `String.t`, *default:* `nil`) - The name of the application or product.
  *   `displayVersion` (*type:* `String.t`, *default:* `nil`) - The version of the product or application in string format.
  *   `helpLink` (*type:* `String.t`, *default:* `nil`) - The internet address for technical support.
  *   `installDate` (*type:* `GoogleApi.OSConfig.V1.Model.Date.t`, *default:* `nil`) - The last time this product received service. The value of this property is replaced each time a patch is applied or removed from the product or the command-line option is used to repair the product.
  *   `publisher` (*type:* `String.t`, *default:* `nil`) - The name of the manufacturer for the product or application.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :displayName => String.t() | nil,
          :displayVersion => String.t() | nil,
          :helpLink => String.t() | nil,
          :installDate => GoogleApi.OSConfig.V1.Model.Date.t() | nil,
          :publisher => String.t() | nil
        }

  field(:displayName)
  field(:displayVersion)
  field(:helpLink)
  field(:installDate, as: GoogleApi.OSConfig.V1.Model.Date)
  field(:publisher)
end

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

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