|
56 | 56 | }, |
57 | 57 | "CreateInstancePayload": { |
58 | 58 | "properties": { |
| 59 | + "kmsKey": { |
| 60 | + "$ref": "#/components/schemas/KmsKeyPayload" |
| 61 | + }, |
59 | 62 | "name": { |
60 | 63 | "description": "A user chosen name to distinguish multiple secrets manager instances.", |
61 | 64 | "type": "string" |
|
99 | 102 | "description": "A auto generated unique id which identifies the secrets manager instances.", |
100 | 103 | "type": "string" |
101 | 104 | }, |
| 105 | + "kmsKey": { |
| 106 | + "$ref": "#/components/schemas/KmsKeyPayload" |
| 107 | + }, |
102 | 108 | "name": { |
103 | 109 | "description": "A user chosen name to distinguish multiple secrets manager instances.", |
104 | 110 | "type": "string" |
|
132 | 138 | "secretCount" |
133 | 139 | ] |
134 | 140 | }, |
| 141 | + "KmsKeyPayload": { |
| 142 | + "description": "The key for secret encryption and decryption.", |
| 143 | + "properties": { |
| 144 | + "keyId": { |
| 145 | + "description": "The key UUID.", |
| 146 | + "format": "uuid", |
| 147 | + "type": "string", |
| 148 | + "x-go-type": "string" |
| 149 | + }, |
| 150 | + "keyRingId": { |
| 151 | + "description": "The key ring UUID the key is part of.", |
| 152 | + "format": "uuid", |
| 153 | + "type": "string", |
| 154 | + "x-go-type": "string" |
| 155 | + }, |
| 156 | + "keyVersion": { |
| 157 | + "description": "The Key version number.", |
| 158 | + "format": "int64", |
| 159 | + "type": "integer" |
| 160 | + }, |
| 161 | + "serviceAccountEmail": { |
| 162 | + "description": "The Service account email that will consume the key. Must be in the same project as the Secrets Manager instance.", |
| 163 | + "type": "string" |
| 164 | + } |
| 165 | + }, |
| 166 | + "required": [ |
| 167 | + "serviceAccountEmail", |
| 168 | + "keyRingId", |
| 169 | + "keyId", |
| 170 | + "keyVersion" |
| 171 | + ], |
| 172 | + "type": "object" |
| 173 | + }, |
135 | 174 | "ListACLsResponse": { |
136 | 175 | "properties": { |
137 | 176 | "acls": { |
|
215 | 254 | }, |
216 | 255 | "UpdateInstancePayload": { |
217 | 256 | "properties": { |
| 257 | + "kmsKey": { |
| 258 | + "$ref": "#/components/schemas/KmsKeyPayload" |
| 259 | + }, |
218 | 260 | "name": { |
219 | 261 | "description": "A user chosen name to distinguish multiple secrets manager instances.", |
220 | 262 | "type": "string" |
|
724 | 766 | }, |
725 | 767 | "description": "Not found. Instance not found." |
726 | 768 | }, |
| 769 | + "409": { |
| 770 | + "content": { |
| 771 | + "application/json": { |
| 772 | + "schema": { |
| 773 | + "$ref": "#/components/schemas/Conflict" |
| 774 | + } |
| 775 | + } |
| 776 | + }, |
| 777 | + "description": "Conflict. ACLs limit reached. Contact the support." |
| 778 | + }, |
727 | 779 | "500": { |
728 | 780 | "description": "Internal server error. The application experienced some unexpected situation." |
729 | 781 | } |
|
784 | 836 | }, |
785 | 837 | "description": "Not found. One or more Cidrs not found." |
786 | 838 | }, |
| 839 | + "409": { |
| 840 | + "content": { |
| 841 | + "application/json": { |
| 842 | + "schema": { |
| 843 | + "$ref": "#/components/schemas/Conflict" |
| 844 | + } |
| 845 | + } |
| 846 | + }, |
| 847 | + "description": "Conflict. ACLs limit reached. Contact the support." |
| 848 | + }, |
787 | 849 | "500": { |
788 | 850 | "description": "Internal server error. The application experienced some unexpected situation." |
789 | 851 | } |
|
0 commit comments