diff --git a/.gitignore b/.gitignore index 9e274a9..65b06b9 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,3 @@ target/ # Ipython Notebook .ipynb_checkpoints - -# Build artifacts -api/bundled/ diff --git a/flightctl/models/image_volume_source.py b/flightctl/models/image_volume_source.py index 63590ae..a80925c 100644 --- a/flightctl/models/image_volume_source.py +++ b/flightctl/models/image_volume_source.py @@ -29,7 +29,7 @@ class ImageVolumeSource(BaseModel): Describes the source of an OCI-compliant image or artifact. """ # noqa: E501 reference: StrictStr = Field(description="Reference to an OCI-compliant image or artifact in a registry. This may be a container image or another type of OCI artifact, as long as it conforms to the OCI image specification.") - pull_policy: Optional[ImagePullPolicy] = Field(default=ImagePullPolicy.PullIfNotPresent, alias="pullPolicy") + pull_policy: Optional[ImagePullPolicy] = Field(default=ImagePullPolicy.NUMBER_PullIfNotPresent, alias="pullPolicy") __properties: ClassVar[List[str]] = ["reference", "pullPolicy"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "reference": obj.get("reference"), - "pullPolicy": obj.get("pullPolicy") if obj.get("pullPolicy") is not None else ImagePullPolicy.PullIfNotPresent + "pullPolicy": obj.get("pullPolicy") if obj.get("pullPolicy") is not None else ImagePullPolicy.NUMBER_PullIfNotPresent }) return _obj diff --git a/flightctl/models/resource_sync_spec.py b/flightctl/models/resource_sync_spec.py index d87933b..859f4db 100644 --- a/flightctl/models/resource_sync_spec.py +++ b/flightctl/models/resource_sync_spec.py @@ -29,7 +29,7 @@ class ResourceSyncSpec(BaseModel): """ ResourceSyncSpec describes the file(s) to sync from a repository. """ # noqa: E501 - type: Optional[ResourceSyncType] = ResourceSyncType.ResourceSyncTypeFleet + type: Optional[ResourceSyncType] = ResourceSyncType.NUMBER_ResourceSyncTypeFleet repository: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The name of the repository resource to use as the sync source.") target_revision: Annotated[str, Field(min_length=1, strict=True, max_length=244)] = Field(description="The desired revision in the repository.", alias="targetRevision") path: Annotated[str, Field(min_length=0, strict=True, max_length=2048)] = Field(description="The path of a file or directory in the repository. If a directory, the directory should contain only resource definitions with no subdirectories. Each file should contain the definition of one or more resources.") @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type") if obj.get("type") is not None else ResourceSyncType.ResourceSyncTypeFleet, + "type": obj.get("type") if obj.get("type") is not None else ResourceSyncType.NUMBER_ResourceSyncTypeFleet, "repository": obj.get("repository"), "targetRevision": obj.get("targetRevision"), "path": obj.get("path") diff --git a/flightctl/v1alpha1/models/catalog_item_spec.py b/flightctl/v1alpha1/models/catalog_item_spec.py index 447d198..4df1ce2 100644 --- a/flightctl/v1alpha1/models/catalog_item_spec.py +++ b/flightctl/v1alpha1/models/catalog_item_spec.py @@ -34,7 +34,7 @@ class CatalogItemSpec(BaseModel): """ CatalogItemSpec defines the configuration for a catalog item. """ # noqa: E501 - category: Optional[CatalogItemCategory] = CatalogItemCategory.CatalogItemCategoryApplication + category: Optional[CatalogItemCategory] = CatalogItemCategory.NUMBER_CatalogItemCategoryApplication type: CatalogItemType artifacts: Annotated[List[CatalogItemArtifact], Field(min_length=1)] = Field(description="Artifact definitions for this catalog item. Defined once; version references resolve each artifact independently. Type must be unique within the list.") versions: List[CatalogItemVersion] = Field(description="Available versions using Cincinnati model. Use replaces for primary edge, skips when stable channel skips intermediate versions.") @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "category": obj.get("category") if obj.get("category") is not None else CatalogItemCategory.CatalogItemCategoryApplication, + "category": obj.get("category") if obj.get("category") is not None else CatalogItemCategory.NUMBER_CatalogItemCategoryApplication, "type": obj.get("type"), "artifacts": [CatalogItemArtifact.from_dict(_item) for _item in obj["artifacts"]] if obj.get("artifacts") is not None else None, "versions": [CatalogItemVersion.from_dict(_item) for _item in obj["versions"]] if obj.get("versions") is not None else None, diff --git a/pyproject.toml b/pyproject.toml index da10c69..abd5652 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "flightctl-client" +name = "flightctl" version = "1.2.1" description = "Flight Control API" authors = [ @@ -77,13 +77,6 @@ disallow_any_generics = true ### This one can be tricky to get passing if you use a lot of untyped libraries #warn_return_any = true -[[tool.mypy.overrides]] -module = [ - "flightctl.v1alpha1.test.*", - "flightctl.imagebuilder.test.*", -] -ignore_errors = true - [[tool.mypy.overrides]] module = [ "flightctl.configuration",