|
615 | 615 | "type": "object" |
616 | 616 | }, |
617 | 617 | "UpdateFunctionPayload": { |
618 | | - "description": "Represents a STACKIT Functions function.", |
619 | 618 | "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 | | - }, |
633 | 619 | "labels": { |
634 | 620 | "additionalProperties": { |
635 | 621 | "type": "string" |
|
639 | 625 | "name": { |
640 | 626 | "description": "User-defined name of the function.", |
641 | 627 | "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" |
668 | 628 | } |
669 | 629 | }, |
670 | | - "required": [ |
671 | | - "name" |
672 | | - ], |
673 | 630 | "type": "object" |
674 | 631 | }, |
675 | 632 | "UpdatePullCredentialPayload": { |
|
678 | 635 | "description": "The OCI registry address.", |
679 | 636 | "type": "string" |
680 | 637 | }, |
681 | | - "id": { |
682 | | - "description": "Unique identifier for the OCI registry pull credential.", |
683 | | - "type": "string" |
684 | | - }, |
685 | 638 | "labels": { |
686 | 639 | "additionalProperties": { |
687 | 640 | "type": "string" |
688 | 641 | }, |
689 | 642 | "type": "object" |
690 | 643 | }, |
691 | 644 | "name": { |
692 | | - "description": "Unique name for the OCI registry pull credential.", |
| 645 | + "description": "Unique name for the OCI registry pull secret.", |
693 | 646 | "maxLength": 32, |
694 | 647 | "minLength": 1, |
695 | 648 | "type": "string" |
|
703 | 656 | "type": "string" |
704 | 657 | } |
705 | 658 | }, |
706 | | - "required": [ |
707 | | - "address", |
708 | | - "username", |
709 | | - "password" |
710 | | - ], |
711 | 659 | "type": "object" |
712 | 660 | }, |
713 | 661 | "UpdateRevisionPayload": { |
714 | | - "description": "The function revision", |
715 | 662 | "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 | | - }, |
733 | 663 | "labels": { |
734 | 664 | "additionalProperties": { |
735 | 665 | "type": "string" |
736 | 666 | }, |
737 | 667 | "type": "object" |
738 | 668 | }, |
739 | | - "limits": { |
740 | | - "$ref": "#/components/schemas/ResourceLimits" |
741 | | - }, |
742 | | - "message": { |
743 | | - "description": "Revision message", |
744 | | - "type": "string" |
745 | | - }, |
746 | 669 | "name": { |
747 | 670 | "description": "The name of the the revision. Must be unique within the function.", |
748 | 671 | "maxLength": 32, |
749 | 672 | "minLength": 1, |
750 | 673 | "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" |
792 | 674 | } |
793 | 675 | }, |
794 | | - "required": [ |
795 | | - "oci_reference", |
796 | | - "limits" |
797 | | - ], |
798 | 676 | "type": "object" |
799 | 677 | }, |
800 | 678 | "createFunctionRevisionPayload": { |
|
1064 | 942 | "$ref": "#/components/parameters/functionId" |
1065 | 943 | } |
1066 | 944 | ], |
1067 | | - "put": { |
| 945 | + "patch": { |
1068 | 946 | "description": "Updates a specific function.", |
1069 | 947 | "operationId": "UpdateFunction", |
1070 | 948 | "requestBody": { |
|
1294 | 1172 | "$ref": "#/components/parameters/revisionId" |
1295 | 1173 | } |
1296 | 1174 | ], |
1297 | | - "put": { |
| 1175 | + "patch": { |
1298 | 1176 | "description": "Updates a specific revision.", |
1299 | 1177 | "operationId": "UpdateRevision", |
1300 | 1178 | "requestBody": { |
|
1518 | 1396 | "$ref": "#/components/parameters/pullCredentialId" |
1519 | 1397 | } |
1520 | 1398 | ], |
1521 | | - "put": { |
| 1399 | + "patch": { |
1522 | 1400 | "description": "Updates the OCI image registry pull credential configuration.", |
1523 | 1401 | "operationId": "UpdatePullCredential", |
1524 | 1402 | "requestBody": { |
|
0 commit comments