Skip to content

Commit 3c04dd1

Browse files
OAS Update
1 parent 46de103 commit 3c04dd1

1 file changed

Lines changed: 4 additions & 126 deletions

File tree

services/functions/v1alpha/functions.json

Lines changed: 4 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -615,21 +615,7 @@
615615
"type": "object"
616616
},
617617
"UpdateFunctionPayload": {
618-
"description": "Represents a STACKIT Functions function.",
619618
"properties": {
620-
"created_at": {
621-
"description": "Time the function was created.",
622-
"format": "date-time",
623-
"type": "string"
624-
},
625-
"current_revision": {
626-
"description": "The ID of the currently-deployed revision associated with this function.",
627-
"type": "string"
628-
},
629-
"id": {
630-
"description": "Unique identifier for the function.",
631-
"type": "string"
632-
},
633619
"labels": {
634620
"additionalProperties": {
635621
"type": "string"
@@ -639,37 +625,8 @@
639625
"name": {
640626
"description": "User-defined name of the function.",
641627
"type": "string"
642-
},
643-
"state": {
644-
"description": "Status of this function's latest revision.",
645-
"enum": [
646-
"CREATING",
647-
"ACTIVE",
648-
"FAILED"
649-
],
650-
"type": "string"
651-
},
652-
"state_error": {
653-
"description": "Error message related to this function's status.",
654-
"type": "string"
655-
},
656-
"updated_at": {
657-
"description": "Time the function was last updated.",
658-
"format": "date-time",
659-
"type": "string"
660-
},
661-
"url": {
662-
"description": "URLs that resolve to the function.",
663-
"items": {
664-
"type": "string"
665-
},
666-
"maxItems": 100,
667-
"type": "array"
668628
}
669629
},
670-
"required": [
671-
"name"
672-
],
673630
"type": "object"
674631
},
675632
"UpdatePullCredentialPayload": {
@@ -678,18 +635,14 @@
678635
"description": "The OCI registry address.",
679636
"type": "string"
680637
},
681-
"id": {
682-
"description": "Unique identifier for the OCI registry pull credential.",
683-
"type": "string"
684-
},
685638
"labels": {
686639
"additionalProperties": {
687640
"type": "string"
688641
},
689642
"type": "object"
690643
},
691644
"name": {
692-
"description": "Unique name for the OCI registry pull credential.",
645+
"description": "Unique name for the OCI registry pull secret.",
693646
"maxLength": 32,
694647
"minLength": 1,
695648
"type": "string"
@@ -703,98 +656,23 @@
703656
"type": "string"
704657
}
705658
},
706-
"required": [
707-
"address",
708-
"username",
709-
"password"
710-
],
711659
"type": "object"
712660
},
713661
"UpdateRevisionPayload": {
714-
"description": "The function revision",
715662
"properties": {
716-
"created_at": {
717-
"description": "Time the function was created.",
718-
"format": "date-time",
719-
"type": "string"
720-
},
721-
"digest": {
722-
"description": "A hashed fingerprint of the revision artifact.",
723-
"type": "string"
724-
},
725-
"function_id": {
726-
"description": "The ID of the function associated with this revision.",
727-
"type": "string"
728-
},
729-
"id": {
730-
"description": "The revision identifier.",
731-
"type": "string"
732-
},
733663
"labels": {
734664
"additionalProperties": {
735665
"type": "string"
736666
},
737667
"type": "object"
738668
},
739-
"limits": {
740-
"$ref": "#/components/schemas/ResourceLimits"
741-
},
742-
"message": {
743-
"description": "Revision message",
744-
"type": "string"
745-
},
746669
"name": {
747670
"description": "The name of the the revision. Must be unique within the function.",
748671
"maxLength": 32,
749672
"minLength": 1,
750673
"type": "string"
751-
},
752-
"oci_pull_credential_id": {
753-
"description": "OCI Registry pull credential to use for pulling the revision's image.",
754-
"type": "string"
755-
},
756-
"oci_reference": {
757-
"description": "OCI reference for the revision.",
758-
"pattern": "(:[vV]?\\d+\\.\\d+\\.\\d+(@sha256:[a-fA-F0-9]{64})?)$|((:latest)?@sha256:[a-fA-F0-9]{64})$",
759-
"type": "string"
760-
},
761-
"state": {
762-
"description": "Status of this revision.",
763-
"enum": [
764-
"CANCELLED",
765-
"CREATING",
766-
"ACTIVE",
767-
"FAILED"
768-
],
769-
"type": "string"
770-
},
771-
"state_error": {
772-
"description": "Error message related to this revision.",
773-
"type": "string"
774-
},
775-
"updated_at": {
776-
"description": "Time the function was last updated.",
777-
"format": "date-time",
778-
"type": "string"
779-
},
780-
"variables": {
781-
"description": "Variable values for this revision. Each variable must reference a variable definition on the function.",
782-
"items": {
783-
"$ref": "#/components/schemas/RevisionVariable"
784-
},
785-
"maxItems": 100,
786-
"type": "array"
787-
},
788-
"version": {
789-
"description": "The version number of the revision.",
790-
"format": "int64",
791-
"type": "integer"
792674
}
793675
},
794-
"required": [
795-
"oci_reference",
796-
"limits"
797-
],
798676
"type": "object"
799677
},
800678
"createFunctionRevisionPayload": {
@@ -1064,7 +942,7 @@
1064942
"$ref": "#/components/parameters/functionId"
1065943
}
1066944
],
1067-
"put": {
945+
"patch": {
1068946
"description": "Updates a specific function.",
1069947
"operationId": "UpdateFunction",
1070948
"requestBody": {
@@ -1294,7 +1172,7 @@
12941172
"$ref": "#/components/parameters/revisionId"
12951173
}
12961174
],
1297-
"put": {
1175+
"patch": {
12981176
"description": "Updates a specific revision.",
12991177
"operationId": "UpdateRevision",
13001178
"requestBody": {
@@ -1518,7 +1396,7 @@
15181396
"$ref": "#/components/parameters/pullCredentialId"
15191397
}
15201398
],
1521-
"put": {
1399+
"patch": {
15221400
"description": "Updates the OCI image registry pull credential configuration.",
15231401
"operationId": "UpdatePullCredential",
15241402
"requestBody": {

0 commit comments

Comments
 (0)