Skip to content

Commit fdd7f93

Browse files
authored
[CP-435] Add missing fields to GetPackageRequest (booking service) (#291)
1 parent ffae80f commit fdd7f93

7 files changed

Lines changed: 131 additions & 52 deletions

File tree

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

Lines changed: 31 additions & 5 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: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

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

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

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/typescript/qdrant/cloud/booking/v1/booking_pb.d.ts

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

gen/typescript/qdrant/cloud/booking/v1/booking_pb.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/qdrant/cloud/booking/v1/booking.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ message GetPackageRequest {
174174
// The unique identifier of the package.
175175
// A unique string ID assigned to each package.
176176
string id = 2 [(buf.validate.field).string = {uuid: true}];
177+
// Required field specifying the cloud provider where the cluster will be hosted.
178+
// Must match one of the provider IDs returned by the `qdrant.cloud.platform.v1.PlatformService.ListCloudProviders` method.
179+
string cloud_provider_id = 3 [(buf.validate.field).string = {min_len: 3}];
180+
// Filter specifying the cloud region where the cluster will be hosted.
181+
// Must match one of the region IDs returned by the `qdrant.cloud.platform.v1.PlatformService.ListCloudProviderRegions` method.
182+
// This field can be omitted if `cloud_provider_id` is set to `hybrid`.
183+
optional string cloud_provider_region_id = 4 [(buf.validate.field).string = {min_len: 1}];
184+
option (buf.validate.message).cel = {
185+
id: "list_packages.cloud_provider_region_id_present"
186+
message: "cloud_provider_region_id is required when cloud_provider_id is not 'hybrid'"
187+
expression: "this.cloud_provider_id == 'hybrid' || has(this.cloud_provider_region_id)"
188+
};
177189
}
178190

179191
// GetPackageResponse is the response from the GetPackage function

0 commit comments

Comments
 (0)