|
38 | 38 | "type": "string",
|
39 | 39 | "x-go-type": "string"
|
40 | 40 | },
|
| 41 | + "logSink": { |
| 42 | + "discriminator": { |
| 43 | + "mapping": { |
| 44 | + "loki": "#/components/schemas/LokiLogSink" |
| 45 | + }, |
| 46 | + "propertyName": "type" |
| 47 | + }, |
| 48 | + "oneOf": [ |
| 49 | + { |
| 50 | + "$ref": "#/components/schemas/LokiLogSink" |
| 51 | + } |
| 52 | + ] |
| 53 | + }, |
41 | 54 | "monthlyLimitBytes": {
|
42 | 55 | "description": "Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use.\n",
|
43 | 56 | "format": "int64",
|
|
152 | 165 | "description": "While optional, it is greatly encouraged to provide an `intentId`. \nThis is used to deduplicate requests. \nIf multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped.\n",
|
153 | 166 | "type": "string"
|
154 | 167 | },
|
| 168 | + "logSink": { |
| 169 | + "discriminator": { |
| 170 | + "mapping": { |
| 171 | + "loki": "#/components/schemas/PatchLokiLogSink" |
| 172 | + }, |
| 173 | + "propertyName": "type" |
| 174 | + }, |
| 175 | + "oneOf": [ |
| 176 | + { |
| 177 | + "$ref": "#/components/schemas/PatchLokiLogSink" |
| 178 | + } |
| 179 | + ] |
| 180 | + }, |
155 | 181 | "monthlyLimitBytes": {
|
156 | 182 | "description": "Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use.\n",
|
157 | 183 | "format": "int64",
|
|
629 | 655 | ],
|
630 | 656 | "type": "object"
|
631 | 657 | },
|
| 658 | + "GetCustomDomainCustomCertificate": { |
| 659 | + "description": "Returned if a custom certificate is used. Response does not contain the certificate or key.", |
| 660 | + "properties": { |
| 661 | + "type": { |
| 662 | + "type": "string" |
| 663 | + }, |
| 664 | + "version": { |
| 665 | + "description": "Whenever a new custom certificate is added the version is increased by 1.", |
| 666 | + "format": "int32", |
| 667 | + "minimum": 1, |
| 668 | + "type": "integer" |
| 669 | + } |
| 670 | + }, |
| 671 | + "required": [ |
| 672 | + "type", |
| 673 | + "version" |
| 674 | + ], |
| 675 | + "type": "object" |
| 676 | + }, |
| 677 | + "GetCustomDomainManagedCertificate": { |
| 678 | + "description": "This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you", |
| 679 | + "properties": { |
| 680 | + "type": { |
| 681 | + "type": "string" |
| 682 | + } |
| 683 | + }, |
| 684 | + "required": [ |
| 685 | + "type" |
| 686 | + ], |
| 687 | + "type": "object" |
| 688 | + }, |
632 | 689 | "GetCustomDomainResponse": {
|
633 | 690 | "properties": {
|
| 691 | + "certificate": { |
| 692 | + "discriminator": { |
| 693 | + "mapping": { |
| 694 | + "custom": "#/components/schemas/GetCustomDomainCustomCertificate", |
| 695 | + "managed": "#/components/schemas/GetCustomDomainManagedCertificate" |
| 696 | + }, |
| 697 | + "propertyName": "type" |
| 698 | + }, |
| 699 | + "oneOf": [ |
| 700 | + { |
| 701 | + "$ref": "#/components/schemas/GetCustomDomainManagedCertificate" |
| 702 | + }, |
| 703 | + { |
| 704 | + "$ref": "#/components/schemas/GetCustomDomainCustomCertificate" |
| 705 | + } |
| 706 | + ] |
| 707 | + }, |
634 | 708 | "customDomain": {
|
635 | 709 | "$ref": "#/components/schemas/CustomDomain"
|
636 | 710 | },
|
|
643 | 717 | },
|
644 | 718 | "required": [
|
645 | 719 | "domain",
|
646 |
| - "customDomain" |
| 720 | + "customDomain", |
| 721 | + "certificate" |
647 | 722 | ],
|
648 | 723 | "type": "object"
|
649 | 724 | },
|
|
751 | 826 | ],
|
752 | 827 | "type": "object"
|
753 | 828 | },
|
| 829 | + "LokiLogSink": { |
| 830 | + "properties": { |
| 831 | + "pushUrl": { |
| 832 | + "type": "string" |
| 833 | + }, |
| 834 | + "type": { |
| 835 | + "type": "string" |
| 836 | + } |
| 837 | + }, |
| 838 | + "required": [ |
| 839 | + "type", |
| 840 | + "pushUrl" |
| 841 | + ], |
| 842 | + "type": "object" |
| 843 | + }, |
754 | 844 | "Optimizer": {
|
755 | 845 | "description": "Optimizer is paid feature, a real-time on the fly image manipulation and optimization service that automatically optimizes your images for faster image delivery.\n",
|
756 | 846 | "properties": {
|
|
796 | 886 | ],
|
797 | 887 | "type": "object"
|
798 | 888 | },
|
| 889 | + "PatchLokiLogSink": { |
| 890 | + "properties": { |
| 891 | + "password": { |
| 892 | + "type": "string", |
| 893 | + "x-go-type": "secret.Secret" |
| 894 | + }, |
| 895 | + "pushUrl": { |
| 896 | + "type": "string" |
| 897 | + }, |
| 898 | + "type": { |
| 899 | + "type": "string" |
| 900 | + }, |
| 901 | + "username": { |
| 902 | + "type": "string", |
| 903 | + "x-go-type": "secret.Secret" |
| 904 | + } |
| 905 | + }, |
| 906 | + "required": [ |
| 907 | + "type", |
| 908 | + "pushUrl", |
| 909 | + "username", |
| 910 | + "password" |
| 911 | + ], |
| 912 | + "type": "object" |
| 913 | + }, |
799 | 914 | "PurgeCachePayload": {
|
800 | 915 | "properties": {
|
801 | 916 | "path": {
|
|
808 | 923 | "PurgeCacheResponse": {
|
809 | 924 | "type": "object"
|
810 | 925 | },
|
| 926 | + "PutCustomDomainCustomCertificate": { |
| 927 | + "description": "Returned if a custom certificate is used. Response does not contain the certificate or key.", |
| 928 | + "properties": { |
| 929 | + "certificate": { |
| 930 | + "description": "base64-encoded certificate", |
| 931 | + "type": "string" |
| 932 | + }, |
| 933 | + "key": { |
| 934 | + "description": "base64-encoded key", |
| 935 | + "type": "string" |
| 936 | + }, |
| 937 | + "type": { |
| 938 | + "type": "string" |
| 939 | + } |
| 940 | + }, |
| 941 | + "required": [ |
| 942 | + "type", |
| 943 | + "certificate", |
| 944 | + "key" |
| 945 | + ], |
| 946 | + "type": "object" |
| 947 | + }, |
| 948 | + "PutCustomDomainManagedCertificate": { |
| 949 | + "description": "This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you", |
| 950 | + "properties": { |
| 951 | + "type": { |
| 952 | + "type": "string" |
| 953 | + } |
| 954 | + }, |
| 955 | + "required": [ |
| 956 | + "type" |
| 957 | + ], |
| 958 | + "type": "object" |
| 959 | + }, |
811 | 960 | "PutCustomDomainPayload": {
|
812 | 961 | "properties": {
|
| 962 | + "certificate": { |
| 963 | + "description": "Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted", |
| 964 | + "discriminator": { |
| 965 | + "mapping": { |
| 966 | + "custom": "#/components/schemas/PutCustomDomainCustomCertificate", |
| 967 | + "managed": "#/components/schemas/PutCustomDomainManagedCertificate" |
| 968 | + }, |
| 969 | + "propertyName": "type" |
| 970 | + }, |
| 971 | + "oneOf": [ |
| 972 | + { |
| 973 | + "$ref": "#/components/schemas/PutCustomDomainManagedCertificate" |
| 974 | + }, |
| 975 | + { |
| 976 | + "$ref": "#/components/schemas/PutCustomDomainCustomCertificate" |
| 977 | + } |
| 978 | + ], |
| 979 | + "type": "object" |
| 980 | + }, |
813 | 981 | "intentId": {
|
814 | 982 | "description": "While optional, it is greatly encouraged to provide an `intentId`. \nThis is used to deduplicate requests. \nIf multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped.\n",
|
815 | 983 | "type": "string"
|
|
819 | 987 | },
|
820 | 988 | "PutCustomDomainResponse": {
|
821 | 989 | "properties": {
|
| 990 | + "certificate": { |
| 991 | + "description": "Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted", |
| 992 | + "discriminator": { |
| 993 | + "mapping": { |
| 994 | + "custom": "#/components/schemas/GetCustomDomainCustomCertificate", |
| 995 | + "managed": "#/components/schemas/GetCustomDomainManagedCertificate" |
| 996 | + }, |
| 997 | + "propertyName": "type" |
| 998 | + }, |
| 999 | + "oneOf": [ |
| 1000 | + { |
| 1001 | + "$ref": "#/components/schemas/GetCustomDomainManagedCertificate" |
| 1002 | + }, |
| 1003 | + { |
| 1004 | + "$ref": "#/components/schemas/GetCustomDomainCustomCertificate" |
| 1005 | + } |
| 1006 | + ], |
| 1007 | + "type": "object" |
| 1008 | + }, |
822 | 1009 | "customDomain": {
|
823 | 1010 | "$ref": "#/components/schemas/CustomDomain"
|
824 | 1011 | },
|
|
0 commit comments