-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev 30 #118
Dev 30 #118
Changes from 16 commits
0fbc419
185f210
06cd0fb
1cdd4a1
08d0643
1f4836b
c91bd9f
7aeae50
60e0ea1
8c3655f
3c34b25
a094510
612bb6f
11c7e33
5228f56
7e4b7f8
0341576
77ddbea
3f1114e
6455c53
e2def96
780db3e
4d4ac54
a4e3579
a99cbaa
9990ffc
8c1b735
500db4d
243473b
7c5109c
b2bbb54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,31 +9,251 @@ | |
* --------------------------------------------------------------- | ||
*/ | ||
|
||
import { TableStoragePricesStoragePricesGetData } from "./data-contracts"; | ||
import { OrderDir, SearchStoragePricesStoragePricesGetData } from "./data-contracts"; | ||
|
||
export namespace StoragePrices { | ||
/** | ||
* No description | ||
* @name TableStoragePricesStoragePricesGet | ||
* @summary Table Storage Prices | ||
* @tags Query Resources | ||
* @name SearchStoragePricesStoragePricesGet | ||
* @summary Search Storage Prices | ||
* @request GET:/storage_prices | ||
*/ | ||
export namespace TableStoragePricesStoragePricesGet { | ||
export namespace SearchStoragePricesStoragePricesGet { | ||
export type RequestParams = {}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Define the object shape explicitly for The static analysis tool suggests avoiding the usage of If export type RequestParams = Record<string, never>; Alternatively, if there are no request parameters, you can remove the ToolsBiome
|
||
export type RequestQuery = { | ||
/** | ||
* Vendor id | ||
* Identifier of the cloud provider vendor. | ||
*/ | ||
vendor: "aws" | "gcp" | "hcloud"; | ||
vendor?: "aws" | "azure" | "gcp" | "hcloud"; | ||
/** | ||
* Storage id | ||
* Identifier of the storage type. | ||
* Green energy | ||
* Filter for regions with kow CO2 emission only. | ||
*/ | ||
storage_type: "30001" | "30002" | "30007" | "block" | "gp2" | "gp3" | "sc1" | "st1" | "standard"; | ||
green_energy?: boolean | null; | ||
/** | ||
* Storage Size | ||
* Minimum amount of storage (GBs). | ||
*/ | ||
storage_min?: number | null; | ||
/** | ||
* Storage Type | ||
* Type of the storage attached to the server. | ||
*/ | ||
storage_type?: "hdd" | "ssd" | "nvme ssd" | "network"; | ||
/** | ||
* Compliance Framework id | ||
* Compliance framework implemented at the vendor. | ||
*/ | ||
compliance_framework?: "hipaa" | "iso27001" | "soc2t2"; | ||
/** | ||
* Region id | ||
* Identifier of the region. | ||
*/ | ||
regions?: | ||
| "1000" | ||
| "1100" | ||
| "1210" | ||
| "1220" | ||
| "1230" | ||
| "1250" | ||
| "1260" | ||
| "1270" | ||
| "1280" | ||
| "1290" | ||
| "1300" | ||
| "1310" | ||
| "1320" | ||
| "1330" | ||
| "1340" | ||
| "1350" | ||
| "1360" | ||
| "1370" | ||
| "1380" | ||
| "1390" | ||
| "1410" | ||
| "1420" | ||
| "1430" | ||
| "1440" | ||
| "1450" | ||
| "1460" | ||
| "1470" | ||
| "1480" | ||
| "1490" | ||
| "1510" | ||
| "1520" | ||
| "1530" | ||
| "1540" | ||
| "1550" | ||
| "1560" | ||
| "1570" | ||
| "1580" | ||
| "1590" | ||
| "1600" | ||
| "1610" | ||
| "2" | ||
| "3" | ||
| "4" | ||
| "5" | ||
| "6" | ||
| "7" | ||
| "af-south-1" | ||
| "ap-east-1" | ||
| "ap-northeast-1" | ||
| "ap-northeast-2" | ||
| "ap-northeast-3" | ||
| "ap-south-1" | ||
| "ap-south-2" | ||
| "ap-southeast-1" | ||
| "ap-southeast-2" | ||
| "ap-southeast-3" | ||
| "ap-southeast-4" | ||
| "australiacentral" | ||
| "australiacentral2" | ||
| "australiaeast" | ||
| "australiasoutheast" | ||
| "brazilsouth" | ||
| "brazilsoutheast" | ||
| "brazilus" | ||
| "ca-central-1" | ||
| "canadacentral" | ||
| "canadaeast" | ||
| "ca-west-1" | ||
| "centralindia" | ||
| "centralus" | ||
| "centraluseuap" | ||
| "cn-north-1" | ||
| "cn-northwest-1" | ||
| "eastasia" | ||
| "eastus" | ||
| "eastus2" | ||
| "eastus2euap" | ||
| "eastusstg" | ||
| "eu-central-1" | ||
| "eu-central-2" | ||
| "eu-north-1" | ||
| "eu-south-1" | ||
| "eu-south-2" | ||
| "eu-west-1" | ||
| "eu-west-2" | ||
| "eu-west-3" | ||
| "francecentral" | ||
| "francesouth" | ||
| "germanynorth" | ||
| "germanywestcentral" | ||
| "il-central-1" | ||
| "israelcentral" | ||
| "italynorth" | ||
| "japaneast" | ||
| "japanwest" | ||
| "jioindiacentral" | ||
| "jioindiawest" | ||
| "koreacentral" | ||
| "koreasouth" | ||
| "me-central-1" | ||
| "me-south-1" | ||
| "mexicocentral" | ||
| "northcentralus" | ||
| "northeurope" | ||
| "norwayeast" | ||
| "norwaywest" | ||
| "polandcentral" | ||
| "qatarcentral" | ||
| "sa-east-1" | ||
| "southafricanorth" | ||
| "southafricawest" | ||
| "southcentralus" | ||
| "southcentralusstg" | ||
| "southeastasia" | ||
| "southindia" | ||
| "spaincentral" | ||
| "swedencentral" | ||
| "switzerlandnorth" | ||
| "switzerlandwest" | ||
| "uaecentral" | ||
| "uaenorth" | ||
| "uksouth" | ||
| "ukwest" | ||
| "us-east-1" | ||
| "us-east-2" | ||
| "us-west-1" | ||
| "us-west-2" | ||
| "westcentralus" | ||
| "westeurope" | ||
| "westindia" | ||
| "westus" | ||
| "westus2" | ||
| "westus3"; | ||
/** | ||
* Countries | ||
* Filter for regions in the provided list of countries. | ||
*/ | ||
countries?: | ||
| "AE" | ||
| "AU" | ||
| "BE" | ||
| "BH" | ||
| "BR" | ||
| "CA" | ||
| "CH" | ||
| "CL" | ||
| "CN" | ||
| "DE" | ||
| "ES" | ||
| "FI" | ||
| "FR" | ||
| "GB" | ||
| "HK" | ||
| "ID" | ||
| "IE" | ||
| "IL" | ||
| "IN" | ||
| "IT" | ||
| "JP" | ||
| "KR" | ||
| "NL" | ||
| "NO" | ||
| "PL" | ||
| "QA" | ||
| "SA" | ||
| "SE" | ||
| "SG" | ||
| "TW" | ||
| "US" | ||
| "ZA"; | ||
/** | ||
* Limit | ||
* Maximum number of results. Set to -1 for unlimited. | ||
* @default 50 | ||
*/ | ||
limit?: number; | ||
/** | ||
* Page | ||
* Page number. | ||
*/ | ||
page?: number | null; | ||
/** | ||
* Order By | ||
* Order by column. | ||
* @default "price" | ||
*/ | ||
order_by?: string; | ||
/** | ||
* Order Dir | ||
* Order direction. | ||
* @default "asc" | ||
*/ | ||
order_dir?: OrderDir; | ||
/** | ||
* Currency | ||
* Currency used for prices. | ||
* @default "USD" | ||
*/ | ||
currency?: string | null; | ||
}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = TableStoragePricesStoragePricesGetData; | ||
export type ResponseBody = SearchStoragePricesStoragePricesGetData; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well-documented namespace, but consider refining type definitions.
The namespace
AssistStoragePriceFiltersAiAssistStoragePriceFiltersGet
is well-documented and structured. However, the use of '{}' forRequestParams
andRequestHeaders
should be replaced with more explicit types to avoid ambiguity and comply with static analysis recommendations.Consider defining explicit types or interfaces for
RequestParams
andRequestHeaders
:Committable suggestion
Tools
Biome