Class: IControl::ARX::FileChangeDefinition

Inherits:
Base::Struct
  • Object
show all
Defined in:
lib/icontrol/arx.rb,
lib/icontrol/arx.rb

Overview

A structure that contains the details of a file change.

Instance Attribute Summary collapse

Instance Attribute Details

If this change is for a link to another file on NFS, then the destination link will represent the new path for the target of the link. This path can be used to group links that link to the same file. However, this path can only be used as a key to group links during this session because a different path may be used in other sessions.

Returns:

  • (String)

    the current value of dst_link


105
106
107
# File 'lib/icontrol/arx.rb', line 105

def dst_link
  @dst_link
end

#dst_pathString

The file's new path. When the file change is FileChangeType ::FILECHANGE_FILE_OTHER, FileChangeType ::FILECHANGE_DIR_OTHER, FileChangeType ::FILECHANGE_FILE_NEW or FileChangeType ::FILECHANGE_DIR_NEW the path is relative to dst_root. However, if the file change is FileChangeType ::FILECHANGE_FILE_RENAME or FileChangeType ::FILECHANGE_DIR_RENAME then it is the full path. For any other file change type, this field is not used.

Returns:

  • (String)

    the current value of dst_path


105
106
107
# File 'lib/icontrol/arx.rb', line 105

def dst_path
  @dst_path
end

If this change is for a link to another file on NFS, then the source link will represent the original path for the target of the link. This path can be used to group links that link to the same file. However, this path can only be used as a key to group links during this session because a different path may be used in other sessions.

Returns:

  • (String)

    the current value of src_link


105
106
107
# File 'lib/icontrol/arx.rb', line 105

def src_link
  @src_link
end

#src_pathString

The file's original path. The path is relative to src_root. This field is not used when the file change is either FileChangeType ::FILECHANGE_FILE_NEW or FileChangeType ::FILECHANGE_DIR_NEW.

Returns:

  • (String)

    the current value of src_path


105
106
107
# File 'lib/icontrol/arx.rb', line 105

def src_path
  @src_path
end

#typeIControl::ARX::FileChangeType

The type of file change.

Returns:


105
106
107
# File 'lib/icontrol/arx.rb', line 105

def type
  @type
end