|
247 | 247 | ], |
248 | 248 | "type": "object" |
249 | 249 | }, |
| 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 | + }, |
250 | 337 | "Error": { |
251 | 338 | "properties": { |
252 | 339 | "code": { |
|
487 | 574 | "description": "Resource utilization limitations", |
488 | 575 | "properties": { |
489 | 576 | "concurrency": { |
| 577 | + "description": "Maximum number of in-flight requests to a single instance", |
| 578 | + "example": 100, |
490 | 579 | "format": "int32", |
491 | 580 | "type": "integer" |
492 | 581 | }, |
| 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 | + }, |
493 | 589 | "plan": { |
494 | 590 | "maxLength": 4, |
495 | 591 | "minLength": 2, |
|
674 | 770 | } |
675 | 771 | }, |
676 | 772 | "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" |
764 | 773 | } |
765 | 774 | } |
766 | 775 | }, |
|
1040 | 1049 | ], |
1041 | 1050 | "post": { |
1042 | 1051 | "description": "Create a new function revision", |
1043 | | - "operationId": "createFunctionRevision", |
| 1052 | + "operationId": "CreateRevision", |
1044 | 1053 | "requestBody": { |
1045 | 1054 | "content": { |
1046 | 1055 | "application/json": { |
1047 | 1056 | "schema": { |
1048 | | - "$ref": "#/components/schemas/createFunctionRevisionPayload" |
| 1057 | + "$ref": "#/components/schemas/CreateRevisionPayload" |
1049 | 1058 | } |
1050 | 1059 | } |
1051 | 1060 | }, |
|
1076 | 1085 | "actions": [ |
1077 | 1086 | "functions.revision.create" |
1078 | 1087 | ], |
1079 | | - "method-name": "CreateRevision", |
1080 | 1088 | "resource-id": "projectId", |
1081 | 1089 | "resource-id-type": "dynamic", |
1082 | 1090 | "resource-type": "project", |
1083 | 1091 | "service-enablement": { |
1084 | 1092 | "services": [ |
1085 | 1093 | "cloud.stackit.functions" |
1086 | 1094 | ] |
1087 | | - }, |
1088 | | - "x-stackit-sdk": null |
| 1095 | + } |
1089 | 1096 | } |
1090 | 1097 | } |
1091 | 1098 | }, |
|
1123 | 1130 | }, |
1124 | 1131 | "get": { |
1125 | 1132 | "description": "Retrieves a specific revision.", |
1126 | | - "operationId": "getRevision", |
| 1133 | + "operationId": "GetRevision", |
1127 | 1134 | "responses": { |
1128 | 1135 | "200": { |
1129 | 1136 | "content": { |
|
1149 | 1156 | "actions": [ |
1150 | 1157 | "functions.revision.get" |
1151 | 1158 | ], |
1152 | | - "method-name": "GetRevision", |
1153 | 1159 | "resource-id": "projectId", |
1154 | 1160 | "resource-id-type": "dynamic", |
1155 | 1161 | "resource-type": "project", |
1156 | 1162 | "service-enablement": { |
1157 | 1163 | "services": [ |
1158 | 1164 | "cloud.stackit.functions" |
1159 | 1165 | ] |
1160 | | - }, |
1161 | | - "x-stackit-sdk": null |
| 1166 | + } |
1162 | 1167 | } |
1163 | 1168 | }, |
1164 | 1169 | "parameters": [ |
|
0 commit comments