SftpDeleteNodeConfiguration
Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Load
Configuration node object for deleting one file from an SFTP server: it removes the file
SftpDownload@1 read, once the content has been processed, which is the contract a
file drop-off works by.
public record SftpDeleteNodeConfiguration : NodeConfiguration, INodeConfiguration, IEquatable<NodeConfiguration>, IEquatable<SftpDeleteNodeConfiguration>
Inheritance Object → NodeConfiguration → SftpDeleteNodeConfiguration
Implements INodeConfiguration, IEquatable<NodeConfiguration>, IEquatable<SftpDeleteNodeConfiguration>
Properties
ServerConfiguration
Name of the global configuration for the SFTP server
public string ServerConfiguration { get; set; }
Property Value
RemotePath
Static remote path of the file to delete (set this or RemotePathPath)
public string RemotePath { get; set; }
Property Value
RemotePathPath
Path in the data context to resolve the remote path dynamically; takes precedence over
RemotePath
public string RemotePathPath { get; set; }
Property Value
ExpectedLength
Length in bytes of the file as it was listed - the length of an SftpList@1
element (set this or ExpectedLengthPath). Together with the last write time it is
the identity of the listed file: once either is configured, the node deletes the file only
while it still has that identity, and both have to be configured.
public Nullable<long> ExpectedLength { get; set; }
Property Value
ExpectedLengthPath
Path in the data context to the expected length; takes precedence over
ExpectedLength. A JSON integer or a string of digits.
public string ExpectedLengthPath { get; set; }
Property Value
ExpectedLastWriteTimeUtc
Last write time of the file as it was listed - the lastWriteTimeUtc of an
SftpList@1 element, in the form that node writes: yyyy-MM-ddTHH:mm:ss, seven
fractional digits and Z; zero to seven fractional digits are accepted (set this or
ExpectedLastWriteTimeUtcPath). 0001-01-01T00:00:00Z, which that node writes
for a server that reports no last write time, is refused.
public string ExpectedLastWriteTimeUtc { get; set; }
Property Value
ExpectedLastWriteTimeUtcPath
Path in the data context to the expected last write time; takes precedence over
ExpectedLastWriteTimeUtc.
public string ExpectedLastWriteTimeUtcPath { get; set; }
Property Value
OnMissingFile
What to do when the file is not there any more: Fail reports it as a node
failure, Ignore logs a warning and lets the chain continue, because the goal
state - the file is gone - is reached either way.
The default is the strict one, and it is the zero member as well, so a definition that
says nothing about this cannot end up lenient. A pipeline that repeats a partially
finished run wants Ignore, but that is something the pipeline states rather than
something this node grants every caller.
public MissingFileHandling OnMissingFile { get; set; }
Property Value
OnIdentityMismatch
What to do when the file no longer has the expected identity: it stays on the server
under its name either way. Fail reports it as a node failure, Warn logs a
warning and lets the chain continue. Warn without an expected identity is refused
before connecting, because nothing would be compared; Fail cannot be told from the
default and has no effect without one.
The strict reading is the default and the zero member. There is deliberately no member
that deletes a file whose identity differs. A file the node has to leave under its
temporary name fails the node whatever this says: SftpList@1 skips that name unless
its pattern asks for it, so the file needs a person.
public IdentityMismatchHandling OnIdentityMismatch { get; set; }
Property Value
Description
public string Description { get; set; }
Property Value
Constructors
SftpDeleteNodeConfiguration()
Caution
Constructors of types with required members are not supported in this version of your compiler.
public SftpDeleteNodeConfiguration()