# 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.StorageTransfer.V1.Model.TransferCounters do
@moduledoc """
A collection of counters that report the progress of a transfer operation.
## Attributes
* `bytesCopiedToSink` (*type:* `String.t`, *default:* `nil`) - Bytes that are copied to the data sink.
* `bytesDeletedFromSink` (*type:* `String.t`, *default:* `nil`) - Bytes that are deleted from the data sink.
* `bytesDeletedFromSource` (*type:* `String.t`, *default:* `nil`) - Bytes that are deleted from the data source.
* `bytesFailedToDeleteFromSink` (*type:* `String.t`, *default:* `nil`) - Bytes that failed to be deleted from the data sink.
* `bytesFoundFromSource` (*type:* `String.t`, *default:* `nil`) - Bytes found in the data source that are scheduled to be transferred, excluding any that are filtered based on object conditions or skipped due to sync.
* `bytesFoundOnlyFromSink` (*type:* `String.t`, *default:* `nil`) - Bytes found only in the data sink that are scheduled to be deleted.
* `bytesFromSourceFailed` (*type:* `String.t`, *default:* `nil`) - Bytes in the data source that failed to be transferred or that failed to be deleted after being transferred.
* `bytesFromSourceSkippedBySync` (*type:* `String.t`, *default:* `nil`) - Bytes in the data source that are not transferred because they already exist in the data sink.
* `directoriesFailedToListFromSource` (*type:* `String.t`, *default:* `nil`) - For transfers involving PosixFilesystem only. Number of listing failures for each directory found at the source. Potential failures when listing a directory include permission failure or block failure. If listing a directory fails, no files in the directory are transferred.
* `directoriesFoundFromSource` (*type:* `String.t`, *default:* `nil`) - For transfers involving PosixFilesystem only. Number of directories found while listing. For example, if the root directory of the transfer is `base/` and there are two other directories, `a/` and `b/` under this directory, the count after listing `base/`, `base/a/` and `base/b/` is 3.
* `directoriesSuccessfullyListedFromSource` (*type:* `String.t`, *default:* `nil`) - For transfers involving PosixFilesystem only. Number of successful listings for each directory found at the source.
* `intermediateObjectsCleanedUp` (*type:* `String.t`, *default:* `nil`) - Number of successfully cleaned up intermediate objects.
* `intermediateObjectsFailedCleanedUp` (*type:* `String.t`, *default:* `nil`) - Number of intermediate objects failed cleaned up.
* `objectsCopiedToSink` (*type:* `String.t`, *default:* `nil`) - Objects that are copied to the data sink.
* `objectsDeletedFromSink` (*type:* `String.t`, *default:* `nil`) - Objects that are deleted from the data sink.
* `objectsDeletedFromSource` (*type:* `String.t`, *default:* `nil`) - Objects that are deleted from the data source.
* `objectsFailedToDeleteFromSink` (*type:* `String.t`, *default:* `nil`) - Objects that failed to be deleted from the data sink.
* `objectsFoundFromSource` (*type:* `String.t`, *default:* `nil`) - Objects found in the data source that are scheduled to be transferred, excluding any that are filtered based on object conditions or skipped due to sync.
* `objectsFoundOnlyFromSink` (*type:* `String.t`, *default:* `nil`) - Objects found only in the data sink that are scheduled to be deleted.
* `objectsFromSourceFailed` (*type:* `String.t`, *default:* `nil`) - Objects in the data source that failed to be transferred or that failed to be deleted after being transferred.
* `objectsFromSourceSkippedBySync` (*type:* `String.t`, *default:* `nil`) - Objects in the data source that are not transferred because they already exist in the data sink.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:bytesCopiedToSink => String.t() | nil,
:bytesDeletedFromSink => String.t() | nil,
:bytesDeletedFromSource => String.t() | nil,
:bytesFailedToDeleteFromSink => String.t() | nil,
:bytesFoundFromSource => String.t() | nil,
:bytesFoundOnlyFromSink => String.t() | nil,
:bytesFromSourceFailed => String.t() | nil,
:bytesFromSourceSkippedBySync => String.t() | nil,
:directoriesFailedToListFromSource => String.t() | nil,
:directoriesFoundFromSource => String.t() | nil,
:directoriesSuccessfullyListedFromSource => String.t() | nil,
:intermediateObjectsCleanedUp => String.t() | nil,
:intermediateObjectsFailedCleanedUp => String.t() | nil,
:objectsCopiedToSink => String.t() | nil,
:objectsDeletedFromSink => String.t() | nil,
:objectsDeletedFromSource => String.t() | nil,
:objectsFailedToDeleteFromSink => String.t() | nil,
:objectsFoundFromSource => String.t() | nil,
:objectsFoundOnlyFromSink => String.t() | nil,
:objectsFromSourceFailed => String.t() | nil,
:objectsFromSourceSkippedBySync => String.t() | nil
}
field(:bytesCopiedToSink)
field(:bytesDeletedFromSink)
field(:bytesDeletedFromSource)
field(:bytesFailedToDeleteFromSink)
field(:bytesFoundFromSource)
field(:bytesFoundOnlyFromSink)
field(:bytesFromSourceFailed)
field(:bytesFromSourceSkippedBySync)
field(:directoriesFailedToListFromSource)
field(:directoriesFoundFromSource)
field(:directoriesSuccessfullyListedFromSource)
field(:intermediateObjectsCleanedUp)
field(:intermediateObjectsFailedCleanedUp)
field(:objectsCopiedToSink)
field(:objectsDeletedFromSink)
field(:objectsDeletedFromSource)
field(:objectsFailedToDeleteFromSink)
field(:objectsFoundFromSource)
field(:objectsFoundOnlyFromSink)
field(:objectsFromSourceFailed)
field(:objectsFromSourceSkippedBySync)
end
defimpl Poison.Decoder, for: GoogleApi.StorageTransfer.V1.Model.TransferCounters do
def decode(value, options) do
GoogleApi.StorageTransfer.V1.Model.TransferCounters.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.StorageTransfer.V1.Model.TransferCounters do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end