Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.58 KB

File metadata and controls

34 lines (25 loc) · 1.58 KB

FileSpec

Properties

Name Type Description Notes
content str The plain text (UTF-8) or base64-encoded content of the file.
content_encoding EncodingType [optional]
mode int The file's permission mode. You may specify the more familiar octal with a leading zero (e.g., 0644) or as a decimal without a leading zero (e.g., 420). Setuid/setgid/sticky bits are supported. If not specified, the permission mode for files defaults to 0644. [optional]
user str The file's owner, specified either as a name or numeric ID. Defaults to "root". [optional]
group str The file's group, specified either as a name or numeric ID. Defaults to "root". [optional]
path str The absolute path to a file on the system. Note that any existing file will be overwritten.

Example

from flightctl.models.file_spec import FileSpec

# TODO update the JSON string below
json = "{}"
# create an instance of FileSpec from a JSON string
file_spec_instance = FileSpec.from_json(json)
# print the JSON string representation of the object
print(FileSpec.to_json())

# convert the object into a dict
file_spec_dict = file_spec_instance.to_dict()
# create an instance of FileSpec from a dict
file_spec_from_dict = FileSpec.from_dict(file_spec_dict)

[Back to Model list] [Back to API list] [Back to README]