@@ -35,207 +35,6 @@ class RelatedBundlesMetadata(TypedDict):
3535 url : str
3636
3737
38- # Start of the Payloads Part
39-
40- # try inheritance from other payloads
41-
42- PayloadTags = Literal [
43- 'AddRequestPayload' ,
44- 'RmRequestPayload' ,
45- 'RegenerateBundlePayload' ,
46- 'RegenerateBundleBatchPayload' ,
47- 'AddRmBatchPayload' ,
48- 'MergeIndexImagesPayload' ,
49- 'CreateEmptyIndexPayload' ,
50- 'FbcOperationRequestPayload' ,
51- ]
52-
53-
54- PossiblePayloadParameters = Sequence [
55- Literal [
56- 'add_arches' ,
57- 'annotations' ,
58- 'batch' ,
59- 'binary_image' ,
60- 'build_requests' ,
61- 'build_tags' ,
62- 'bundles' ,
63- 'cnr_token' ,
64- 'check_related_images' ,
65- 'deprecation_list' ,
66- 'distribution_scope' ,
67- 'force_backport' ,
68- 'from_bundle_image' ,
69- 'from_index' ,
70- 'graph_update_mode' ,
71- 'labels' ,
72- 'operators' ,
73- 'organization' ,
74- 'output_fbc' ,
75- 'overwrite_from_index' ,
76- 'overwrite_from_index_token' ,
77- 'registry_auths' ,
78- 'related_bundles' ,
79- 'source_from_index' ,
80- 'target_index' ,
81- 'user' ,
82- ]
83- ]
84-
85-
86- class AddRequestPayload (TypedDict ):
87- """Datastructure of the request to /builds/add API point."""
88-
89- add_arches : NotRequired [List [str ]]
90- binary_image : NotRequired [str ]
91- build_tags : NotRequired [List [str ]]
92- bundles : List [str ]
93- cnr_token : NotRequired [str ]
94- check_related_images : NotRequired [bool ]
95- deprecation_list : NotRequired [List [str ]]
96- distribution_scope : NotRequired [str ]
97- force_backport : NotRequired [bool ]
98- from_index : NotRequired [str ]
99- graph_update_mode : NotRequired [GRAPH_MODE_LITERAL ]
100- organization : NotRequired [str ]
101- overwrite_from_index : NotRequired [bool ]
102- overwrite_from_index_token : NotRequired [str ]
103-
104-
105- class RmRequestPayload (TypedDict ):
106- """Datastructure of the request to /builds/rm API point."""
107-
108- add_arches : NotRequired [List [str ]]
109- binary_image : NotRequired [str ]
110- build_tags : NotRequired [List [str ]]
111- distribution_scope : NotRequired [str ]
112- from_index : str
113- operators : List [str ]
114- overwrite_from_index : NotRequired [bool ]
115- overwrite_from_index_token : Optional [str ]
116-
117-
118- class FbcOperationRequestPayload (TypedDict ):
119- """Datastructure of the request to /builds/fbc-operation API point."""
120-
121- fbc_fragment : str
122- from_index : str
123- binary_image : NotRequired [str ]
124- build_tags : NotRequired [List [str ]]
125- add_arches : NotRequired [List [str ]]
126- overwrite_from_index : NotRequired [bool ]
127- overwrite_from_index_token : NotRequired [str ]
128- batch : NotRequired [str ]
129- distribution_scope : NotRequired [str ]
130- user : NotRequired [str ]
131-
132-
133- class RegenerateBundlePayload (TypedDict ):
134- """Datastructure of the request to /builds/regenerate-bundle API point."""
135-
136- from_bundle_image : str
137- organization : NotRequired [str ]
138- registry_auths : NotRequired [Dict [str , Any ]]
139- related_bundles : NotRequired [RelatedBundlesMetadata ]
140- user : NotRequired [str ]
141- batch : NotRequired [str ]
142-
143-
144- class RegenerateBundleBatchPayload (TypedDict ):
145- """Datastructure of the request to /builds/regenerate-bundle-batch API point."""
146-
147- annotations : NotRequired [Dict [str , Any ]]
148- build_requests : List [RegenerateBundlePayload ]
149-
150-
151- class AddRmBatchPayload (TypedDict ):
152- """Datastructure of the request to /builds/add-rm-batch API point."""
153-
154- annotations : NotRequired [Dict [str , Any ]]
155- build_requests : List [Union [AddRequestPayload , RmRequestPayload ]]
156-
157-
158- class MergeIndexImagesPayload (TypedDict ):
159- """Datastructure of the request to /builds/merge-index-image API point."""
160-
161- binary_image : NotRequired [str ]
162- build_tags : NotRequired [List [str ]]
163- deprecation_list : NotRequired [List [str ]]
164- distribution_scope : NotRequired [str ]
165- graph_update_mode : NotRequired [GRAPH_MODE_LITERAL ]
166- overwrite_target_index : NotRequired [bool ]
167- overwrite_target_index_token : NotRequired [str ]
168- source_from_index : str
169- target_index : NotRequired [str ]
170- batch : NotRequired [str ]
171- user : NotRequired [str ]
172-
173-
174- class CreateEmptyIndexPayload (TypedDict ):
175- """Datastructure of the request to /builds/create-empty-index API point."""
176-
177- binary_image : NotRequired [str ]
178- from_index : str
179- labels : NotRequired [Dict [str , str ]]
180- output_fbc : NotRequired [bool ]
181-
182-
183- class RecursiveRelatedBundlesRequestPayload (TypedDict ):
184- """Datastructure of the request to /builds/recursive-related-bundles API point."""
185-
186- batch : NotRequired [int ]
187- organization : NotRequired [str ]
188- parent_bundle_image : str
189- registry_auths : NotRequired [Dict [str , Any ]]
190- user : NotRequired [str ]
191-
192-
193- class RequestPayload (TypedDict ):
194- """Datastructure with all the possible keys that can API points receive."""
195-
196- add_arches : NotRequired [List [str ]]
197- annotations : NotRequired [Dict [str , Any ]]
198- batch : NotRequired [int ]
199- binary_image : NotRequired [str ]
200- build_requests : NotRequired [
201- List [Union [AddRequestPayload , RmRequestPayload , RegenerateBundlePayload ]]
202- ]
203- build_tags : NotRequired [List [str ]]
204- bundles : NotRequired [Optional [List [str ]]]
205- cnr_token : NotRequired [str ]
206- check_related_images : NotRequired [bool ]
207- deprecation_list : NotRequired [List [str ]]
208- distribution_scope : NotRequired [str ]
209- fbc_fragment : NotRequired [bool ]
210- force_backport : NotRequired [bool ]
211- from_bundle_image : NotRequired [str ]
212- from_index : NotRequired [str ]
213- labels : NotRequired [Dict [str , str ]]
214- operators : NotRequired [List [str ]]
215- organization : NotRequired [str ]
216- output_fbc : NotRequired [bool ]
217- overwrite_from_index : NotRequired [bool ]
218- overwrite_from_index_token : NotRequired [str ]
219- overwrite_target_index : NotRequired [bool ]
220- overwrite_target_index_token : NotRequired [str ]
221- registry_auths : NotRequired [Dict [str , Any ]]
222- related_bundles : NotRequired [RelatedBundlesMetadata ]
223- source_from_index : NotRequired [str ]
224- target_index : NotRequired [str ]
225- user : NotRequired [str ]
226-
227-
228- PayloadTypesUnion = Union [
229- AddRequestPayload ,
230- CreateEmptyIndexPayload ,
231- FbcOperationRequestPayload ,
232- MergeIndexImagesPayload ,
233- RecursiveRelatedBundlesRequestPayload ,
234- RegenerateBundlePayload ,
235- RmRequestPayload ,
236- ]
237-
238- # End of the Payloads Part
23938# Start of the RequestResponses Part
24039
24140
0 commit comments