Skip to content

Commit e5726af

Browse files
committed
Modify enum and nullable values
1 parent 0d0cbb8 commit e5726af

10 files changed

Lines changed: 13 additions & 37 deletions

File tree

.openapi-generator/FILES

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,4 @@ setup.cfg
259259
setup.py
260260
test-requirements.txt
261261
test/__init__.py
262-
test/test_authentication_api.py
263-
test/test_device_decommission.py
264-
test/test_device_decommission_target_type.py
265-
test/test_device_lifecycle_hook_type.py
266-
test/test_device_lifecycle_status.py
267-
test/test_device_lifecycle_status_type.py
268-
test/test_device_update_policy_spec.py
269-
test/test_hook_action_run.py
270-
test/test_hook_condition.py
271-
test/test_hook_condition_path_op.py
272-
test/test_update_schedule.py
273262
tox.ini

api/v1alpha1/openapi.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,7 +3124,6 @@ components:
31243124
- apiVersion
31253125
- kind
31263126
- metadata
3127-
- spec
31283127
description: Repository represents a Git repository or an HTTP endpoint.
31293128
HttpConfig:
31303129
type: object
@@ -4467,9 +4466,6 @@ components:
44674466
description: A summary of the devices in the fleet returned when fetching a single Fleet.
44684467
required:
44694468
- total
4470-
- applicationStatus
4471-
- summaryStatus
4472-
- updateStatus
44734469
properties:
44744470
total:
44754471
type: integer
@@ -4713,12 +4709,10 @@ components:
47134709
type: string
47144710
description: Type of condition in CamelCase.
47154711
enum:
4716-
- 'Approved' # EnrollmentRequest
4717-
- 'Approved' # CertificateSigningRequest
4712+
- 'Approved' # EnrollmentRequest and CertificateSigningRequest
47184713
- 'Denied' # CertificateSigningRequest
47194714
- 'Failed' # CertificateSigningRequest
4720-
- 'Accessible' # Repository
4721-
- 'Accessible' # ResourceSync
4715+
- 'Accessible' # Repository and ResourceSync
47224716
- 'ResourceParsed' # ResourceSync
47234717
- 'Synced' # ResourceSync
47244718
- 'OverlappingSelectors' # Fleet
@@ -4772,7 +4766,6 @@ components:
47724766
- apiVersion
47734767
- kind
47744768
- metadata
4775-
- spec
47764769
description: 'CertificateSigningRequest represents a request for a signed certificate from the CA.'
47774770
CertificateSigningRequestList:
47784771
type: object

docs/CertificateSigningRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. |
1010
**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. |
1111
**metadata** | [**ObjectMeta**](ObjectMeta.md) | |
12-
**spec** | [**CertificateSigningRequestSpec**](CertificateSigningRequestSpec.md) | |
12+
**spec** | [**CertificateSigningRequestSpec**](CertificateSigningRequestSpec.md) | | [optional]
1313
**status** | [**CertificateSigningRequestStatus**](CertificateSigningRequestStatus.md) | | [optional]
1414

1515
## Example

docs/ConditionType.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ Type of condition in CamelCase.
66

77
* `APPROVED` (value: `'Approved'`)
88

9-
* `APPROVED` (value: `'Approved'`)
10-
119
* `DENIED` (value: `'Denied'`)
1210

1311
* `FAILED` (value: `'Failed'`)
1412

1513
* `ACCESSIBLE` (value: `'Accessible'`)
1614

17-
* `ACCESSIBLE` (value: `'Accessible'`)
18-
1915
* `RESOURCEPARSED` (value: `'ResourceParsed'`)
2016

2117
* `SYNCED` (value: `'Synced'`)

docs/DevicesSummary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ A summary of the devices in the fleet returned when fetching a single Fleet.
77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**total** | **int** | The total number of devices in the fleet. |
10-
**application_status** | **Dict[str, int]** | A breakdown of the devices in the fleet by \"application\" status. |
11-
**summary_status** | **Dict[str, int]** | A breakdown of the devices in the fleet by \"summary\" status. |
12-
**update_status** | **Dict[str, int]** | A breakdown of the devices in the fleet by \"updated\" status. |
10+
**application_status** | **Dict[str, int]** | A breakdown of the devices in the fleet by \"application\" status. | [optional]
11+
**summary_status** | **Dict[str, int]** | A breakdown of the devices in the fleet by \"summary\" status. | [optional]
12+
**update_status** | **Dict[str, int]** | A breakdown of the devices in the fleet by \"updated\" status. | [optional]
1313

1414
## Example
1515

docs/Repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources. |
1010
**kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds. |
1111
**metadata** | [**ObjectMeta**](ObjectMeta.md) | |
12-
**spec** | [**RepositorySpec**](RepositorySpec.md) | |
12+
**spec** | [**RepositorySpec**](RepositorySpec.md) | | [optional]
1313
**status** | [**RepositoryStatus**](RepositoryStatus.md) | | [optional]
1414

1515
## Example

flightctl/models/certificate_signing_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CertificateSigningRequest(BaseModel):
3333
api_version: StrictStr = Field(description="APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.", alias="apiVersion")
3434
kind: StrictStr = Field(description="Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.")
3535
metadata: ObjectMeta
36-
spec: CertificateSigningRequestSpec
36+
spec: Optional[CertificateSigningRequestSpec] = None
3737
status: Optional[CertificateSigningRequestStatus] = None
3838
__properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"]
3939

flightctl/models/condition_type.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ class ConditionType(str, Enum):
2828
allowed enum values
2929
"""
3030
APPROVED = 'Approved'
31-
APPROVED = 'Approved'
3231
DENIED = 'Denied'
3332
FAILED = 'Failed'
3433
ACCESSIBLE = 'Accessible'
35-
ACCESSIBLE = 'Accessible'
3634
RESOURCEPARSED = 'ResourceParsed'
3735
SYNCED = 'Synced'
3836
OVERLAPPINGSELECTORS = 'OverlappingSelectors'

flightctl/models/devices_summary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import json
2020

2121
from pydantic import BaseModel, ConfigDict, Field, StrictInt
22-
from typing import Any, ClassVar, Dict, List
22+
from typing import Any, ClassVar, Dict, List, Optional
2323
from typing import Optional, Set
2424
from typing_extensions import Self
2525

@@ -28,9 +28,9 @@ class DevicesSummary(BaseModel):
2828
A summary of the devices in the fleet returned when fetching a single Fleet.
2929
""" # noqa: E501
3030
total: StrictInt = Field(description="The total number of devices in the fleet.")
31-
application_status: Dict[str, StrictInt] = Field(description="A breakdown of the devices in the fleet by \"application\" status.", alias="applicationStatus")
32-
summary_status: Dict[str, StrictInt] = Field(description="A breakdown of the devices in the fleet by \"summary\" status.", alias="summaryStatus")
33-
update_status: Dict[str, StrictInt] = Field(description="A breakdown of the devices in the fleet by \"updated\" status.", alias="updateStatus")
31+
application_status: Optional[Dict[str, StrictInt]] = Field(default=None, description="A breakdown of the devices in the fleet by \"application\" status.", alias="applicationStatus")
32+
summary_status: Optional[Dict[str, StrictInt]] = Field(default=None, description="A breakdown of the devices in the fleet by \"summary\" status.", alias="summaryStatus")
33+
update_status: Optional[Dict[str, StrictInt]] = Field(default=None, description="A breakdown of the devices in the fleet by \"updated\" status.", alias="updateStatus")
3434
__properties: ClassVar[List[str]] = ["total", "applicationStatus", "summaryStatus", "updateStatus"]
3535

3636
model_config = ConfigDict(

flightctl/models/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Repository(BaseModel):
3333
api_version: StrictStr = Field(description="APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.", alias="apiVersion")
3434
kind: StrictStr = Field(description="Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.")
3535
metadata: ObjectMeta
36-
spec: RepositorySpec
36+
spec: Optional[RepositorySpec] = None
3737
status: Optional[RepositoryStatus] = None
3838
__properties: ClassVar[List[str]] = ["apiVersion", "kind", "metadata", "spec", "status"]
3939

0 commit comments

Comments
 (0)