@metal-stack/api 0.0.46 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/Makefile +1 -0
- package/js/buf/validate/validate_pb.js +1 -1
- package/js/buf/validate/validate_pb.ts +30 -1
- package/js/metalstack/admin/v2/filesystem_pb.js +1 -1
- package/js/metalstack/admin/v2/filesystem_pb.ts +1 -1
- package/js/metalstack/admin/v2/image_pb.js +1 -1
- package/js/metalstack/admin/v2/image_pb.ts +1 -1
- package/js/metalstack/admin/v2/network_pb.js +1 -1
- package/js/metalstack/admin/v2/network_pb.ts +1 -1
- package/js/metalstack/admin/v2/partition_pb.d.ts +61 -18
- package/js/metalstack/admin/v2/partition_pb.js +11 -1
- package/js/metalstack/admin/v2/partition_pb.ts +70 -20
- package/js/metalstack/admin/v2/project_pb.js +2 -1
- package/js/metalstack/admin/v2/project_pb.ts +2 -1
- package/js/metalstack/admin/v2/size_pb.js +1 -1
- package/js/metalstack/admin/v2/size_pb.ts +1 -1
- package/js/metalstack/admin/v2/size_reservation_pb.d.ts +235 -0
- package/js/metalstack/admin/v2/size_reservation_pb.js +58 -0
- package/js/metalstack/admin/v2/size_reservation_pb.ts +279 -0
- package/js/metalstack/api/v2/filesystem_pb.js +1 -1
- package/js/metalstack/api/v2/filesystem_pb.ts +1 -1
- package/js/metalstack/api/v2/image_pb.js +1 -1
- package/js/metalstack/api/v2/image_pb.ts +1 -1
- package/js/metalstack/api/v2/ip_pb.js +1 -1
- package/js/metalstack/api/v2/ip_pb.ts +1 -1
- package/js/metalstack/api/v2/network_pb.js +1 -1
- package/js/metalstack/api/v2/network_pb.ts +1 -1
- package/js/metalstack/api/v2/partition_pb.js +1 -1
- package/js/metalstack/api/v2/partition_pb.ts +1 -1
- package/js/metalstack/api/v2/predefined_rules_pb.d.ts +6 -0
- package/js/metalstack/api/v2/predefined_rules_pb.js +9 -3
- package/js/metalstack/api/v2/predefined_rules_pb.ts +11 -3
- package/js/metalstack/api/v2/project_pb.js +1 -1
- package/js/metalstack/api/v2/project_pb.ts +1 -1
- package/js/metalstack/api/v2/size_pb.js +1 -1
- package/js/metalstack/api/v2/size_pb.ts +1 -1
- package/js/metalstack/api/v2/size_reservation_pb.d.ts +232 -0
- package/js/metalstack/api/v2/size_reservation_pb.js +47 -0
- package/js/metalstack/api/v2/size_reservation_pb.ts +278 -0
- package/package.json +1 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Labels, Meta } from "./common_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file metalstack/api/v2/size_reservation.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_metalstack_api_v2_size_reservation: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* SizeReservationServiceGetRequest is the request payload for a size get request
|
|
10
|
+
*
|
|
11
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceGetRequest
|
|
12
|
+
*/
|
|
13
|
+
export type SizeReservationServiceGetRequest = Message<"metalstack.api.v2.SizeReservationServiceGetRequest"> & {
|
|
14
|
+
/**
|
|
15
|
+
* ID of the size reservation to get
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string id = 1;
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Project of the size reservation
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: string project = 2;
|
|
24
|
+
*/
|
|
25
|
+
project: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceGetRequest.
|
|
29
|
+
* Use `create(SizeReservationServiceGetRequestSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SizeReservationServiceGetRequestSchema: GenMessage<SizeReservationServiceGetRequest>;
|
|
32
|
+
/**
|
|
33
|
+
* SizeReservationServiceListRequest is the request payload for a size list request
|
|
34
|
+
*
|
|
35
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceListRequest
|
|
36
|
+
*/
|
|
37
|
+
export type SizeReservationServiceListRequest = Message<"metalstack.api.v2.SizeReservationServiceListRequest"> & {
|
|
38
|
+
/**
|
|
39
|
+
* Project of the size reservation
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: string project = 1;
|
|
42
|
+
*/
|
|
43
|
+
project: string;
|
|
44
|
+
/**
|
|
45
|
+
* Query for size reservations
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: metalstack.api.v2.SizeReservationQuery query = 2;
|
|
48
|
+
*/
|
|
49
|
+
query?: SizeReservationQuery;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceListRequest.
|
|
53
|
+
* Use `create(SizeReservationServiceListRequestSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export declare const SizeReservationServiceListRequestSchema: GenMessage<SizeReservationServiceListRequest>;
|
|
56
|
+
/**
|
|
57
|
+
* SizeReservationServiceGetResponse is the response payload for a size reservation get request
|
|
58
|
+
*
|
|
59
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceGetResponse
|
|
60
|
+
*/
|
|
61
|
+
export type SizeReservationServiceGetResponse = Message<"metalstack.api.v2.SizeReservationServiceGetResponse"> & {
|
|
62
|
+
/**
|
|
63
|
+
* Size reservation
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: metalstack.api.v2.SizeReservation size_reservation = 1;
|
|
66
|
+
*/
|
|
67
|
+
sizeReservation?: SizeReservation;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceGetResponse.
|
|
71
|
+
* Use `create(SizeReservationServiceGetResponseSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export declare const SizeReservationServiceGetResponseSchema: GenMessage<SizeReservationServiceGetResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* SizeReservationServiceListResponse is the response payload for a size reservation list request
|
|
76
|
+
*
|
|
77
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceListResponse
|
|
78
|
+
*/
|
|
79
|
+
export type SizeReservationServiceListResponse = Message<"metalstack.api.v2.SizeReservationServiceListResponse"> & {
|
|
80
|
+
/**
|
|
81
|
+
* Size reservations
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: repeated metalstack.api.v2.SizeReservation size_reservations = 1;
|
|
84
|
+
*/
|
|
85
|
+
sizeReservations: SizeReservation[];
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceListResponse.
|
|
89
|
+
* Use `create(SizeReservationServiceListResponseSchema)` to create a new message.
|
|
90
|
+
*/
|
|
91
|
+
export declare const SizeReservationServiceListResponseSchema: GenMessage<SizeReservationServiceListResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* SizeReservation
|
|
94
|
+
*
|
|
95
|
+
* @generated from message metalstack.api.v2.SizeReservation
|
|
96
|
+
*/
|
|
97
|
+
export type SizeReservation = Message<"metalstack.api.v2.SizeReservation"> & {
|
|
98
|
+
/**
|
|
99
|
+
* Id of this size reservation, is generated on creation
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: string id = 1;
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Meta for this size reservation
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: metalstack.api.v2.Meta meta = 2;
|
|
108
|
+
*/
|
|
109
|
+
meta?: Meta;
|
|
110
|
+
/**
|
|
111
|
+
* Name of this size reservation
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: string name = 3;
|
|
114
|
+
*/
|
|
115
|
+
name: string;
|
|
116
|
+
/**
|
|
117
|
+
* Description of this size reservation
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: string description = 4;
|
|
120
|
+
*/
|
|
121
|
+
description: string;
|
|
122
|
+
/**
|
|
123
|
+
* Project of the size reservation
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: string project = 5;
|
|
126
|
+
*/
|
|
127
|
+
project: string;
|
|
128
|
+
/**
|
|
129
|
+
* Size id of this size reservation
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: string size = 6;
|
|
132
|
+
*/
|
|
133
|
+
size: string;
|
|
134
|
+
/**
|
|
135
|
+
* Partition ids of this size reservation
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: repeated string partitions = 7;
|
|
138
|
+
*/
|
|
139
|
+
partitions: string[];
|
|
140
|
+
/**
|
|
141
|
+
* Amount of reservations of this size reservation
|
|
142
|
+
*
|
|
143
|
+
* @generated from field: int32 amount = 8;
|
|
144
|
+
*/
|
|
145
|
+
amount: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Describes the message metalstack.api.v2.SizeReservation.
|
|
149
|
+
* Use `create(SizeReservationSchema)` to create a new message.
|
|
150
|
+
*/
|
|
151
|
+
export declare const SizeReservationSchema: GenMessage<SizeReservation>;
|
|
152
|
+
/**
|
|
153
|
+
* SizeReservationQuery is used to search size reservations
|
|
154
|
+
*
|
|
155
|
+
* @generated from message metalstack.api.v2.SizeReservationQuery
|
|
156
|
+
*/
|
|
157
|
+
export type SizeReservationQuery = Message<"metalstack.api.v2.SizeReservationQuery"> & {
|
|
158
|
+
/**
|
|
159
|
+
* ID of the size reservation to get
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: optional string id = 1;
|
|
162
|
+
*/
|
|
163
|
+
id?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Name of this size reservation
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: optional string name = 2;
|
|
168
|
+
*/
|
|
169
|
+
name?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Description of this size reservation
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: optional string description = 3;
|
|
174
|
+
*/
|
|
175
|
+
description?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Size id of this size reservation
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: optional string size = 4;
|
|
180
|
+
*/
|
|
181
|
+
size?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Project of the size reservation
|
|
184
|
+
*
|
|
185
|
+
* @generated from field: optional string project = 5;
|
|
186
|
+
*/
|
|
187
|
+
project?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Partition of the size reservation
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: optional string partition = 6;
|
|
192
|
+
*/
|
|
193
|
+
partition?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Labels lists only size reservations containing the given labels
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: optional metalstack.api.v2.Labels labels = 7;
|
|
198
|
+
*/
|
|
199
|
+
labels?: Labels;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Describes the message metalstack.api.v2.SizeReservationQuery.
|
|
203
|
+
* Use `create(SizeReservationQuerySchema)` to create a new message.
|
|
204
|
+
*/
|
|
205
|
+
export declare const SizeReservationQuerySchema: GenMessage<SizeReservationQuery>;
|
|
206
|
+
/**
|
|
207
|
+
* SizeReservationService serves size reservation related functions
|
|
208
|
+
*
|
|
209
|
+
* @generated from service metalstack.api.v2.SizeReservationService
|
|
210
|
+
*/
|
|
211
|
+
export declare const SizeReservationService: GenService<{
|
|
212
|
+
/**
|
|
213
|
+
* Get a size reservation
|
|
214
|
+
*
|
|
215
|
+
* @generated from rpc metalstack.api.v2.SizeReservationService.Get
|
|
216
|
+
*/
|
|
217
|
+
get: {
|
|
218
|
+
methodKind: "unary";
|
|
219
|
+
input: typeof SizeReservationServiceGetRequestSchema;
|
|
220
|
+
output: typeof SizeReservationServiceGetResponseSchema;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* List size reservations
|
|
224
|
+
*
|
|
225
|
+
* @generated from rpc metalstack.api.v2.SizeReservationService.List
|
|
226
|
+
*/
|
|
227
|
+
list: {
|
|
228
|
+
methodKind: "unary";
|
|
229
|
+
input: typeof SizeReservationServiceListRequestSchema;
|
|
230
|
+
output: typeof SizeReservationServiceListResponseSchema;
|
|
231
|
+
};
|
|
232
|
+
}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/api/v2/size_reservation.proto (package metalstack.api.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
6
|
+
import { file_metalstack_api_v2_common } from "./common_pb";
|
|
7
|
+
import { file_metalstack_api_v2_predefined_rules } from "./predefined_rules_pb";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file metalstack/api/v2/size_reservation.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_metalstack_api_v2_size_reservation = /*@__PURE__*/ fileDesc("CihtZXRhbHN0YWNrL2FwaS92Mi9zaXplX3Jlc2VydmF0aW9uLnByb3RvEhFtZXRhbHN0YWNrLmFwaS52MiJTCiBTaXplUmVzZXJ2YXRpb25TZXJ2aWNlR2V0UmVxdWVzdBIUCgJpZBgBIAEoCUIIukgFcgOwAQESGQoHcHJvamVjdBgCIAEoCUIIukgFcgOwAQEidgohU2l6ZVJlc2VydmF0aW9uU2VydmljZUxpc3RSZXF1ZXN0EhkKB3Byb2plY3QYASABKAlCCLpIBXIDsAEBEjYKBXF1ZXJ5GAIgASgLMicubWV0YWxzdGFjay5hcGkudjIuU2l6ZVJlc2VydmF0aW9uUXVlcnkiYQohU2l6ZVJlc2VydmF0aW9uU2VydmljZUdldFJlc3BvbnNlEjwKEHNpemVfcmVzZXJ2YXRpb24YASABKAsyIi5tZXRhbHN0YWNrLmFwaS52Mi5TaXplUmVzZXJ2YXRpb24iYwoiU2l6ZVJlc2VydmF0aW9uU2VydmljZUxpc3RSZXNwb25zZRI9ChF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AMBAgPg8xgCEoABCgRMaXN0EjQubWV0YWxzdGFjay5hcGkudjIuU2l6ZVJlc2VydmF0aW9uU2VydmljZUxpc3RSZXF1ZXN0GjUubWV0YWxzdGFjay5hcGkudjIuU2l6ZVJlc2VydmF0aW9uU2VydmljZUxpc3RSZXNwb25zZSILyvMYAwECA+DzGAJCygEKFWNvbS5tZXRhbHN0YWNrLmFwaS52MkIUU2l6ZVJlc2VydmF0aW9uUHJvdG9QAVo1Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hcGkvdjI7YXBpdjKiAgNNQViqAhFNZXRhbHN0YWNrLkFwaS5WMsoCEU1ldGFsc3RhY2tcQXBpXFYy4gIdTWV0YWxzdGFja1xBcGlcVjJcR1BCTWV0YWRhdGHqAhNNZXRhbHN0YWNrOjpBcGk6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceGetRequest.
|
|
14
|
+
* Use `create(SizeReservationServiceGetRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const SizeReservationServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size_reservation, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceListRequest.
|
|
19
|
+
* Use `create(SizeReservationServiceListRequestSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const SizeReservationServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size_reservation, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceGetResponse.
|
|
24
|
+
* Use `create(SizeReservationServiceGetResponseSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const SizeReservationServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size_reservation, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceListResponse.
|
|
29
|
+
* Use `create(SizeReservationServiceListResponseSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const SizeReservationServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size_reservation, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message metalstack.api.v2.SizeReservation.
|
|
34
|
+
* Use `create(SizeReservationSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const SizeReservationSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size_reservation, 4);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message metalstack.api.v2.SizeReservationQuery.
|
|
39
|
+
* Use `create(SizeReservationQuerySchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const SizeReservationQuerySchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_size_reservation, 5);
|
|
42
|
+
/**
|
|
43
|
+
* SizeReservationService serves size reservation related functions
|
|
44
|
+
*
|
|
45
|
+
* @generated from service metalstack.api.v2.SizeReservationService
|
|
46
|
+
*/
|
|
47
|
+
export const SizeReservationService = /*@__PURE__*/ serviceDesc(file_metalstack_api_v2_size_reservation, 0);
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/api/v2/size_reservation.proto (package metalstack.api.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
8
|
+
import type { Labels, Meta } from "./common_pb";
|
|
9
|
+
import { file_metalstack_api_v2_common } from "./common_pb";
|
|
10
|
+
import { file_metalstack_api_v2_predefined_rules } from "./predefined_rules_pb";
|
|
11
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the file metalstack/api/v2/size_reservation.proto.
|
|
15
|
+
*/
|
|
16
|
+
export const file_metalstack_api_v2_size_reservation: GenFile = /*@__PURE__*/
|
|
17
|
+
fileDesc("CihtZXRhbHN0YWNrL2FwaS92Mi9zaXplX3Jlc2VydmF0aW9uLnByb3RvEhFtZXRhbHN0YWNrLmFwaS52MiJTCiBTaXplUmVzZXJ2YXRpb25TZXJ2aWNlR2V0UmVxdWVzdBIUCgJpZBgBIAEoCUIIukgFcgOwAQESGQoHcHJvamVjdBgCIAEoCUIIukgFcgOwAQEidgohU2l6ZVJlc2VydmF0aW9uU2VydmljZUxpc3RSZXF1ZXN0EhkKB3Byb2plY3QYASABKAlCCLpIBXIDsAEBEjYKBXF1ZXJ5GAIgASgLMicubWV0YWxzdGFjay5hcGkudjIuU2l6ZVJlc2VydmF0aW9uUXVlcnkiYQohU2l6ZVJlc2VydmF0aW9uU2VydmljZUdldFJlc3BvbnNlEjwKEHNpemVfcmVzZXJ2YXRpb24YASABKAsyIi5tZXRhbHN0YWNrLmFwaS52Mi5TaXplUmVzZXJ2YXRpb24iYwoiU2l6ZVJlc2VydmF0aW9uU2VydmljZUxpc3RSZXNwb25zZRI9ChFzaXplX3Jlc2VydmF0aW9ucxgBIAMoCzIiLm1ldGFsc3RhY2suYXBpLnYyLlNpemVSZXNlcnZhdGlvbiKHAgoPU2l6ZVJlc2VydmF0aW9uEhcKAmlkGAEgASgJQgu6SAjYAQFyA7ABARIlCgRtZXRhGAIgASgLMhcubWV0YWxzdGFjay5hcGkudjIuTWV0YRIZCgRuYW1lGAMgASgJQgu6SAhyBsCzrrECARIgCgtkZXNjcmlwdGlvbhgEIAEoCUILukgIcgbIs66xAgESGQoHcHJvamVjdBgFIAEoCUIIukgFcgOwAQESGQoEc2l6ZRgGIAE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djKiAgNNQViqAhFNZXRhbHN0YWNrLkFwaS5WMsoCEU1ldGFsc3RhY2tcQXBpXFYy4gIdTWV0YWxzdGFja1xBcGlcVjJcR1BCTWV0YWRhdGHqAhNNZXRhbHN0YWNrOjpBcGk6OlYyYgZwcm90bzM", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* SizeReservationServiceGetRequest is the request payload for a size get request
|
|
21
|
+
*
|
|
22
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceGetRequest
|
|
23
|
+
*/
|
|
24
|
+
export type SizeReservationServiceGetRequest = Message<"metalstack.api.v2.SizeReservationServiceGetRequest"> & {
|
|
25
|
+
/**
|
|
26
|
+
* ID of the size reservation to get
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string id = 1;
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Project of the size reservation
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: string project = 2;
|
|
36
|
+
*/
|
|
37
|
+
project: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceGetRequest.
|
|
42
|
+
* Use `create(SizeReservationServiceGetRequestSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const SizeReservationServiceGetRequestSchema: GenMessage<SizeReservationServiceGetRequest> = /*@__PURE__*/
|
|
45
|
+
messageDesc(file_metalstack_api_v2_size_reservation, 0);
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* SizeReservationServiceListRequest is the request payload for a size list request
|
|
49
|
+
*
|
|
50
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceListRequest
|
|
51
|
+
*/
|
|
52
|
+
export type SizeReservationServiceListRequest = Message<"metalstack.api.v2.SizeReservationServiceListRequest"> & {
|
|
53
|
+
/**
|
|
54
|
+
* Project of the size reservation
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: string project = 1;
|
|
57
|
+
*/
|
|
58
|
+
project: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Query for size reservations
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: metalstack.api.v2.SizeReservationQuery query = 2;
|
|
64
|
+
*/
|
|
65
|
+
query?: SizeReservationQuery;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceListRequest.
|
|
70
|
+
* Use `create(SizeReservationServiceListRequestSchema)` to create a new message.
|
|
71
|
+
*/
|
|
72
|
+
export const SizeReservationServiceListRequestSchema: GenMessage<SizeReservationServiceListRequest> = /*@__PURE__*/
|
|
73
|
+
messageDesc(file_metalstack_api_v2_size_reservation, 1);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* SizeReservationServiceGetResponse is the response payload for a size reservation get request
|
|
77
|
+
*
|
|
78
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceGetResponse
|
|
79
|
+
*/
|
|
80
|
+
export type SizeReservationServiceGetResponse = Message<"metalstack.api.v2.SizeReservationServiceGetResponse"> & {
|
|
81
|
+
/**
|
|
82
|
+
* Size reservation
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: metalstack.api.v2.SizeReservation size_reservation = 1;
|
|
85
|
+
*/
|
|
86
|
+
sizeReservation?: SizeReservation;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceGetResponse.
|
|
91
|
+
* Use `create(SizeReservationServiceGetResponseSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export const SizeReservationServiceGetResponseSchema: GenMessage<SizeReservationServiceGetResponse> = /*@__PURE__*/
|
|
94
|
+
messageDesc(file_metalstack_api_v2_size_reservation, 2);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* SizeReservationServiceListResponse is the response payload for a size reservation list request
|
|
98
|
+
*
|
|
99
|
+
* @generated from message metalstack.api.v2.SizeReservationServiceListResponse
|
|
100
|
+
*/
|
|
101
|
+
export type SizeReservationServiceListResponse = Message<"metalstack.api.v2.SizeReservationServiceListResponse"> & {
|
|
102
|
+
/**
|
|
103
|
+
* Size reservations
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: repeated metalstack.api.v2.SizeReservation size_reservations = 1;
|
|
106
|
+
*/
|
|
107
|
+
sizeReservations: SizeReservation[];
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Describes the message metalstack.api.v2.SizeReservationServiceListResponse.
|
|
112
|
+
* Use `create(SizeReservationServiceListResponseSchema)` to create a new message.
|
|
113
|
+
*/
|
|
114
|
+
export const SizeReservationServiceListResponseSchema: GenMessage<SizeReservationServiceListResponse> = /*@__PURE__*/
|
|
115
|
+
messageDesc(file_metalstack_api_v2_size_reservation, 3);
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* SizeReservation
|
|
119
|
+
*
|
|
120
|
+
* @generated from message metalstack.api.v2.SizeReservation
|
|
121
|
+
*/
|
|
122
|
+
export type SizeReservation = Message<"metalstack.api.v2.SizeReservation"> & {
|
|
123
|
+
/**
|
|
124
|
+
* Id of this size reservation, is generated on creation
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string id = 1;
|
|
127
|
+
*/
|
|
128
|
+
id: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Meta for this size reservation
|
|
132
|
+
*
|
|
133
|
+
* @generated from field: metalstack.api.v2.Meta meta = 2;
|
|
134
|
+
*/
|
|
135
|
+
meta?: Meta;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Name of this size reservation
|
|
139
|
+
*
|
|
140
|
+
* @generated from field: string name = 3;
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Description of this size reservation
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: string description = 4;
|
|
148
|
+
*/
|
|
149
|
+
description: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Project of the size reservation
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: string project = 5;
|
|
155
|
+
*/
|
|
156
|
+
project: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Size id of this size reservation
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: string size = 6;
|
|
162
|
+
*/
|
|
163
|
+
size: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Partition ids of this size reservation
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: repeated string partitions = 7;
|
|
169
|
+
*/
|
|
170
|
+
partitions: string[];
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Amount of reservations of this size reservation
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: int32 amount = 8;
|
|
176
|
+
*/
|
|
177
|
+
amount: number;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Describes the message metalstack.api.v2.SizeReservation.
|
|
182
|
+
* Use `create(SizeReservationSchema)` to create a new message.
|
|
183
|
+
*/
|
|
184
|
+
export const SizeReservationSchema: GenMessage<SizeReservation> = /*@__PURE__*/
|
|
185
|
+
messageDesc(file_metalstack_api_v2_size_reservation, 4);
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* SizeReservationQuery is used to search size reservations
|
|
189
|
+
*
|
|
190
|
+
* @generated from message metalstack.api.v2.SizeReservationQuery
|
|
191
|
+
*/
|
|
192
|
+
export type SizeReservationQuery = Message<"metalstack.api.v2.SizeReservationQuery"> & {
|
|
193
|
+
/**
|
|
194
|
+
* ID of the size reservation to get
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: optional string id = 1;
|
|
197
|
+
*/
|
|
198
|
+
id?: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Name of this size reservation
|
|
202
|
+
*
|
|
203
|
+
* @generated from field: optional string name = 2;
|
|
204
|
+
*/
|
|
205
|
+
name?: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Description of this size reservation
|
|
209
|
+
*
|
|
210
|
+
* @generated from field: optional string description = 3;
|
|
211
|
+
*/
|
|
212
|
+
description?: string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Size id of this size reservation
|
|
216
|
+
*
|
|
217
|
+
* @generated from field: optional string size = 4;
|
|
218
|
+
*/
|
|
219
|
+
size?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Project of the size reservation
|
|
223
|
+
*
|
|
224
|
+
* @generated from field: optional string project = 5;
|
|
225
|
+
*/
|
|
226
|
+
project?: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Partition of the size reservation
|
|
230
|
+
*
|
|
231
|
+
* @generated from field: optional string partition = 6;
|
|
232
|
+
*/
|
|
233
|
+
partition?: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Labels lists only size reservations containing the given labels
|
|
237
|
+
*
|
|
238
|
+
* @generated from field: optional metalstack.api.v2.Labels labels = 7;
|
|
239
|
+
*/
|
|
240
|
+
labels?: Labels;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Describes the message metalstack.api.v2.SizeReservationQuery.
|
|
245
|
+
* Use `create(SizeReservationQuerySchema)` to create a new message.
|
|
246
|
+
*/
|
|
247
|
+
export const SizeReservationQuerySchema: GenMessage<SizeReservationQuery> = /*@__PURE__*/
|
|
248
|
+
messageDesc(file_metalstack_api_v2_size_reservation, 5);
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* SizeReservationService serves size reservation related functions
|
|
252
|
+
*
|
|
253
|
+
* @generated from service metalstack.api.v2.SizeReservationService
|
|
254
|
+
*/
|
|
255
|
+
export const SizeReservationService: GenService<{
|
|
256
|
+
/**
|
|
257
|
+
* Get a size reservation
|
|
258
|
+
*
|
|
259
|
+
* @generated from rpc metalstack.api.v2.SizeReservationService.Get
|
|
260
|
+
*/
|
|
261
|
+
get: {
|
|
262
|
+
methodKind: "unary";
|
|
263
|
+
input: typeof SizeReservationServiceGetRequestSchema;
|
|
264
|
+
output: typeof SizeReservationServiceGetResponseSchema;
|
|
265
|
+
},
|
|
266
|
+
/**
|
|
267
|
+
* List size reservations
|
|
268
|
+
*
|
|
269
|
+
* @generated from rpc metalstack.api.v2.SizeReservationService.List
|
|
270
|
+
*/
|
|
271
|
+
list: {
|
|
272
|
+
methodKind: "unary";
|
|
273
|
+
input: typeof SizeReservationServiceListRequestSchema;
|
|
274
|
+
output: typeof SizeReservationServiceListResponseSchema;
|
|
275
|
+
},
|
|
276
|
+
}> = /*@__PURE__*/
|
|
277
|
+
serviceDesc(file_metalstack_api_v2_size_reservation, 0);
|
|
278
|
+
|
package/package.json
CHANGED