Skip to content

Commit 1311a10

Browse files
[CP-142] Add ListGlobalPackages service definition (#97)
* Add PublicBookingService to fetch public packages with no authentication required * Format the proto file and generate code. * Reuse existing service. Introduce new request response models for nse service. * generate code. * Add Resource options api definition * Allow words in spellchecker. * Address the code review feedback. * Remove ListGlobalResourceOptions API and related definitions * Clarify comment on available additional resources in booking.proto * Update comments in booking.proto for clarity and correctness * run make generate
1 parent 54d0957 commit 1311a10

12 files changed

Lines changed: 736 additions & 148 deletions

File tree

.github/actions/spelling/allow.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ nvidia
1919
amd
2020
linode
2121
openshift
22+
gibibytes
23+
millicore
2224
timeseries
2325
vcpu

buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
version: v2
33
deps:
44
- name: buf.build/bufbuild/protovalidate
5-
commit: 8976f5be98c146529b1cc15cd2012b60
6-
digest: b5:5d513af91a439d9e78cacac0c9455c7cb885a8737d30405d0b91974fe05276d19c07a876a51a107213a3d01b83ecc912996cdad4cddf7231f91379079cf7488d
5+
commit: b52ab10f44684cb19d1fbcad56aedd36
6+
digest: b5:5f464399f5ea7546eb3c6a4e822a306da538298f3d87e9f974f4523d4955de396eb2b8b52a2f3f06ac290764d80cecbaa0a4c96560558e43d9b1c722e61a9d5c
77
- name: buf.build/googleapis/googleapis
88
commit: 61b203b9a9164be9a834f58c37be6f62
99
digest: b5:7811a98b35bd2e4ae5c3ac73c8b3d9ae429f3a790da15de188dc98fc2b77d6bb10e45711f14903af9553fa9821dff256054f2e4b7795789265bc476bec2f088c

gen/go/qdrant/cloud/booking/v1/booking.pb.go

Lines changed: 333 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/qdrant/cloud/booking/v1/booking_grpc.pb.go

Lines changed: 46 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/booking/v1/booking.swagger.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,45 @@
116116
"BookingService"
117117
]
118118
}
119+
},
120+
"/api/booking/v1/packages": {
121+
"get": {
122+
"summary": "Fetch all public packages\nRequired permissions:\n- None (public endpoint)\nbuf:lint:ignore QDRANT_CLOUD_METHOD_OPTIONS",
123+
"operationId": "BookingService_ListGlobalPackages",
124+
"responses": {
125+
"200": {
126+
"description": "A successful response.",
127+
"schema": {
128+
"$ref": "#/definitions/v1ListGlobalPackagesResponse"
129+
}
130+
},
131+
"default": {
132+
"description": "An unexpected error response.",
133+
"schema": {
134+
"$ref": "#/definitions/rpcStatus"
135+
}
136+
}
137+
},
138+
"parameters": [
139+
{
140+
"name": "cloudProviderId",
141+
"description": "Mandatory filter specifying the cloud provider where the cluster will be hosted.\nMust match one of the provider IDs returned by the `qdrant.cloud.platform.v1.PlatformService.ListGlobalCloudProviders` method.",
142+
"in": "query",
143+
"required": false,
144+
"type": "string"
145+
},
146+
{
147+
"name": "cloudProviderRegionId",
148+
"description": "Filter specifying the cloud region where the cluster will be hosted.\nMust match one of the region IDs returned by the `qdrant.cloud.platform.v1.PlatformService.ListGlobalCloudProviderRegions` method.\nField can be omitted, if cloud_provider_id is `hybrid`",
149+
"in": "query",
150+
"required": false,
151+
"type": "string"
152+
}
153+
],
154+
"tags": [
155+
"BookingService"
156+
]
157+
}
119158
}
120159
},
121160
"definitions": {
@@ -147,6 +186,17 @@
147186
}
148187
}
149188
},
189+
"v1AvailableAdditionalResources": {
190+
"type": "object",
191+
"properties": {
192+
"diskPricePerHour": {
193+
"type": "integer",
194+
"format": "int64",
195+
"description": "The unit price per hour in millicents, in integer format.\nRepresents the cost per hour for a single unit(GiB) of the resource.\nYou will be billed hourly for the resources you use. Partial hours are rounded up and billed as full hours."
196+
}
197+
},
198+
"description": "AvailableAdditionalResources represents additional resources that can be added to the cluster."
199+
},
150200
"v1GetPackageResponse": {
151201
"type": "object",
152202
"properties": {
@@ -157,6 +207,20 @@
157207
},
158208
"title": "GetPackageResponse is the response from the GetPackage function"
159209
},
210+
"v1ListGlobalPackagesResponse": {
211+
"type": "object",
212+
"properties": {
213+
"items": {
214+
"type": "array",
215+
"items": {
216+
"type": "object",
217+
"$ref": "#/definitions/v1Package"
218+
},
219+
"title": "The actual packages in this list"
220+
}
221+
},
222+
"title": "ListPackagesResponse is the response from the ListPackages function"
223+
},
160224
"v1ListPackagesResponse": {
161225
"type": "object",
162226
"properties": {
@@ -202,6 +266,10 @@
202266
"status": {
203267
"$ref": "#/definitions/v1PackageStatus",
204268
"description": "The status of the package.\nIndicates the current status of the package."
269+
},
270+
"availableAdditionalResources": {
271+
"$ref": "#/definitions/v1AvailableAdditionalResources",
272+
"description": "Optional additional resources that can be added to the cluster.\nif not set, additional resources are not available for this package.\nCurrently, only `DISK` is supported."
205273
}
206274
},
207275
"description": "Package represents a single package.\nA package is a configuration (CPU/Memory/Disk size) for a cluster with a price."

gen/python/qdrant/cloud/booking/v1/booking_pb2.py

Lines changed: 23 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)