Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,3 @@ target/

# Ipython Notebook
.ipynb_checkpoints

# Build artifacts
api/bundled/
4 changes: 2 additions & 2 deletions flightctl/models/image_volume_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions flightctl/models/resource_sync_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions flightctl/v1alpha1/models/catalog_item_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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,
Expand Down
9 changes: 1 addition & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "flightctl-client"
name = "flightctl"
version = "1.2.1"
description = "Flight Control API"
authors = [
Expand Down Expand Up @@ -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",
Expand Down
Loading