NfsVolume

class oci.batch.models.NfsVolume(**kwargs)

Bases: BatchTaskEnvironmentVolume

A description of a NFS type of batch task environment volume.

Attributes:

TYPE_NFS

A constant which can be used with the type property of a BatchTaskEnvironmentVolume.

local_mount_directory_path

[Required] Gets the local_mount_directory_path of this NfsVolume.

mount_target_export_path

[Required] Gets the mount_target_export_path of this NfsVolume.

mount_target_fqdn

[Required] Gets the mount_target_fqdn of this NfsVolume.

name

[Required] Gets the name of this NfsVolume.

type

[Required] Gets the type of this BatchTaskEnvironmentVolume.

Methods:

__init__(**kwargs)

Initializes a new NfsVolume object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

TYPE_NFS = 'NFS'

A constant which can be used with the type property of a BatchTaskEnvironmentVolume. This constant has a value of “NFS”

__init__(**kwargs)

Initializes a new NfsVolume object with values from keyword arguments. The default value of the type attribute of this class is NFS and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this NfsVolume. Allowed values for this property are: “NFS”

  • name (str) – The value to assign to the name property of this NfsVolume.

  • mount_target_fqdn (str) – The value to assign to the mount_target_fqdn property of this NfsVolume.

  • mount_target_export_path (str) – The value to assign to the mount_target_export_path property of this NfsVolume.

  • local_mount_directory_path (str) – The value to assign to the local_mount_directory_path property of this NfsVolume.

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property local_mount_directory_path

[Required] Gets the local_mount_directory_path of this NfsVolume. The local path to mount the NFS share to.

Returns

The local_mount_directory_path of this NfsVolume.

Return type

str

property mount_target_export_path

[Required] Gets the mount_target_export_path of this NfsVolume. The path to the directory on the NFS server to be mounted.

Returns

The mount_target_export_path of this NfsVolume.

Return type

str

property mount_target_fqdn

[Required] Gets the mount_target_fqdn of this NfsVolume. The FQDN of the NFS server to connect to.

Returns

The mount_target_fqdn of this NfsVolume.

Return type

str

property name

[Required] Gets the name of this NfsVolume. The name of the NfsVolume.

Returns

The name of this NfsVolume.

Return type

str

property type

[Required] Gets the type of this BatchTaskEnvironmentVolume. Discriminator for sub-entities.

Allowed values for this property are: “NFS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The type of this BatchTaskEnvironmentVolume.

Return type

str