lib/google_api/os_config/v1/model/inventory_windows_update_package.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.InventoryWindowsUpdatePackage do
  @moduledoc """
  Details related to a Windows Update package. Field data and names are taken from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive fields like title, and description are localized based on the locale of the VM being updated.

  ## Attributes

  *   `categories` (*type:* `list(GoogleApi.OSConfig.V1.Model.InventoryWindowsUpdatePackageWindowsUpdateCategory.t)`, *default:* `nil`) - The categories that are associated with this update package.
  *   `description` (*type:* `String.t`, *default:* `nil`) - The localized description of the update package.
  *   `kbArticleIds` (*type:* `list(String.t)`, *default:* `nil`) - A collection of Microsoft Knowledge Base article IDs that are associated with the update package.
  *   `lastDeploymentChangeTime` (*type:* `DateTime.t`, *default:* `nil`) - The last published date of the update, in (UTC) date and time.
  *   `moreInfoUrls` (*type:* `list(String.t)`, *default:* `nil`) - A collection of URLs that provide more information about the update package.
  *   `revisionNumber` (*type:* `integer()`, *default:* `nil`) - The revision number of this update package.
  *   `supportUrl` (*type:* `String.t`, *default:* `nil`) - A hyperlink to the language-specific support information for the update.
  *   `title` (*type:* `String.t`, *default:* `nil`) - The localized title of the update package.
  *   `updateId` (*type:* `String.t`, *default:* `nil`) - Gets the identifier of an update package. Stays the same across revisions.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :categories =>
            list(
              GoogleApi.OSConfig.V1.Model.InventoryWindowsUpdatePackageWindowsUpdateCategory.t()
            )
            | nil,
          :description => String.t() | nil,
          :kbArticleIds => list(String.t()) | nil,
          :lastDeploymentChangeTime => DateTime.t() | nil,
          :moreInfoUrls => list(String.t()) | nil,
          :revisionNumber => integer() | nil,
          :supportUrl => String.t() | nil,
          :title => String.t() | nil,
          :updateId => String.t() | nil
        }

  field(:categories,
    as: GoogleApi.OSConfig.V1.Model.InventoryWindowsUpdatePackageWindowsUpdateCategory,
    type: :list
  )

  field(:description)
  field(:kbArticleIds, type: :list)
  field(:lastDeploymentChangeTime, as: DateTime)
  field(:moreInfoUrls, type: :list)
  field(:revisionNumber)
  field(:supportUrl)
  field(:title)
  field(:updateId)
end

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

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