Skip to content

Commit a4b0cfd

Browse files
Align packages service comments to the behaviour (#108)
* Update booking.proto to change cloud_provider_id to required and clarify cloud_provider_region_id behavior * Generate code from updated proto files.
1 parent 30ce9f6 commit a4b0cfd

6 files changed

Lines changed: 183 additions & 190 deletions

File tree

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

Lines changed: 146 additions & 149 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@
4444
},
4545
{
4646
"name": "cloudProviderId",
47-
"description": "Optional 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.ListCloudProviders` method.\nIf omitted, all packages for the specified account are returned.",
47+
"description": "Required field 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.ListCloudProviders` method.",
4848
"in": "query",
4949
"required": false,
5050
"type": "string"
5151
},
5252
{
5353
"name": "cloudProviderRegionId",
54-
"description": "Optional 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.ListCloudProviderRegions` method.\nIf omitted, all packages for the specified account are returned.\nThis field is ignored when the `cloud_provider_id` is set to 'hybrid'.",
54+
"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.ListCloudProviderRegions` method.\nThis field can be omitted if `cloud_provider_id` is set to `hybrid`.",
5555
"in": "query",
5656
"required": false,
5757
"type": "string"
5858
},
5959
{
6060
"name": "statuses",
61-
"description": "The status of the packages to filter.\nThis is an optional field. If value is not set, all packages are returned.\n\n - PACKAGE_STATUS_UNSPECIFIED: Unspecified package status.\n - PACKAGE_STATUS_ACTIVE: The package is active and available for use.\n - PACKAGE_STATUS_DEACTIVATED: The package is deactivated.",
61+
"description": "The status of the packages to filter.\nThis is an optional field. If value is not set, only active packages are returned.\n\n - PACKAGE_STATUS_UNSPECIFIED: Unspecified package status.\n - PACKAGE_STATUS_ACTIVE: The package is active and available for use.\n - PACKAGE_STATUS_DEACTIVATED: The package is deactivated.",
6262
"in": "query",
6363
"required": false,
6464
"type": "array",

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

Lines changed: 22 additions & 22 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.d.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,25 @@ export declare type ListPackagesRequest = Message<"qdrant.cloud.booking.v1.ListP
2525
accountId: string;
2626

2727
/**
28-
* Optional filter specifying the cloud provider where the cluster will be hosted.
28+
* Required field specifying the cloud provider where the cluster will be hosted.
2929
* Must match one of the provider IDs returned by the `qdrant.cloud.platform.v1.PlatformService.ListCloudProviders` method.
30-
* If omitted, all packages for the specified account are returned.
3130
*
32-
* @generated from field: optional string cloud_provider_id = 2;
31+
* @generated from field: string cloud_provider_id = 2;
3332
*/
34-
cloudProviderId?: string;
33+
cloudProviderId: string;
3534

3635
/**
37-
* Optional filter specifying the cloud region where the cluster will be hosted.
36+
* Filter specifying the cloud region where the cluster will be hosted.
3837
* Must match one of the region IDs returned by the `qdrant.cloud.platform.v1.PlatformService.ListCloudProviderRegions` method.
39-
* If omitted, all packages for the specified account are returned.
40-
* This field is ignored when the `cloud_provider_id` is set to 'hybrid'.
38+
* This field can be omitted if `cloud_provider_id` is set to `hybrid`.
4139
*
4240
* @generated from field: optional string cloud_provider_region_id = 3;
4341
*/
4442
cloudProviderRegionId?: string;
4543

4644
/**
4745
* The status of the packages to filter.
48-
* This is an optional field. If value is not set, all packages are returned.
46+
* This is an optional field. If value is not set, only active packages are returned.
4947
*
5048
* @generated from field: repeated qdrant.cloud.booking.v1.PackageStatus statuses = 4;
5149
*/

0 commit comments

Comments
 (0)