# 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.SecurityCenter.V1.Model.CloudDlpInspection do
  @moduledoc """
  Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the finding.

  ## Attributes

  *   `fullScan` (*type:* `boolean()`, *default:* `nil`) - Whether Cloud DLP scanned the complete resource or a sampled subset.
  *   `infoType` (*type:* `String.t`, *default:* `nil`) - The type of information (or *[infoType](https://cloud.google.com/dlp/docs/infotypes-reference)*) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.
  *   `infoTypeCount` (*type:* `String.t`, *default:* `nil`) - The number of times Cloud DLP found this infoType within this job and resource.
  *   `inspectJob` (*type:* `String.t`, *default:* `nil`) - Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :fullScan => boolean() | nil,
          :infoType => String.t() | nil,
          :infoTypeCount => String.t() | nil,
          :inspectJob => String.t() | nil
        }

  field(:fullScan)
  field(:infoType)
  field(:infoTypeCount)
  field(:inspectJob)
end

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

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