# 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.VulnerabilityReport do
@moduledoc """
This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time. For more information, see [Vulnerability reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).
## Attributes
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp for when the last vulnerability report was generated for the VM.
* `vulnerabilities` (*type:* `list(GoogleApi.OSConfig.V1.Model.VulnerabilityReportVulnerability.t)`, *default:* `nil`) - Output only. List of vulnerabilities affecting the VM.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:name => String.t() | nil,
:updateTime => DateTime.t() | nil,
:vulnerabilities =>
list(GoogleApi.OSConfig.V1.Model.VulnerabilityReportVulnerability.t()) | nil
}
field(:name)
field(:updateTime, as: DateTime)
field(:vulnerabilities,
as: GoogleApi.OSConfig.V1.Model.VulnerabilityReportVulnerability,
type: :list
)
end
defimpl Poison.Decoder, for: GoogleApi.OSConfig.V1.Model.VulnerabilityReport do
def decode(value, options) do
GoogleApi.OSConfig.V1.Model.VulnerabilityReport.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.OSConfig.V1.Model.VulnerabilityReport do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end