# 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.GoogleCloudDataplexV1DataDiscoveryResultScanStatistics do
  @moduledoc """
  Statistics of the DataDiscoveryScan.

  ## Attributes

  *   `dataProcessedBytes` (*type:* `String.t`, *default:* `nil`) - The data processed in bytes.
  *   `filesExcluded` (*type:* `integer()`, *default:* `nil`) - The number of files excluded.
  *   `filesetsCreated` (*type:* `integer()`, *default:* `nil`) - The number of filesets created.
  *   `filesetsDeleted` (*type:* `integer()`, *default:* `nil`) - The number of filesets deleted.
  *   `filesetsUpdated` (*type:* `integer()`, *default:* `nil`) - The number of filesets updated.
  *   `scannedFileCount` (*type:* `integer()`, *default:* `nil`) - The number of files scanned.
  *   `tablesCreated` (*type:* `integer()`, *default:* `nil`) - The number of tables created.
  *   `tablesDeleted` (*type:* `integer()`, *default:* `nil`) - The number of tables deleted.
  *   `tablesUpdated` (*type:* `integer()`, *default:* `nil`) - The number of tables updated.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :dataProcessedBytes => String.t() | nil,
          :filesExcluded => integer() | nil,
          :filesetsCreated => integer() | nil,
          :filesetsDeleted => integer() | nil,
          :filesetsUpdated => integer() | nil,
          :scannedFileCount => integer() | nil,
          :tablesCreated => integer() | nil,
          :tablesDeleted => integer() | nil,
          :tablesUpdated => integer() | nil
        }

  field(:dataProcessedBytes)
  field(:filesExcluded)
  field(:filesetsCreated)
  field(:filesetsDeleted)
  field(:filesetsUpdated)
  field(:scannedFileCount)
  field(:tablesCreated)
  field(:tablesDeleted)
  field(:tablesUpdated)
end

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

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