ContainerConfigFile¶
-
class
oci.container_instances.models.
ContainerConfigFile
(**kwargs)¶ Bases:
object
The file that is mounted on a container instance through a volume mount.
Methods
__init__
(**kwargs)Initializes a new ContainerConfigFile object with values from keyword arguments. Attributes
data
[Required] Gets the data of this ContainerConfigFile. file_name
[Required] Gets the file_name of this ContainerConfigFile. path
Gets the path of this ContainerConfigFile. -
__init__
(**kwargs)¶ Initializes a new ContainerConfigFile object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - file_name (str) – The value to assign to the file_name property of this ContainerConfigFile.
- data (str) – The value to assign to the data property of this ContainerConfigFile.
- path (str) – The value to assign to the path property of this ContainerConfigFile.
-
data
¶ [Required] Gets the data of this ContainerConfigFile. The base64 encoded contents of the file. The contents are decoded to plain text before mounted as a file to a container inside container instance.
Returns: The data of this ContainerConfigFile. Return type: str
-
file_name
¶ [Required] Gets the file_name of this ContainerConfigFile. The name of the file. The fileName should be unique across the volume.
Returns: The file_name of this ContainerConfigFile. Return type: str
-
path
¶ Gets the path of this ContainerConfigFile. (Optional) Relative path for this file inside the volume mount directory. By default, the file is presented at the root of the volume mount path.
Returns: The path of this ContainerConfigFile. Return type: str
-