|
1142 | 1142 | }
|
1143 | 1143 | }
|
1144 | 1144 | },
|
| 1145 | + "/projects/{project_name}/vpcs/{vpc_name}/subnets": { |
| 1146 | + "get": { |
| 1147 | + "description": "List subnets in a VPC.", |
| 1148 | + "operationId": "vpc_subnets_get", |
| 1149 | + "parameters": [ |
| 1150 | + { |
| 1151 | + "in": "query", |
| 1152 | + "name": "limit", |
| 1153 | + "schema": { |
| 1154 | + "description": "Maximum number of items returned by a single call", |
| 1155 | + "type": "integer", |
| 1156 | + "format": "uint32", |
| 1157 | + "minimum": 1 |
| 1158 | + }, |
| 1159 | + "style": "form" |
| 1160 | + }, |
| 1161 | + { |
| 1162 | + "in": "query", |
| 1163 | + "name": "page_token", |
| 1164 | + "schema": { |
| 1165 | + "description": "Token returned by previous call to retreive the subsequent page", |
| 1166 | + "type": "string" |
| 1167 | + }, |
| 1168 | + "style": "form" |
| 1169 | + }, |
| 1170 | + { |
| 1171 | + "in": "query", |
| 1172 | + "name": "sort_by", |
| 1173 | + "schema": { |
| 1174 | + "$ref": "#/components/schemas/NameSortMode" |
| 1175 | + }, |
| 1176 | + "style": "form" |
| 1177 | + }, |
| 1178 | + { |
| 1179 | + "in": "path", |
| 1180 | + "name": "project_name", |
| 1181 | + "required": true, |
| 1182 | + "schema": { |
| 1183 | + "$ref": "#/components/schemas/Name" |
| 1184 | + }, |
| 1185 | + "style": "simple" |
| 1186 | + }, |
| 1187 | + { |
| 1188 | + "in": "path", |
| 1189 | + "name": "vpc_name", |
| 1190 | + "required": true, |
| 1191 | + "schema": { |
| 1192 | + "$ref": "#/components/schemas/Name" |
| 1193 | + }, |
| 1194 | + "style": "simple" |
| 1195 | + } |
| 1196 | + ], |
| 1197 | + "responses": { |
| 1198 | + "200": { |
| 1199 | + "description": "successful operation", |
| 1200 | + "content": { |
| 1201 | + "application/json": { |
| 1202 | + "schema": { |
| 1203 | + "$ref": "#/components/schemas/VpcSubnetResultsPage" |
| 1204 | + } |
| 1205 | + } |
| 1206 | + } |
| 1207 | + } |
| 1208 | + }, |
| 1209 | + "x-dropshot-pagination": true |
| 1210 | + }, |
| 1211 | + "post": { |
| 1212 | + "description": "Create a subnet in a VPC.", |
| 1213 | + "operationId": "vpc_subnets_post", |
| 1214 | + "parameters": [ |
| 1215 | + { |
| 1216 | + "in": "path", |
| 1217 | + "name": "project_name", |
| 1218 | + "required": true, |
| 1219 | + "schema": { |
| 1220 | + "$ref": "#/components/schemas/Name" |
| 1221 | + }, |
| 1222 | + "style": "simple" |
| 1223 | + }, |
| 1224 | + { |
| 1225 | + "in": "path", |
| 1226 | + "name": "vpc_name", |
| 1227 | + "required": true, |
| 1228 | + "schema": { |
| 1229 | + "$ref": "#/components/schemas/Name" |
| 1230 | + }, |
| 1231 | + "style": "simple" |
| 1232 | + } |
| 1233 | + ], |
| 1234 | + "requestBody": { |
| 1235 | + "content": { |
| 1236 | + "application/json": { |
| 1237 | + "schema": { |
| 1238 | + "$ref": "#/components/schemas/VpcSubnetCreateParams" |
| 1239 | + } |
| 1240 | + } |
| 1241 | + }, |
| 1242 | + "required": true |
| 1243 | + }, |
| 1244 | + "responses": { |
| 1245 | + "201": { |
| 1246 | + "description": "successful creation", |
| 1247 | + "content": { |
| 1248 | + "application/json": { |
| 1249 | + "schema": { |
| 1250 | + "$ref": "#/components/schemas/VpcSubnet" |
| 1251 | + } |
| 1252 | + } |
| 1253 | + } |
| 1254 | + } |
| 1255 | + } |
| 1256 | + } |
| 1257 | + }, |
| 1258 | + "/projects/{project_name}/vpcs/{vpc_name}/subnets/{subnet_name}": { |
| 1259 | + "get": { |
| 1260 | + "description": "Get subnet in a VPC.", |
| 1261 | + "operationId": "vpc_subnets_get_subnet", |
| 1262 | + "parameters": [ |
| 1263 | + { |
| 1264 | + "in": "path", |
| 1265 | + "name": "project_name", |
| 1266 | + "required": true, |
| 1267 | + "schema": { |
| 1268 | + "$ref": "#/components/schemas/Name" |
| 1269 | + }, |
| 1270 | + "style": "simple" |
| 1271 | + }, |
| 1272 | + { |
| 1273 | + "in": "path", |
| 1274 | + "name": "subnet_name", |
| 1275 | + "required": true, |
| 1276 | + "schema": { |
| 1277 | + "$ref": "#/components/schemas/Name" |
| 1278 | + }, |
| 1279 | + "style": "simple" |
| 1280 | + }, |
| 1281 | + { |
| 1282 | + "in": "path", |
| 1283 | + "name": "vpc_name", |
| 1284 | + "required": true, |
| 1285 | + "schema": { |
| 1286 | + "$ref": "#/components/schemas/Name" |
| 1287 | + }, |
| 1288 | + "style": "simple" |
| 1289 | + } |
| 1290 | + ], |
| 1291 | + "responses": { |
| 1292 | + "200": { |
| 1293 | + "description": "successful operation", |
| 1294 | + "content": { |
| 1295 | + "application/json": { |
| 1296 | + "schema": { |
| 1297 | + "$ref": "#/components/schemas/VpcSubnet" |
| 1298 | + } |
| 1299 | + } |
| 1300 | + } |
| 1301 | + } |
| 1302 | + } |
| 1303 | + }, |
| 1304 | + "put": { |
| 1305 | + "description": "Update a VPC Subnet.", |
| 1306 | + "operationId": "vpc_subnets_put_subnet", |
| 1307 | + "parameters": [ |
| 1308 | + { |
| 1309 | + "in": "path", |
| 1310 | + "name": "project_name", |
| 1311 | + "required": true, |
| 1312 | + "schema": { |
| 1313 | + "$ref": "#/components/schemas/Name" |
| 1314 | + }, |
| 1315 | + "style": "simple" |
| 1316 | + }, |
| 1317 | + { |
| 1318 | + "in": "path", |
| 1319 | + "name": "subnet_name", |
| 1320 | + "required": true, |
| 1321 | + "schema": { |
| 1322 | + "$ref": "#/components/schemas/Name" |
| 1323 | + }, |
| 1324 | + "style": "simple" |
| 1325 | + }, |
| 1326 | + { |
| 1327 | + "in": "path", |
| 1328 | + "name": "vpc_name", |
| 1329 | + "required": true, |
| 1330 | + "schema": { |
| 1331 | + "$ref": "#/components/schemas/Name" |
| 1332 | + }, |
| 1333 | + "style": "simple" |
| 1334 | + } |
| 1335 | + ], |
| 1336 | + "requestBody": { |
| 1337 | + "content": { |
| 1338 | + "application/json": { |
| 1339 | + "schema": { |
| 1340 | + "$ref": "#/components/schemas/VpcSubnetUpdateParams" |
| 1341 | + } |
| 1342 | + } |
| 1343 | + }, |
| 1344 | + "required": true |
| 1345 | + }, |
| 1346 | + "responses": { |
| 1347 | + "200": { |
| 1348 | + "description": "successful operation" |
| 1349 | + } |
| 1350 | + } |
| 1351 | + }, |
| 1352 | + "delete": { |
| 1353 | + "description": "Delete a subnet from a VPC.", |
| 1354 | + "operationId": "vpc_subnets_delete_subnet", |
| 1355 | + "parameters": [ |
| 1356 | + { |
| 1357 | + "in": "path", |
| 1358 | + "name": "project_name", |
| 1359 | + "required": true, |
| 1360 | + "schema": { |
| 1361 | + "$ref": "#/components/schemas/Name" |
| 1362 | + }, |
| 1363 | + "style": "simple" |
| 1364 | + }, |
| 1365 | + { |
| 1366 | + "in": "path", |
| 1367 | + "name": "subnet_name", |
| 1368 | + "required": true, |
| 1369 | + "schema": { |
| 1370 | + "$ref": "#/components/schemas/Name" |
| 1371 | + }, |
| 1372 | + "style": "simple" |
| 1373 | + }, |
| 1374 | + { |
| 1375 | + "in": "path", |
| 1376 | + "name": "vpc_name", |
| 1377 | + "required": true, |
| 1378 | + "schema": { |
| 1379 | + "$ref": "#/components/schemas/Name" |
| 1380 | + }, |
| 1381 | + "style": "simple" |
| 1382 | + } |
| 1383 | + ], |
| 1384 | + "responses": { |
| 1385 | + "204": { |
| 1386 | + "description": "successful deletion" |
| 1387 | + } |
| 1388 | + } |
| 1389 | + } |
| 1390 | + }, |
1145 | 1391 | "/sagas": {
|
1146 | 1392 | "get": {
|
1147 | 1393 | "description": "List all sagas (for debugging)",
|
|
1348 | 1594 | },
|
1349 | 1595 | "DiskState": {
|
1350 | 1596 | "description": "State of a Disk (primarily: attached or not)",
|
1351 |
| - "anyOf": [ |
| 1597 | + "oneOf": [ |
1352 | 1598 | {
|
1353 | 1599 | "description": "Disk is being initialized",
|
1354 | 1600 | "type": "object",
|
|
1728 | 1974 | "required": ["id", "state"]
|
1729 | 1975 | },
|
1730 | 1976 | "SagaErrorInfo": {
|
1731 |
| - "anyOf": [ |
| 1977 | + "oneOf": [ |
1732 | 1978 | {
|
1733 | 1979 | "type": "object",
|
1734 | 1980 | "properties": {
|
|
1810 | 2056 | "required": ["items"]
|
1811 | 2057 | },
|
1812 | 2058 | "SagaState": {
|
1813 |
| - "anyOf": [ |
| 2059 | + "oneOf": [ |
1814 | 2060 | {
|
1815 | 2061 | "type": "object",
|
1816 | 2062 | "properties": {
|
|
1939 | 2185 | "description": "timestamp when this resource was last modified",
|
1940 | 2186 | "type": "string",
|
1941 | 2187 | "format": "date-time"
|
1942 |
| - }, |
1943 |
| - "vpcSubnets": { |
1944 |
| - "type": "array", |
1945 |
| - "items": { |
1946 |
| - "$ref": "#/components/schemas/VpcSubnet" |
1947 |
| - } |
1948 | 2188 | }
|
1949 | 2189 | },
|
1950 | 2190 | "required": [
|
|
1954 | 2194 | "name",
|
1955 | 2195 | "projectId",
|
1956 | 2196 | "timeCreated",
|
1957 |
| - "timeModified", |
1958 |
| - "vpcSubnets" |
| 2197 | + "timeModified" |
1959 | 2198 | ]
|
1960 | 2199 | },
|
1961 | 2200 | "VpcCreateParams": {
|
|
2013 | 2252 | },
|
2014 | 2253 | "required": ["identity", "vpc_id"]
|
2015 | 2254 | },
|
| 2255 | + "VpcSubnetCreateParams": { |
| 2256 | + "description": "Create-time parameters for a [`VpcSubnet`]", |
| 2257 | + "type": "object", |
| 2258 | + "properties": { |
| 2259 | + "description": { |
| 2260 | + "type": "string" |
| 2261 | + }, |
| 2262 | + "ipv4Block": { |
| 2263 | + "$ref": "#/components/schemas/Ipv4Net" |
| 2264 | + }, |
| 2265 | + "ipv6Block": { |
| 2266 | + "$ref": "#/components/schemas/Ipv6Net" |
| 2267 | + }, |
| 2268 | + "name": { |
| 2269 | + "$ref": "#/components/schemas/Name" |
| 2270 | + } |
| 2271 | + }, |
| 2272 | + "required": ["description", "name"] |
| 2273 | + }, |
| 2274 | + "VpcSubnetResultsPage": { |
| 2275 | + "description": "A single page of results", |
| 2276 | + "type": "object", |
| 2277 | + "properties": { |
| 2278 | + "items": { |
| 2279 | + "description": "list of items on this page of results", |
| 2280 | + "type": "array", |
| 2281 | + "items": { |
| 2282 | + "$ref": "#/components/schemas/VpcSubnet" |
| 2283 | + } |
| 2284 | + }, |
| 2285 | + "next_page": { |
| 2286 | + "description": "token used to fetch the next page of results (if any)", |
| 2287 | + "type": "string" |
| 2288 | + } |
| 2289 | + }, |
| 2290 | + "required": ["items"] |
| 2291 | + }, |
| 2292 | + "VpcSubnetUpdateParams": { |
| 2293 | + "description": "Updateable properties of a [`VpcSubnet`]", |
| 2294 | + "type": "object", |
| 2295 | + "properties": { |
| 2296 | + "description": { |
| 2297 | + "type": "string" |
| 2298 | + }, |
| 2299 | + "ipv4Block": { |
| 2300 | + "$ref": "#/components/schemas/Ipv4Net" |
| 2301 | + }, |
| 2302 | + "ipv6Block": { |
| 2303 | + "$ref": "#/components/schemas/Ipv6Net" |
| 2304 | + }, |
| 2305 | + "name": { |
| 2306 | + "$ref": "#/components/schemas/Name" |
| 2307 | + } |
| 2308 | + } |
| 2309 | + }, |
2016 | 2310 | "VpcUpdateParams": {
|
2017 | 2311 | "description": "Updateable properties of a [`Vpc`]",
|
2018 | 2312 | "type": "object",
|
|
0 commit comments