Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 3.46 KB

ContainerApplication.md

File metadata and controls

42 lines (33 loc) · 3.46 KB

ContainerApplication

Properties

Name Type Description Notes
name str The application name must be 1–253 characters long, start with a letter or number, and contain no whitespace. [optional]
app_type AppType
annotations Dict[str, str] Arbitrary metadata annotations. Used internally by the control plane (e.g., flightctl.io/workload-type) when transforming application types at render time. [optional] [readonly]
desired_state ApplicationDesiredState Desired lifecycle state for this application, as most recently set by the stop/start device APIs. Read-only: cannot be set directly by apply; only present in the rendered application spec delivered to the agent. [optional] [readonly]
restart_generation int Counter incremented by the restart device API each time the application is restarted. Read-only: cannot be set directly by apply; only present in the rendered application spec delivered to the agent. [optional] [readonly]
env_vars Dict[str, str] Environment variable key-value pairs, injected during runtime. The key and value each must be between 1 and 253 characters. [optional]
run_as str The username of the system user this application should be run under. This is not the same as the user within any containers of the application (if applicable). Defaults to the user that the agent runs as (generally root) if not specified. [optional]
volumes List[ApplicationVolume] List of application volumes. [optional]
image str Reference to an OCI image or artifact with tag.
delta_image str Optional hint: a reference to a delta artifact for the main image. Set by the control plane when a successful delta generation record exists for the current-to-target digest transition. Read-only: generated by the control plane and only present in the rendered application spec delivered to the agent. [optional] [readonly]
delta_images List[ImageDeltaHint] Optional hints for nested images within this application (e.g. service images in a compose app, OCI volume images). Each entry identifies a target image reference and digest and names its delta artifact reference. Read-only: generated by the control plane and only present in the rendered application spec delivered to the agent. [optional] [readonly]
catalog_item_ref CatalogItemRefSpec
ports List[str] Port mappings. [optional]
resources ApplicationResources [optional]

Example

from flightctl.models.container_application import ContainerApplication

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

# convert the object into a dict
container_application_dict = container_application_instance.to_dict()
# create an instance of ContainerApplication from a dict
container_application_from_dict = ContainerApplication.from_dict(container_application_dict)

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