Skip to content

Commit 2215407

Browse files
OAS Update
1 parent 4407196 commit 2215407

1 file changed

Lines changed: 61 additions & 29 deletions

File tree

services/pim/v3alpha1/pim.json

Lines changed: 61 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@
343343
"description": "Prices' currency symbol",
344344
"enum": [
345345
"",
346-
"$"
346+
"$",
347+
"£"
347348
],
348349
"example": "",
349350
"type": "string"
@@ -463,6 +464,20 @@
463464
"minLength": 1,
464465
"type": "string"
465466
},
467+
"Price": {
468+
"properties": {
469+
"list": {
470+
"$ref": "#/components/schemas/PriceValue"
471+
},
472+
"monthly": {
473+
"$ref": "#/components/schemas/PriceValue"
474+
}
475+
},
476+
"required": [
477+
"list",
478+
"monthly"
479+
]
480+
},
466481
"PriceValue": {
467482
"properties": {
468483
"currencyCode": {
@@ -471,14 +486,7 @@
471486
"currencySymbol": {
472487
"$ref": "#/components/schemas/CurrencySymbols"
473488
},
474-
"monthlyPrice": {
475-
"description": "Monthly price value that is valid at request time, shown with full precision",
476-
"example": "0.0123456",
477-
"format": "decimal",
478-
"nullable": true,
479-
"type": "string"
480-
},
481-
"rounded_value": {
489+
"roundedValue": {
482490
"description": "Used in Portal rounded to the minimal usable precision 2 digits after 0",
483491
"example": "0.00012345 -\u003e 0.0012, 1,234556 -\u003e 1,23",
484492
"format": "decimal",
@@ -502,10 +510,10 @@
502510
},
503511
"required": [
504512
"value",
505-
"rounded_value",
506-
"value_as_int",
507-
"currency_code",
508-
"currency_code"
513+
"roundedValue",
514+
"valueAsInt",
515+
"currencySymbol",
516+
"currencyCode"
509517
]
510518
},
511519
"Problem": {
@@ -886,6 +894,35 @@
886894
],
887895
"type": "object"
888896
},
897+
"PublicDeveloperPlatformSpecificAttributes": {
898+
"properties": {
899+
"discriminator": {
900+
"type": "string"
901+
},
902+
"diskStoragePerNode": {
903+
"description": "diskStoragePerNode",
904+
"example": "10",
905+
"nullable": true,
906+
"type": "string"
907+
},
908+
"storage": {
909+
"description": "Storage (e.g. `image`, `postgresql`, `snapshot`, `volume`)",
910+
"example": "image",
911+
"nullable": true,
912+
"type": "string"
913+
},
914+
"type": {
915+
"description": "Type (e.g. `single`, `replica`)",
916+
"example": "Single",
917+
"nullable": true,
918+
"type": "string"
919+
}
920+
},
921+
"required": [
922+
"discriminator"
923+
],
924+
"type": "object"
925+
},
889926
"PublicLoggingAndMonitoringSpecificAttributes": {
890927
"properties": {
891928
"discriminator": {
@@ -1096,25 +1133,16 @@
10961133
"format": "float",
10971134
"nullable": true,
10981135
"type": "number"
1099-
}
1100-
},
1101-
"required": [
1102-
"discriminator"
1103-
],
1104-
"type": "object"
1105-
},
1106-
"PublicPrice": {
1107-
"properties": {
1108-
"list": {
1109-
"$ref": "#/components/schemas/PriceValue"
11101136
},
1111-
"monthly": {
1112-
"$ref": "#/components/schemas/PriceValue"
1137+
"type": {
1138+
"description": "Type (e.g. `single`, `replica`)",
1139+
"example": "Single",
1140+
"nullable": true,
1141+
"type": "string"
11131142
}
11141143
},
11151144
"required": [
1116-
"list",
1117-
"monthly"
1145+
"discriminator"
11181146
],
11191147
"type": "object"
11201148
},
@@ -1221,7 +1249,7 @@
12211249
{
12221250
"properties": {
12231251
"price": {
1224-
"$ref": "#/components/schemas/PublicPrice"
1252+
"$ref": "#/components/schemas/Price"
12251253
},
12261254
"productSpecificAttributes": {
12271255
"discriminator": {
@@ -1232,6 +1260,7 @@
12321260
"ConfidentialComputing": "#/components/schemas/PublicConfidentialComputingSpecificAttributes",
12331261
"DataAndAI": "#/components/schemas/PublicDataAndAISpecificAttributes",
12341262
"Database": "#/components/schemas/PublicDatabaseSpecificAttributes",
1263+
"DeveloperPlatform": "#/components/schemas/PublicDeveloperPlatformSpecificAttributes",
12351264
"LoggingAndMonitoring": "#/components/schemas/PublicLoggingAndMonitoringSpecificAttributes",
12361265
"Messaging": "#/components/schemas/PublicMessagingSpecificAttributes",
12371266
"Network": "#/components/schemas/PublicNetworkSpecificAttributes",
@@ -1277,6 +1306,9 @@
12771306
},
12781307
{
12791308
"$ref": "#/components/schemas/PublicComputeEngineGPUSpecificAttributes"
1309+
},
1310+
{
1311+
"$ref": "#/components/schemas/PublicDeveloperPlatformSpecificAttributes"
12801312
}
12811313
]
12821314
}

0 commit comments

Comments
 (0)