Skip to content

Commit 96424a9

Browse files
OAS Update
1 parent 7f06203 commit 96424a9

1 file changed

Lines changed: 101 additions & 96 deletions

File tree

‎services/functions/v1alpha/functions.json‎

Lines changed: 101 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,93 @@
247247
],
248248
"type": "object"
249249
},
250+
"CreateRevisionPayload": {
251+
"description": "The function revision",
252+
"properties": {
253+
"created_at": {
254+
"description": "Time the function was created.",
255+
"format": "date-time",
256+
"type": "string"
257+
},
258+
"digest": {
259+
"description": "A hashed fingerprint of the revision artifact.",
260+
"type": "string"
261+
},
262+
"function_id": {
263+
"description": "The ID of the function associated with this revision.",
264+
"type": "string"
265+
},
266+
"id": {
267+
"description": "The revision identifier.",
268+
"type": "string"
269+
},
270+
"labels": {
271+
"additionalProperties": {
272+
"type": "string"
273+
},
274+
"type": "object"
275+
},
276+
"limits": {
277+
"$ref": "#/components/schemas/ResourceLimits"
278+
},
279+
"message": {
280+
"description": "Revision message",
281+
"type": "string"
282+
},
283+
"name": {
284+
"description": "The name of the the revision. Must be unique within the function.",
285+
"maxLength": 32,
286+
"minLength": 1,
287+
"type": "string"
288+
},
289+
"oci_pull_credential_id": {
290+
"description": "OCI Registry pull credential to use for pulling the revision's image.",
291+
"type": "string"
292+
},
293+
"oci_reference": {
294+
"description": "OCI reference for the revision.",
295+
"pattern": "(:[vV]?\\d+\\.\\d+\\.\\d+(@sha256:[a-fA-F0-9]{64})?)$|((:latest)?@sha256:[a-fA-F0-9]{64})$",
296+
"type": "string"
297+
},
298+
"state": {
299+
"description": "Status of this revision.",
300+
"enum": [
301+
"CANCELLED",
302+
"CREATING",
303+
"ACTIVE",
304+
"FAILED"
305+
],
306+
"type": "string"
307+
},
308+
"state_error": {
309+
"description": "Error message related to this revision.",
310+
"type": "string"
311+
},
312+
"updated_at": {
313+
"description": "Time the function was last updated.",
314+
"format": "date-time",
315+
"type": "string"
316+
},
317+
"variables": {
318+
"description": "Variable values for this revision. Each variable must reference a variable definition on the function.",
319+
"items": {
320+
"$ref": "#/components/schemas/RevisionVariable"
321+
},
322+
"maxItems": 100,
323+
"type": "array"
324+
},
325+
"version": {
326+
"description": "The version number of the revision.",
327+
"format": "int64",
328+
"type": "integer"
329+
}
330+
},
331+
"required": [
332+
"oci_reference",
333+
"limits"
334+
],
335+
"type": "object"
336+
},
250337
"Error": {
251338
"properties": {
252339
"code": {
@@ -487,9 +574,18 @@
487574
"description": "Resource utilization limitations",
488575
"properties": {
489576
"concurrency": {
577+
"description": "Maximum number of in-flight requests to a single instance",
578+
"example": 100,
490579
"format": "int32",
491580
"type": "integer"
492581
},
582+
"max_scale": {
583+
"description": "Maximum number of running instances",
584+
"example": 20,
585+
"format": "int32",
586+
"type": "integer",
587+
"x-go-type-skip-optional-pointer": true
588+
},
493589
"plan": {
494590
"maxLength": 4,
495591
"minLength": 2,
@@ -674,93 +770,6 @@
674770
}
675771
},
676772
"type": "object"
677-
},
678-
"createFunctionRevisionPayload": {
679-
"description": "The function revision",
680-
"properties": {
681-
"created_at": {
682-
"description": "Time the function was created.",
683-
"format": "date-time",
684-
"type": "string"
685-
},
686-
"digest": {
687-
"description": "A hashed fingerprint of the revision artifact.",
688-
"type": "string"
689-
},
690-
"function_id": {
691-
"description": "The ID of the function associated with this revision.",
692-
"type": "string"
693-
},
694-
"id": {
695-
"description": "The revision identifier.",
696-
"type": "string"
697-
},
698-
"labels": {
699-
"additionalProperties": {
700-
"type": "string"
701-
},
702-
"type": "object"
703-
},
704-
"limits": {
705-
"$ref": "#/components/schemas/ResourceLimits"
706-
},
707-
"message": {
708-
"description": "Revision message",
709-
"type": "string"
710-
},
711-
"name": {
712-
"description": "The name of the the revision. Must be unique within the function.",
713-
"maxLength": 32,
714-
"minLength": 1,
715-
"type": "string"
716-
},
717-
"oci_pull_credential_id": {
718-
"description": "OCI Registry pull credential to use for pulling the revision's image.",
719-
"type": "string"
720-
},
721-
"oci_reference": {
722-
"description": "OCI reference for the revision.",
723-
"pattern": "(:[vV]?\\d+\\.\\d+\\.\\d+(@sha256:[a-fA-F0-9]{64})?)$|((:latest)?@sha256:[a-fA-F0-9]{64})$",
724-
"type": "string"
725-
},
726-
"state": {
727-
"description": "Status of this revision.",
728-
"enum": [
729-
"CANCELLED",
730-
"CREATING",
731-
"ACTIVE",
732-
"FAILED"
733-
],
734-
"type": "string"
735-
},
736-
"state_error": {
737-
"description": "Error message related to this revision.",
738-
"type": "string"
739-
},
740-
"updated_at": {
741-
"description": "Time the function was last updated.",
742-
"format": "date-time",
743-
"type": "string"
744-
},
745-
"variables": {
746-
"description": "Variable values for this revision. Each variable must reference a variable definition on the function.",
747-
"items": {
748-
"$ref": "#/components/schemas/RevisionVariable"
749-
},
750-
"maxItems": 100,
751-
"type": "array"
752-
},
753-
"version": {
754-
"description": "The version number of the revision.",
755-
"format": "int64",
756-
"type": "integer"
757-
}
758-
},
759-
"required": [
760-
"oci_reference",
761-
"limits"
762-
],
763-
"type": "object"
764773
}
765774
}
766775
},
@@ -1040,12 +1049,12 @@
10401049
],
10411050
"post": {
10421051
"description": "Create a new function revision",
1043-
"operationId": "createFunctionRevision",
1052+
"operationId": "CreateRevision",
10441053
"requestBody": {
10451054
"content": {
10461055
"application/json": {
10471056
"schema": {
1048-
"$ref": "#/components/schemas/createFunctionRevisionPayload"
1057+
"$ref": "#/components/schemas/CreateRevisionPayload"
10491058
}
10501059
}
10511060
},
@@ -1076,16 +1085,14 @@
10761085
"actions": [
10771086
"functions.revision.create"
10781087
],
1079-
"method-name": "CreateRevision",
10801088
"resource-id": "projectId",
10811089
"resource-id-type": "dynamic",
10821090
"resource-type": "project",
10831091
"service-enablement": {
10841092
"services": [
10851093
"cloud.stackit.functions"
10861094
]
1087-
},
1088-
"x-stackit-sdk": null
1095+
}
10891096
}
10901097
}
10911098
},
@@ -1123,7 +1130,7 @@
11231130
},
11241131
"get": {
11251132
"description": "Retrieves a specific revision.",
1126-
"operationId": "getRevision",
1133+
"operationId": "GetRevision",
11271134
"responses": {
11281135
"200": {
11291136
"content": {
@@ -1149,16 +1156,14 @@
11491156
"actions": [
11501157
"functions.revision.get"
11511158
],
1152-
"method-name": "GetRevision",
11531159
"resource-id": "projectId",
11541160
"resource-id-type": "dynamic",
11551161
"resource-type": "project",
11561162
"service-enablement": {
11571163
"services": [
11581164
"cloud.stackit.functions"
11591165
]
1160-
},
1161-
"x-stackit-sdk": null
1166+
}
11621167
}
11631168
},
11641169
"parameters": [

0 commit comments

Comments
 (0)