seguro.commands.scheduler.compose_modelΒΆ

Classes

Action(value[, names, module, qualname, ...])

Bind(*[, propagation, create_host_path, selinux])

BlkioConfig(*[, device_read_bps, ...])

BlkioLimit(*[, path, rate])

BlkioWeight(*[, path, weight])

Build(*[, context, dockerfile, ...])

Cgroup(value[, names, module, qualname, ...])

Command([root])

ComposeSpecification(*[, version, name, ...])

The Compose file is a YAML file defining a multi-containers based application.

Condition(value[, names, module, qualname, ...])

Config(*[, name, content, environment, ...])

ConfigItem(*[, subnet, ip_range, gateway, ...])

Constraints([root])

CredentialSpec(*[, config, file, registry])

DependsOn(*[, restart, required])

Deployment(*[, mode, endpoint_mode, ...])

Development(*[, watch])

Device(*[, capabilities, count, device_ids, ...])

Devices([root])

DiscreteResourceSpec(*[, kind, value])

EnvFile([root])

EnvFile1(*, path[, required])

Extends(*, service[, file])

External(*[, name])

External2(*[, name])

GenericResource(*[, discrete_resource_spec])

GenericResources([root])

Healthcheck(*[, disable, interval, retries, ...])

Include([root])

Include1(*[, path, env_file, project_directory])

Ipam(*[, driver, config, options])

Limits(*[, cpus, memory, pids])

ListOfStrings([root])

ListOrDict([root])

ListOrDict1([root])

Logging(*[, driver, options])

Network(*[, name, driver, driver_opts, ...])

Networks(*[, aliases, ipv4_address, ...])

Order(value[, names, module, qualname, ...])

Placement(*[, constraints, preferences, ...])

Ports(*[, name, mode, host_ip, target, ...])

Preference(*[, spread])

PullPolicy(value[, names, module, qualname, ...])

Reservations(*[, cpus, memory, ...])

Resources(*[, limits, reservations])

RestartPolicy(*[, condition, delay, ...])

RollbackConfig(*[, parallelism, delay, ...])

Secret(*[, name, environment, file, ...])

Selinux(value[, names, module, qualname, ...])

Service(*[, develop, deploy, annotations, ...])

ServiceConfigOrSecret([root])

ServiceConfigOrSecret1(*[, source, target, ...])

Size([root])

StringOrList([root])

Tmpfs(*[, size, mode])

Ulimits([root])

Ulimits1(*, hard, soft)

UpdateConfig(*[, parallelism, delay, ...])

Volume(*[, name, driver, driver_opts, ...])

Volume1(*[, nocopy, subpath])

Volumes(*, type[, source, target, ...])

WatchItem(*[, ignore, path, action, target])

class seguro.commands.scheduler.compose_model.Action(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]ΒΆ

Bases: Enum

REBUILD = 'rebuild'ΒΆ
SYNC = 'sync'ΒΆ
SYNC_RESTART = 'sync+restart'ΒΆ
class seguro.commands.scheduler.compose_model.Bind(*, propagation=None, create_host_path=None, selinux=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • propagation (str | None)

  • create_host_path (bool | None)

  • selinux (Selinux | None)

create_host_path: bool | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'create_host_path': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'propagation': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'selinux': FieldInfo(annotation=Union[Selinux, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

propagation: str | NoneΒΆ
selinux: Selinux | NoneΒΆ
class seguro.commands.scheduler.compose_model.BlkioConfig(*, device_read_bps=None, device_read_iops=None, device_write_bps=None, device_write_iops=None, weight=None, weight_device=None)[source]ΒΆ

Bases: BaseModel

Parameters:
device_read_bps: list[BlkioLimit] | NoneΒΆ
device_read_iops: list[BlkioLimit] | NoneΒΆ
device_write_bps: list[BlkioLimit] | NoneΒΆ
device_write_iops: list[BlkioLimit] | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'device_read_bps': FieldInfo(annotation=Union[list[BlkioLimit], NoneType], required=False, default=None), 'device_read_iops': FieldInfo(annotation=Union[list[BlkioLimit], NoneType], required=False, default=None), 'device_write_bps': FieldInfo(annotation=Union[list[BlkioLimit], NoneType], required=False, default=None), 'device_write_iops': FieldInfo(annotation=Union[list[BlkioLimit], NoneType], required=False, default=None), 'weight': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'weight_device': FieldInfo(annotation=Union[list[BlkioWeight], NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

weight: int | NoneΒΆ
weight_device: list[BlkioWeight] | NoneΒΆ
class seguro.commands.scheduler.compose_model.BlkioLimit(*, path=None, rate=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • path (str | None)

  • rate (int | str | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'path': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'rate': FieldInfo(annotation=Union[int, str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

path: str | NoneΒΆ
rate: int | str | NoneΒΆ
class seguro.commands.scheduler.compose_model.BlkioWeight(*, path=None, weight=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • path (str | None)

  • weight (int | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'path': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'weight': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

path: str | NoneΒΆ
weight: int | NoneΒΆ
class seguro.commands.scheduler.compose_model.Build(*, context=None, dockerfile=None, dockerfile_inline=None, entitlements=None, args=None, ssh=None, labels=None, cache_from=None, cache_to=None, no_cache=None, additional_contexts=None, network=None, pull=None, target=None, shm_size=None, extra_hosts=None, isolation=None, privileged=None, secrets=None, tags=None, ulimits=None, platforms=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • context (str | None)

  • dockerfile (str | None)

  • dockerfile_inline (str | None)

  • entitlements (list[str] | None)

  • args (ListOrDict | None)

  • ssh (ListOrDict | None)

  • labels (ListOrDict | None)

  • cache_from (list[str] | None)

  • cache_to (list[str] | None)

  • no_cache (bool | None)

  • additional_contexts (ListOrDict | None)

  • network (str | None)

  • pull (bool | None)

  • target (str | None)

  • shm_size (int | str | None)

  • extra_hosts (ListOrDict | None)

  • isolation (str | None)

  • privileged (bool | None)

  • secrets (ServiceConfigOrSecret | None)

  • tags (list[str] | None)

  • ulimits (Ulimits | None)

  • platforms (list[str] | None)

additional_contexts: ListOrDict | NoneΒΆ
args: ListOrDict | NoneΒΆ
cache_from: list[str] | NoneΒΆ
cache_to: list[str] | NoneΒΆ
context: str | NoneΒΆ
dockerfile: str | NoneΒΆ
dockerfile_inline: str | NoneΒΆ
entitlements: list[str] | NoneΒΆ
extra_hosts: ListOrDict | NoneΒΆ
isolation: str | NoneΒΆ
labels: ListOrDict | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'additional_contexts': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'args': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'cache_from': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'cache_to': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'context': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'dockerfile': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'dockerfile_inline': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'entitlements': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'extra_hosts': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'isolation': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'labels': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'network': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'no_cache': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'platforms': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'privileged': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'pull': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'secrets': FieldInfo(annotation=Union[ServiceConfigOrSecret, NoneType], required=False, default=None), 'shm_size': FieldInfo(annotation=Union[int, str, NoneType], required=False, default=None), 'ssh': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'tags': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'target': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'ulimits': FieldInfo(annotation=Union[Ulimits, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

network: str | NoneΒΆ
no_cache: bool | NoneΒΆ
platforms: list[str] | NoneΒΆ
privileged: bool | NoneΒΆ
pull: bool | NoneΒΆ
secrets: ServiceConfigOrSecret | NoneΒΆ
shm_size: int | str | NoneΒΆ
ssh: ListOrDict | NoneΒΆ
tags: list[str] | NoneΒΆ
target: str | NoneΒΆ
ulimits: Ulimits | NoneΒΆ
class seguro.commands.scheduler.compose_model.Cgroup(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]ΒΆ

Bases: Enum

HOST = 'host'ΒΆ
PRIVATE = 'private'ΒΆ
class seguro.commands.scheduler.compose_model.Command(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[Union[str, list[str], NoneType]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=Union[str, list[str], NoneType], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: str | list[str] | NoneΒΆ
class seguro.commands.scheduler.compose_model.ComposeSpecification(*, version=None, name=None, include=None, services=None, networks=None, volumes=None, secrets=None, configs=None)[source]ΒΆ

Bases: BaseModel

The Compose file is a YAML file defining a multi-containers based application.

Parameters:
  • version (str | None)

  • name (str | None)

  • include (list[Include] | None)

  • services (dict[str, Service] | None)

  • networks (dict[str, Network | None] | None)

  • volumes (dict[str, Volume | None] | None)

  • secrets (dict[str, Secret] | None)

  • configs (dict[str, Config] | None)

configs: dict[str, Config] | NoneΒΆ
include: list[Include] | NoneΒΆ

compose sub-projects to be included.

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'configs': FieldInfo(annotation=Union[dict[str, Config], NoneType], required=False, default=None), 'include': FieldInfo(annotation=Union[list[Include], NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None, metadata=[_PydanticGeneralMetadata(pattern='^[a-z0-9][a-z0-9_-]*$')]), 'networks': FieldInfo(annotation=Union[dict[str, Union[Network, NoneType]], NoneType], required=False, default=None), 'secrets': FieldInfo(annotation=Union[dict[str, Secret], NoneType], required=False, default=None), 'services': FieldInfo(annotation=Union[dict[str, Service], NoneType], required=False, default=None), 'version': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'volumes': FieldInfo(annotation=Union[dict[str, Union[Volume, NoneType]], NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ

define the Compose project name, until user defines one explicitly.

networks: dict[str, Network | None] | NoneΒΆ
secrets: dict[str, Secret] | NoneΒΆ
services: dict[str, Service] | NoneΒΆ
version: str | NoneΒΆ

declared for backward compatibility, ignored.

volumes: dict[str, Volume | None] | NoneΒΆ
class seguro.commands.scheduler.compose_model.Condition(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]ΒΆ

Bases: Enum

SERVICE_COMPLETED_SUCCESSFULLY = 'service_completed_successfully'ΒΆ
SERVICE_HEALTHY = 'service_healthy'ΒΆ
SERVICE_STARTED = 'service_started'ΒΆ
class seguro.commands.scheduler.compose_model.Config(*, name=None, content=None, environment=None, file=None, external=None, labels=None, template_driver=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • name (str | None)

  • content (str | None)

  • environment (str | None)

  • file (str | None)

  • external (External2 | None)

  • labels (ListOrDict | None)

  • template_driver (str | None)

content: str | NoneΒΆ
environment: str | NoneΒΆ
external: External2 | NoneΒΆ
file: str | NoneΒΆ
labels: ListOrDict | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'content': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'environment': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'external': FieldInfo(annotation=Union[External2, NoneType], required=False, default=None), 'file': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'labels': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'template_driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ
template_driver: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.ConfigItem(*, subnet=None, ip_range=None, gateway=None, aux_addresses=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • subnet (str | None)

  • ip_range (str | None)

  • gateway (str | None)

  • aux_addresses (dict[str, str] | None)

aux_addresses: dict[str, str] | NoneΒΆ
gateway: str | NoneΒΆ
ip_range: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'aux_addresses': FieldInfo(annotation=Union[dict[str, str], NoneType], required=False, default=None), 'gateway': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'ip_range': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'subnet': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

subnet: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Constraints(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[Any]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=Any, required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: AnyΒΆ
class seguro.commands.scheduler.compose_model.CredentialSpec(*, config=None, file=None, registry=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • config (str | None)

  • file (str | None)

  • registry (str | None)

config: str | NoneΒΆ
file: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'config': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'file': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'registry': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

registry: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.DependsOn(*, restart=None, required=True, condition)[source]ΒΆ

Bases: BaseModel

Parameters:
  • restart (bool | None)

  • required (bool | None)

  • condition (Condition)

condition: ConditionΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'condition': FieldInfo(annotation=Condition, required=True), 'required': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True), 'restart': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

required: bool | NoneΒΆ
restart: bool | NoneΒΆ
class seguro.commands.scheduler.compose_model.Deployment(*, mode=None, endpoint_mode=None, replicas=None, labels=None, rollback_config=None, update_config=None, resources=None, restart_policy=None, placement=None)[source]ΒΆ

Bases: BaseModel

Parameters:
endpoint_mode: str | NoneΒΆ
labels: ListOrDict | NoneΒΆ
mode: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'endpoint_mode': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'labels': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'mode': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'placement': FieldInfo(annotation=Union[Placement, NoneType], required=False, default=None), 'replicas': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'resources': FieldInfo(annotation=Union[Resources, NoneType], required=False, default=None), 'restart_policy': FieldInfo(annotation=Union[RestartPolicy, NoneType], required=False, default=None), 'rollback_config': FieldInfo(annotation=Union[RollbackConfig, NoneType], required=False, default=None), 'update_config': FieldInfo(annotation=Union[UpdateConfig, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

placement: Placement | NoneΒΆ
replicas: int | NoneΒΆ
resources: Resources | NoneΒΆ
restart_policy: RestartPolicy | NoneΒΆ
rollback_config: RollbackConfig | NoneΒΆ
update_config: UpdateConfig | NoneΒΆ
class seguro.commands.scheduler.compose_model.Development(*, watch=None)[source]ΒΆ

Bases: BaseModel

Parameters:

watch (list[WatchItem] | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'watch': FieldInfo(annotation=Union[list[WatchItem], NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

watch: list[WatchItem] | NoneΒΆ
class seguro.commands.scheduler.compose_model.Device(*, capabilities=None, count=None, device_ids=None, driver=None, options=None)[source]ΒΆ

Bases: BaseModel

Parameters:
capabilities: ListOfStrings | NoneΒΆ
count: str | int | NoneΒΆ
device_ids: ListOfStrings | NoneΒΆ
driver: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'capabilities': FieldInfo(annotation=Union[ListOfStrings, NoneType], required=False, default=None), 'count': FieldInfo(annotation=Union[str, int, NoneType], required=False, default=None), 'device_ids': FieldInfo(annotation=Union[ListOfStrings, NoneType], required=False, default=None), 'driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'options': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

options: ListOrDict | NoneΒΆ
class seguro.commands.scheduler.compose_model.Devices(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[list[Device]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=list[Device], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: list[Device]ΒΆ
class seguro.commands.scheduler.compose_model.DiscreteResourceSpec(*, kind=None, value=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • kind (str | None)

  • value (float | None)

kind: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'kind': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'value': FieldInfo(annotation=Union[float, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

value: float | NoneΒΆ
class seguro.commands.scheduler.compose_model.EnvFile(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[Union[str, list[Union[str, EnvFile1]]]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=Union[str, list[Union[str, EnvFile1]]], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: str | list[str | EnvFile1]ΒΆ
class seguro.commands.scheduler.compose_model.EnvFile1(*, path, required=True)[source]ΒΆ

Bases: BaseModel

Parameters:
  • path (str)

  • required (bool | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'path': FieldInfo(annotation=str, required=True), 'required': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

path: strΒΆ
required: bool | NoneΒΆ
class seguro.commands.scheduler.compose_model.Extends(*, service, file=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • service (str)

  • file (str | None)

file: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'file': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'service': FieldInfo(annotation=str, required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

service: strΒΆ
class seguro.commands.scheduler.compose_model.External(*, name=None)[source]ΒΆ

Bases: BaseModel

Parameters:

name (str | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.External2(*, name=None)[source]ΒΆ

Bases: BaseModel

Parameters:

name (str | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.GenericResource(*, discrete_resource_spec=None)[source]ΒΆ

Bases: BaseModel

Parameters:

discrete_resource_spec (DiscreteResourceSpec | None)

discrete_resource_spec: DiscreteResourceSpec | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'discrete_resource_spec': FieldInfo(annotation=Union[DiscreteResourceSpec, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

class seguro.commands.scheduler.compose_model.GenericResources(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[list[GenericResource]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=list[GenericResource], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: list[GenericResource]ΒΆ
class seguro.commands.scheduler.compose_model.Healthcheck(*, disable=None, interval=None, retries=None, test=None, timeout=None, start_period=None, start_interval=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • disable (bool | None)

  • interval (str | None)

  • retries (float | None)

  • test (str | list[str] | None)

  • timeout (str | None)

  • start_period (str | None)

  • start_interval (str | None)

disable: bool | NoneΒΆ
interval: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'disable': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'interval': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'retries': FieldInfo(annotation=Union[float, NoneType], required=False, default=None), 'start_interval': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'start_period': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'test': FieldInfo(annotation=Union[str, list[str], NoneType], required=False, default=None), 'timeout': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

retries: float | NoneΒΆ
start_interval: str | NoneΒΆ
start_period: str | NoneΒΆ
test: str | list[str] | NoneΒΆ
timeout: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Include(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[Union[str, Include1]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=Union[str, Include1], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: str | Include1ΒΆ
class seguro.commands.scheduler.compose_model.Include1(*, path=None, env_file=None, project_directory=None)[source]ΒΆ

Bases: BaseModel

Parameters:
env_file: StringOrList | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'env_file': FieldInfo(annotation=Union[StringOrList, NoneType], required=False, default=None), 'path': FieldInfo(annotation=Union[StringOrList, NoneType], required=False, default=None), 'project_directory': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

path: StringOrList | NoneΒΆ
project_directory: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Ipam(*, driver=None, config=None, options=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • driver (str | None)

  • config (list[ConfigItem] | None)

  • options (dict[str, str] | None)

config: list[ConfigItem] | NoneΒΆ
driver: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'config': FieldInfo(annotation=Union[list[ConfigItem], NoneType], required=False, default=None), 'driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'options': FieldInfo(annotation=Union[dict[str, str], NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

options: dict[str, str] | NoneΒΆ
class seguro.commands.scheduler.compose_model.Limits(*, cpus=None, memory=None, pids=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • cpus (float | str | None)

  • memory (str | None)

  • pids (int | None)

cpus: float | str | NoneΒΆ
memory: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'cpus': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'memory': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'pids': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

pids: int | NoneΒΆ
class seguro.commands.scheduler.compose_model.ListOfStrings(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[list[str]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=list[str], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: list[str]ΒΆ
class seguro.commands.scheduler.compose_model.ListOrDict(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[Union[dict[str, Union[str, float, bool, NoneType]], ListOrDict1]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=Union[dict[str, Union[str, float, bool, NoneType]], ListOrDict1], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: dict[str, str | float | bool | None] | ListOrDict1ΒΆ
class seguro.commands.scheduler.compose_model.ListOrDict1(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[list[Any]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=list[Any], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: list[Any]ΒΆ
class seguro.commands.scheduler.compose_model.Logging(*, driver=None, options=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • driver (str | None)

  • options (dict[str, str | float | None] | None)

driver: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'options': FieldInfo(annotation=Union[dict[str, Union[str, float, NoneType]], NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

options: dict[str, str | float | None] | NoneΒΆ
class seguro.commands.scheduler.compose_model.Network(*, name=None, driver=None, driver_opts=None, ipam=None, external=None, internal=None, enable_ipv6=None, attachable=None, labels=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • name (str | None)

  • driver (str | None)

  • driver_opts (dict[str, str | float] | None)

  • ipam (Ipam | None)

  • external (External | None)

  • internal (bool | None)

  • enable_ipv6 (bool | None)

  • attachable (bool | None)

  • labels (ListOrDict | None)

attachable: bool | NoneΒΆ
driver: str | NoneΒΆ
driver_opts: dict[str, str | float] | NoneΒΆ
enable_ipv6: bool | NoneΒΆ
external: External | NoneΒΆ
internal: bool | NoneΒΆ
ipam: Ipam | NoneΒΆ
labels: ListOrDict | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'attachable': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'driver_opts': FieldInfo(annotation=Union[dict[str, Union[str, float]], NoneType], required=False, default=None), 'enable_ipv6': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'external': FieldInfo(annotation=Union[External, NoneType], required=False, default=None), 'internal': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'ipam': FieldInfo(annotation=Union[Ipam, NoneType], required=False, default=None), 'labels': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Networks(*, aliases=None, ipv4_address=None, ipv6_address=None, link_local_ips=None, mac_address=None, priority=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • aliases (ListOfStrings | None)

  • ipv4_address (str | None)

  • ipv6_address (str | None)

  • link_local_ips (ListOfStrings | None)

  • mac_address (str | None)

  • priority (float | None)

aliases: ListOfStrings | NoneΒΆ
ipv4_address: str | NoneΒΆ
ipv6_address: str | NoneΒΆ
mac_address: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'aliases': FieldInfo(annotation=Union[ListOfStrings, NoneType], required=False, default=None), 'ipv4_address': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'ipv6_address': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'link_local_ips': FieldInfo(annotation=Union[ListOfStrings, NoneType], required=False, default=None), 'mac_address': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'priority': FieldInfo(annotation=Union[float, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

priority: float | NoneΒΆ
class seguro.commands.scheduler.compose_model.Order(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]ΒΆ

Bases: Enum

START_FIRST = 'start-first'ΒΆ
STOP_FIRST = 'stop-first'ΒΆ
class seguro.commands.scheduler.compose_model.Placement(*, constraints=None, preferences=None, max_replicas_per_node=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • constraints (list[str] | None)

  • preferences (list[Preference] | None)

  • max_replicas_per_node (int | None)

constraints: list[str] | NoneΒΆ
max_replicas_per_node: int | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'constraints': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'max_replicas_per_node': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'preferences': FieldInfo(annotation=Union[list[Preference], NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

preferences: list[Preference] | NoneΒΆ
class seguro.commands.scheduler.compose_model.Ports(*, name=None, mode=None, host_ip=None, target=None, published=None, protocol=None, app_protocol=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • name (str | None)

  • mode (str | None)

  • host_ip (str | None)

  • target (int | None)

  • published (str | int | None)

  • protocol (str | None)

  • app_protocol (str | None)

app_protocol: str | NoneΒΆ
host_ip: str | NoneΒΆ
mode: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'app_protocol': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'host_ip': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'mode': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'protocol': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'published': FieldInfo(annotation=Union[str, int, NoneType], required=False, default=None), 'target': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ
protocol: str | NoneΒΆ
published: str | int | NoneΒΆ
target: int | NoneΒΆ
class seguro.commands.scheduler.compose_model.Preference(*, spread=None)[source]ΒΆ

Bases: BaseModel

Parameters:

spread (str | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'spread': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

spread: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.PullPolicy(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]ΒΆ

Bases: Enum

ALWAYS = 'always'ΒΆ
BUILD = 'build'ΒΆ
IF_NOT_PRESENT = 'if_not_present'ΒΆ
MISSING = 'missing'ΒΆ
NEVER = 'never'ΒΆ
class seguro.commands.scheduler.compose_model.Reservations(*, cpus=None, memory=None, generic_resources=None, devices=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • cpus (float | str | None)

  • memory (str | None)

  • generic_resources (GenericResources | None)

  • devices (Devices | None)

cpus: float | str | NoneΒΆ
devices: Devices | NoneΒΆ
generic_resources: GenericResources | NoneΒΆ
memory: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'cpus': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'devices': FieldInfo(annotation=Union[Devices, NoneType], required=False, default=None), 'generic_resources': FieldInfo(annotation=Union[GenericResources, NoneType], required=False, default=None), 'memory': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

class seguro.commands.scheduler.compose_model.Resources(*, limits=None, reservations=None)[source]ΒΆ

Bases: BaseModel

Parameters:
limits: Limits | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'limits': FieldInfo(annotation=Union[Limits, NoneType], required=False, default=None), 'reservations': FieldInfo(annotation=Union[Reservations, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

reservations: Reservations | NoneΒΆ
class seguro.commands.scheduler.compose_model.RestartPolicy(*, condition=None, delay=None, max_attempts=None, window=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • condition (str | None)

  • delay (str | None)

  • max_attempts (int | None)

  • window (str | None)

condition: str | NoneΒΆ
delay: str | NoneΒΆ
max_attempts: int | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'condition': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'delay': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'max_attempts': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'window': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

window: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.RollbackConfig(*, parallelism=None, delay=None, failure_action=None, monitor=None, max_failure_ratio=None, order=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • parallelism (int | None)

  • delay (str | None)

  • failure_action (str | None)

  • monitor (str | None)

  • max_failure_ratio (float | None)

  • order (Order | None)

delay: str | NoneΒΆ
failure_action: str | NoneΒΆ
max_failure_ratio: float | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'delay': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'failure_action': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'max_failure_ratio': FieldInfo(annotation=Union[float, NoneType], required=False, default=None), 'monitor': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'order': FieldInfo(annotation=Union[Order, NoneType], required=False, default=None), 'parallelism': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

monitor: str | NoneΒΆ
order: Order | NoneΒΆ
parallelism: int | NoneΒΆ
class seguro.commands.scheduler.compose_model.Secret(*, name=None, environment=None, file=None, external=None, labels=None, driver=None, driver_opts=None, template_driver=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • name (str | None)

  • environment (str | None)

  • file (str | None)

  • external (External2 | None)

  • labels (ListOrDict | None)

  • driver (str | None)

  • driver_opts (dict[str, str | float] | None)

  • template_driver (str | None)

driver: str | NoneΒΆ
driver_opts: dict[str, str | float] | NoneΒΆ
environment: str | NoneΒΆ
external: External2 | NoneΒΆ
file: str | NoneΒΆ
labels: ListOrDict | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'driver_opts': FieldInfo(annotation=Union[dict[str, Union[str, float]], NoneType], required=False, default=None), 'environment': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'external': FieldInfo(annotation=Union[External2, NoneType], required=False, default=None), 'file': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'labels': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'template_driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ
template_driver: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Selinux(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]ΒΆ

Bases: Enum

Z = 'z'ΒΆ
z_1 = 'Z'ΒΆ
class seguro.commands.scheduler.compose_model.Service(*, develop=None, deploy=None, annotations=None, attach=None, build=None, blkio_config=None, cap_add=None, cap_drop=None, cgroup=None, cgroup_parent=None, command=None, configs=None, container_name=None, cpu_count=None, cpu_percent=None, cpu_shares=None, cpu_quota=None, cpu_period=None, cpu_rt_period=None, cpu_rt_runtime=None, cpus=None, cpuset=None, credential_spec=None, depends_on=None, device_cgroup_rules=None, devices=None, dns=None, dns_opt=None, dns_search=None, domainname=None, entrypoint=None, env_file=None, environment=None, expose=None, extends=None, external_links=None, extra_hosts=None, group_add=None, healthcheck=None, hostname=None, image=None, init=None, ipc=None, isolation=None, labels=None, links=None, logging=None, mac_address=None, mem_limit=None, mem_reservation=None, mem_swappiness=None, memswap_limit=None, network_mode=None, networks=None, oom_kill_disable=None, oom_score_adj=None, pid=None, pids_limit=None, platform=None, ports=None, privileged=None, profiles=None, pull_policy=None, read_only=None, restart=None, runtime=None, scale=None, security_opt=None, shm_size=None, secrets=None, sysctls=None, stdin_open=None, stop_grace_period=None, stop_signal=None, storage_opt=None, tmpfs=None, tty=None, ulimits=None, user=None, uts=None, userns_mode=None, volumes=None, volumes_from=None, working_dir=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • develop (Development | None)

  • deploy (Deployment | None)

  • annotations (ListOrDict | None)

  • attach (bool | None)

  • build (str | Build | None)

  • blkio_config (BlkioConfig | None)

  • cap_add (list[str] | None)

  • cap_drop (list[str] | None)

  • cgroup (Cgroup | None)

  • cgroup_parent (str | None)

  • command (Command | None)

  • configs (ServiceConfigOrSecret | None)

  • container_name (str | None)

  • cpu_count (int | None)

  • cpu_percent (int | None)

  • cpu_shares (float | str | None)

  • cpu_quota (float | str | None)

  • cpu_period (float | str | None)

  • cpu_rt_period (float | str | None)

  • cpu_rt_runtime (float | str | None)

  • cpus (float | str | None)

  • cpuset (str | None)

  • credential_spec (CredentialSpec | None)

  • depends_on (ListOfStrings | dict[str, DependsOn] | None)

  • device_cgroup_rules (ListOfStrings | None)

  • devices (list[str] | None)

  • dns (StringOrList | None)

  • dns_opt (list[str] | None)

  • dns_search (StringOrList | None)

  • domainname (str | None)

  • entrypoint (Command | None)

  • env_file (EnvFile | None)

  • environment (ListOrDict | None)

  • expose (list[str | float] | None)

  • extends (str | Extends | None)

  • external_links (list[str] | None)

  • extra_hosts (ListOrDict | None)

  • group_add (list[str | float] | None)

  • healthcheck (Healthcheck | None)

  • hostname (str | None)

  • image (str | None)

  • init (bool | None)

  • ipc (str | None)

  • isolation (str | None)

  • labels (ListOrDict | None)

  • links (list[str] | None)

  • logging (Logging | None)

  • mac_address (str | None)

  • mem_limit (float | str | None)

  • mem_reservation (str | int | None)

  • mem_swappiness (int | None)

  • memswap_limit (float | str | None)

  • network_mode (str | None)

  • networks (ListOfStrings | dict[str, Networks | None] | None)

  • oom_kill_disable (bool | None)

  • oom_score_adj (int | None)

  • pid (str | None)

  • pids_limit (float | str | None)

  • platform (str | None)

  • ports (list[float | str | Ports] | None)

  • privileged (bool | None)

  • profiles (ListOfStrings | None)

  • pull_policy (PullPolicy | None)

  • read_only (bool | None)

  • restart (str | None)

  • runtime (str | None)

  • scale (int | None)

  • security_opt (list[str] | None)

  • shm_size (float | str | None)

  • secrets (ServiceConfigOrSecret | None)

  • sysctls (ListOrDict | None)

  • stdin_open (bool | None)

  • stop_grace_period (str | None)

  • stop_signal (str | None)

  • storage_opt (dict[str, Any] | None)

  • tmpfs (StringOrList | None)

  • tty (bool | None)

  • ulimits (Ulimits | None)

  • user (str | None)

  • uts (str | None)

  • userns_mode (str | None)

  • volumes (list[str | Volumes] | None)

  • volumes_from (list[str] | None)

  • working_dir (str | None)

annotations: ListOrDict | NoneΒΆ
attach: bool | NoneΒΆ
blkio_config: BlkioConfig | NoneΒΆ
build: str | Build | NoneΒΆ
cap_add: list[str] | NoneΒΆ
cap_drop: list[str] | NoneΒΆ
cgroup: Cgroup | NoneΒΆ
cgroup_parent: str | NoneΒΆ
command: Command | NoneΒΆ
configs: ServiceConfigOrSecret | NoneΒΆ
container_name: str | NoneΒΆ
cpu_count: int | NoneΒΆ
cpu_percent: int | NoneΒΆ
cpu_period: float | str | NoneΒΆ
cpu_quota: float | str | NoneΒΆ
cpu_rt_period: float | str | NoneΒΆ
cpu_rt_runtime: float | str | NoneΒΆ
cpu_shares: float | str | NoneΒΆ
cpus: float | str | NoneΒΆ
cpuset: str | NoneΒΆ
credential_spec: CredentialSpec | NoneΒΆ
depends_on: ListOfStrings | dict[str, DependsOn] | NoneΒΆ
deploy: Deployment | NoneΒΆ
develop: Development | NoneΒΆ
device_cgroup_rules: ListOfStrings | NoneΒΆ
devices: list[str] | NoneΒΆ
dns: StringOrList | NoneΒΆ
dns_opt: list[str] | NoneΒΆ
domainname: str | NoneΒΆ
entrypoint: Command | NoneΒΆ
env_file: EnvFile | NoneΒΆ
environment: ListOrDict | NoneΒΆ
expose: list[str | float] | NoneΒΆ
extends: str | Extends | NoneΒΆ
extra_hosts: ListOrDict | NoneΒΆ
group_add: list[str | float] | NoneΒΆ
healthcheck: Healthcheck | NoneΒΆ
hostname: str | NoneΒΆ
image: str | NoneΒΆ
init: bool | NoneΒΆ
ipc: str | NoneΒΆ
isolation: str | NoneΒΆ
labels: ListOrDict | NoneΒΆ
logging: Logging | NoneΒΆ
mac_address: str | NoneΒΆ
mem_limit: float | str | NoneΒΆ
mem_reservation: str | int | NoneΒΆ
mem_swappiness: int | NoneΒΆ
memswap_limit: float | str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'annotations': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'attach': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'blkio_config': FieldInfo(annotation=Union[BlkioConfig, NoneType], required=False, default=None), 'build': FieldInfo(annotation=Union[str, Build, NoneType], required=False, default=None), 'cap_add': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'cap_drop': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'cgroup': FieldInfo(annotation=Union[Cgroup, NoneType], required=False, default=None), 'cgroup_parent': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'command': FieldInfo(annotation=Union[Command, NoneType], required=False, default=None), 'configs': FieldInfo(annotation=Union[ServiceConfigOrSecret, NoneType], required=False, default=None), 'container_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'cpu_count': FieldInfo(annotation=Union[int, NoneType], required=False, default=None, metadata=[Ge(ge=0)]), 'cpu_percent': FieldInfo(annotation=Union[int, NoneType], required=False, default=None, metadata=[Ge(ge=0), Le(le=100)]), 'cpu_period': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'cpu_quota': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'cpu_rt_period': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'cpu_rt_runtime': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'cpu_shares': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'cpus': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'cpuset': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'credential_spec': FieldInfo(annotation=Union[CredentialSpec, NoneType], required=False, default=None), 'depends_on': FieldInfo(annotation=Union[ListOfStrings, dict[str, DependsOn], NoneType], required=False, default=None), 'deploy': FieldInfo(annotation=Union[Deployment, NoneType], required=False, default=None), 'develop': FieldInfo(annotation=Union[Development, NoneType], required=False, default=None), 'device_cgroup_rules': FieldInfo(annotation=Union[ListOfStrings, NoneType], required=False, default=None), 'devices': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'dns': FieldInfo(annotation=Union[StringOrList, NoneType], required=False, default=None), 'dns_opt': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'dns_search': FieldInfo(annotation=Union[StringOrList, NoneType], required=False, default=None), 'domainname': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'entrypoint': FieldInfo(annotation=Union[Command, NoneType], required=False, default=None), 'env_file': FieldInfo(annotation=Union[EnvFile, NoneType], required=False, default=None), 'environment': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'expose': FieldInfo(annotation=Union[list[Union[str, float]], NoneType], required=False, default=None), 'extends': FieldInfo(annotation=Union[str, Extends, NoneType], required=False, default=None), 'external_links': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'extra_hosts': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'group_add': FieldInfo(annotation=Union[list[Union[str, float]], NoneType], required=False, default=None), 'healthcheck': FieldInfo(annotation=Union[Healthcheck, NoneType], required=False, default=None), 'hostname': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'image': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'init': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'ipc': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'isolation': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'labels': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'links': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'logging': FieldInfo(annotation=Union[Logging, NoneType], required=False, default=None), 'mac_address': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'mem_limit': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'mem_reservation': FieldInfo(annotation=Union[str, int, NoneType], required=False, default=None), 'mem_swappiness': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'memswap_limit': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'network_mode': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'networks': FieldInfo(annotation=Union[ListOfStrings, dict[str, Union[Networks, NoneType]], NoneType], required=False, default=None), 'oom_kill_disable': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'oom_score_adj': FieldInfo(annotation=Union[int, NoneType], required=False, default=None, metadata=[Ge(ge=-1000), Le(le=1000)]), 'pid': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'pids_limit': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'platform': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'ports': FieldInfo(annotation=Union[list[Union[float, str, Ports]], NoneType], required=False, default=None), 'privileged': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'profiles': FieldInfo(annotation=Union[ListOfStrings, NoneType], required=False, default=None), 'pull_policy': FieldInfo(annotation=Union[PullPolicy, NoneType], required=False, default=None), 'read_only': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'restart': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'runtime': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'scale': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'secrets': FieldInfo(annotation=Union[ServiceConfigOrSecret, NoneType], required=False, default=None), 'security_opt': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'shm_size': FieldInfo(annotation=Union[float, str, NoneType], required=False, default=None), 'stdin_open': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'stop_grace_period': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'stop_signal': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'storage_opt': FieldInfo(annotation=Union[dict[str, Any], NoneType], required=False, default=None), 'sysctls': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'tmpfs': FieldInfo(annotation=Union[StringOrList, NoneType], required=False, default=None), 'tty': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'ulimits': FieldInfo(annotation=Union[Ulimits, NoneType], required=False, default=None), 'user': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'userns_mode': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'uts': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'volumes': FieldInfo(annotation=Union[list[Union[str, Volumes]], NoneType], required=False, default=None), 'volumes_from': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'working_dir': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

network_mode: str | NoneΒΆ
networks: ListOfStrings | dict[str, Networks | None] | NoneΒΆ
oom_kill_disable: bool | NoneΒΆ
oom_score_adj: int | NoneΒΆ
pid: str | NoneΒΆ
pids_limit: float | str | NoneΒΆ
platform: str | NoneΒΆ
ports: list[float | str | Ports] | NoneΒΆ
privileged: bool | NoneΒΆ
profiles: ListOfStrings | NoneΒΆ
pull_policy: PullPolicy | NoneΒΆ
read_only: bool | NoneΒΆ
restart: str | NoneΒΆ
runtime: str | NoneΒΆ
scale: int | NoneΒΆ
secrets: ServiceConfigOrSecret | NoneΒΆ
security_opt: list[str] | NoneΒΆ
shm_size: float | str | NoneΒΆ
stdin_open: bool | NoneΒΆ
stop_grace_period: str | NoneΒΆ
stop_signal: str | NoneΒΆ
storage_opt: dict[str, Any] | NoneΒΆ
sysctls: ListOrDict | NoneΒΆ
tmpfs: StringOrList | NoneΒΆ
tty: bool | NoneΒΆ
ulimits: Ulimits | NoneΒΆ
user: str | NoneΒΆ
userns_mode: str | NoneΒΆ
uts: str | NoneΒΆ
volumes: list[str | Volumes] | NoneΒΆ
volumes_from: list[str] | NoneΒΆ
working_dir: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.ServiceConfigOrSecret(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[list[Union[str, ServiceConfigOrSecret1]]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=list[Union[str, ServiceConfigOrSecret1]], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: list[str | ServiceConfigOrSecret1]ΒΆ
class seguro.commands.scheduler.compose_model.ServiceConfigOrSecret1(*, source=None, target=None, uid=None, gid=None, mode=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • source (str | None)

  • target (str | None)

  • uid (str | None)

  • gid (str | None)

  • mode (float | None)

gid: str | NoneΒΆ
mode: float | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'gid': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'mode': FieldInfo(annotation=Union[float, NoneType], required=False, default=None), 'source': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'target': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'uid': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

source: str | NoneΒΆ
target: str | NoneΒΆ
uid: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Size(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[int]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=int, required=True, metadata=[Ge(ge=0)])}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: intΒΆ
class seguro.commands.scheduler.compose_model.StringOrList(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[Union[str, ListOfStrings]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=Union[str, ListOfStrings], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: str | ListOfStringsΒΆ
class seguro.commands.scheduler.compose_model.Tmpfs(*, size=None, mode=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • size (Size | str | None)

  • mode (float | None)

mode: float | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'mode': FieldInfo(annotation=Union[float, NoneType], required=False, default=None), 'size': FieldInfo(annotation=Union[Size, str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

size: Size | str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Ulimits(root=PydanticUndefined)[source]ΒΆ

Bases: RootModel[dict[str, Union[int, Ulimits1]]]

Parameters:

root (RootModelRootType)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'root': FieldInfo(annotation=dict[str, Union[int, Ulimits1]], required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

root: dict[str, int | Ulimits1]ΒΆ
class seguro.commands.scheduler.compose_model.Ulimits1(*, hard, soft)[source]ΒΆ

Bases: BaseModel

Parameters:
  • hard (int)

  • soft (int)

hard: intΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'hard': FieldInfo(annotation=int, required=True), 'soft': FieldInfo(annotation=int, required=True)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

soft: intΒΆ
class seguro.commands.scheduler.compose_model.UpdateConfig(*, parallelism=None, delay=None, failure_action=None, monitor=None, max_failure_ratio=None, order=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • parallelism (int | None)

  • delay (str | None)

  • failure_action (str | None)

  • monitor (str | None)

  • max_failure_ratio (float | None)

  • order (Order | None)

delay: str | NoneΒΆ
failure_action: str | NoneΒΆ
max_failure_ratio: float | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'delay': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'failure_action': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'max_failure_ratio': FieldInfo(annotation=Union[float, NoneType], required=False, default=None), 'monitor': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'order': FieldInfo(annotation=Union[Order, NoneType], required=False, default=None), 'parallelism': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

monitor: str | NoneΒΆ
order: Order | NoneΒΆ
parallelism: int | NoneΒΆ
class seguro.commands.scheduler.compose_model.Volume(*, name=None, driver=None, driver_opts=None, external=None, labels=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • name (str | None)

  • driver (str | None)

  • driver_opts (dict[str, str | float] | None)

  • external (External | None)

  • labels (ListOrDict | None)

driver: str | NoneΒΆ
driver_opts: dict[str, str | float] | NoneΒΆ
external: External | NoneΒΆ
labels: ListOrDict | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'driver': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'driver_opts': FieldInfo(annotation=Union[dict[str, Union[str, float]], NoneType], required=False, default=None), 'external': FieldInfo(annotation=Union[External, NoneType], required=False, default=None), 'labels': FieldInfo(annotation=Union[ListOrDict, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Volume1(*, nocopy=None, subpath=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • nocopy (bool | None)

  • subpath (str | None)

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'nocopy': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'subpath': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

nocopy: bool | NoneΒΆ
subpath: str | NoneΒΆ
class seguro.commands.scheduler.compose_model.Volumes(*, type, source=None, target=None, read_only=None, consistency=None, bind=None, volume=None, tmpfs=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • type (str)

  • source (str | None)

  • target (str | None)

  • read_only (bool | None)

  • consistency (str | None)

  • bind (Bind | None)

  • volume (Volume1 | None)

  • tmpfs (Tmpfs | None)

bind: Bind | NoneΒΆ
consistency: str | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'bind': FieldInfo(annotation=Union[Bind, NoneType], required=False, default=None), 'consistency': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'read_only': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'source': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'target': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'tmpfs': FieldInfo(annotation=Union[Tmpfs, NoneType], required=False, default=None), 'type': FieldInfo(annotation=str, required=True), 'volume': FieldInfo(annotation=Union[Volume1, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

read_only: bool | NoneΒΆ
source: str | NoneΒΆ
target: str | NoneΒΆ
tmpfs: Tmpfs | NoneΒΆ
type: strΒΆ
volume: Volume1 | NoneΒΆ
class seguro.commands.scheduler.compose_model.WatchItem(*, ignore=None, path=None, action=None, target=None)[source]ΒΆ

Bases: BaseModel

Parameters:
  • ignore (list[str] | None)

  • path (str | None)

  • action (Action | None)

  • target (str | None)

action: Action | NoneΒΆ
ignore: list[str] | NoneΒΆ
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}ΒΆ

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}ΒΆ

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'action': FieldInfo(annotation=Union[Action, NoneType], required=False, default=None), 'ignore': FieldInfo(annotation=Union[list[str], NoneType], required=False, default=None), 'path': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'target': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}ΒΆ

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

path: str | NoneΒΆ
target: str | NoneΒΆ