@metal-stack/api 0.0.40-beta.0
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/LICENSE +21 -0
- package/README.md +111 -0
- package/js/Makefile +16 -0
- package/js/buf/validate/validate_pb.d.ts +4597 -0
- package/js/buf/validate/validate_pb.js +351 -0
- package/js/buf/validate/validate_pb.ts +4938 -0
- package/js/metalstack/admin/v2/filesystem_pb.d.ts +207 -0
- package/js/metalstack/admin/v2/filesystem_pb.js +48 -0
- package/js/metalstack/admin/v2/filesystem_pb.ts +248 -0
- package/js/metalstack/admin/v2/image_pb.d.ts +242 -0
- package/js/metalstack/admin/v2/image_pb.js +59 -0
- package/js/metalstack/admin/v2/image_pb.ts +288 -0
- package/js/metalstack/admin/v2/ip_pb.d.ts +60 -0
- package/js/metalstack/admin/v2/ip_pb.js +26 -0
- package/js/metalstack/admin/v2/ip_pb.ts +78 -0
- package/js/metalstack/admin/v2/machine_pb.d.ts +113 -0
- package/js/metalstack/admin/v2/machine_pb.js +38 -0
- package/js/metalstack/admin/v2/machine_pb.ts +140 -0
- package/js/metalstack/admin/v2/network_pb.d.ts +407 -0
- package/js/metalstack/admin/v2/network_pb.js +68 -0
- package/js/metalstack/admin/v2/network_pb.ts +478 -0
- package/js/metalstack/admin/v2/partition_pb.d.ts +341 -0
- package/js/metalstack/admin/v2/partition_pb.js +58 -0
- package/js/metalstack/admin/v2/partition_pb.ts +402 -0
- package/js/metalstack/admin/v2/project_pb.d.ts +67 -0
- package/js/metalstack/admin/v2/project_pb.js +27 -0
- package/js/metalstack/admin/v2/project_pb.ts +87 -0
- package/js/metalstack/admin/v2/size_pb.d.ts +183 -0
- package/js/metalstack/admin/v2/size_pb.js +48 -0
- package/js/metalstack/admin/v2/size_pb.ts +220 -0
- package/js/metalstack/admin/v2/switch_pb.d.ts +377 -0
- package/js/metalstack/admin/v2/switch_pb.js +79 -0
- package/js/metalstack/admin/v2/switch_pb.ts +435 -0
- package/js/metalstack/admin/v2/tenant_pb.d.ts +149 -0
- package/js/metalstack/admin/v2/tenant_pb.js +38 -0
- package/js/metalstack/admin/v2/tenant_pb.ts +182 -0
- package/js/metalstack/admin/v2/token_pb.d.ts +164 -0
- package/js/metalstack/admin/v2/token_pb.js +47 -0
- package/js/metalstack/admin/v2/token_pb.ts +199 -0
- package/js/metalstack/admin/v2/vpn_pb.ts +184 -0
- package/js/metalstack/api/v2/common_pb.d.ts +407 -0
- package/js/metalstack/api/v2/common_pb.js +311 -0
- package/js/metalstack/api/v2/common_pb.ts +488 -0
- package/js/metalstack/api/v2/filesystem_pb.d.ts +704 -0
- package/js/metalstack/api/v2/filesystem_pb.js +259 -0
- package/js/metalstack/api/v2/filesystem_pb.ts +819 -0
- package/js/metalstack/api/v2/health_pb.d.ts +220 -0
- package/js/metalstack/api/v2/health_pb.js +130 -0
- package/js/metalstack/api/v2/health_pb.ts +264 -0
- package/js/metalstack/api/v2/image_pb.d.ts +368 -0
- package/js/metalstack/api/v2/image_pb.js +129 -0
- package/js/metalstack/api/v2/image_pb.ts +436 -0
- package/js/metalstack/api/v2/ip_pb.d.ts +555 -0
- package/js/metalstack/api/v2/ip_pb.js +137 -0
- package/js/metalstack/api/v2/ip_pb.ts +650 -0
- package/js/metalstack/api/v2/machine_pb.d.ts +1831 -0
- package/js/metalstack/api/v2/machine_pb.js +459 -0
- package/js/metalstack/api/v2/machine_pb.ts +2155 -0
- package/js/metalstack/api/v2/method_pb.d.ts +122 -0
- package/js/metalstack/api/v2/method_pb.js +38 -0
- package/js/metalstack/api/v2/method_pb.ts +149 -0
- package/js/metalstack/api/v2/network_pb.d.ts +820 -0
- package/js/metalstack/api/v2/network_pb.js +244 -0
- package/js/metalstack/api/v2/network_pb.ts +954 -0
- package/js/metalstack/api/v2/partition_pb.d.ts +251 -0
- package/js/metalstack/api/v2/partition_pb.js +62 -0
- package/js/metalstack/api/v2/partition_pb.ts +300 -0
- package/js/metalstack/api/v2/predefined_rules_pb.d.ts +54 -0
- package/js/metalstack/api/v2/predefined_rules_pb.js +57 -0
- package/js/metalstack/api/v2/predefined_rules_pb.ts +79 -0
- package/js/metalstack/api/v2/project_pb.d.ts +862 -0
- package/js/metalstack/api/v2/project_pb.js +163 -0
- package/js/metalstack/api/v2/project_pb.ts +1001 -0
- package/js/metalstack/api/v2/size_pb.d.ts +261 -0
- package/js/metalstack/api/v2/size_pb.js +94 -0
- package/js/metalstack/api/v2/size_pb.ts +312 -0
- package/js/metalstack/api/v2/switch_pb.d.ts +508 -0
- package/js/metalstack/api/v2/switch_pb.js +207 -0
- package/js/metalstack/api/v2/switch_pb.ts +653 -0
- package/js/metalstack/api/v2/tenant_pb.d.ts +864 -0
- package/js/metalstack/api/v2/tenant_pb.js +163 -0
- package/js/metalstack/api/v2/tenant_pb.ts +1004 -0
- package/js/metalstack/api/v2/token_pb.d.ts +540 -0
- package/js/metalstack/api/v2/token_pb.js +118 -0
- package/js/metalstack/api/v2/token_pb.ts +621 -0
- package/js/metalstack/api/v2/user_pb.d.ts +108 -0
- package/js/metalstack/api/v2/user_pb.js +34 -0
- package/js/metalstack/api/v2/user_pb.ts +139 -0
- package/js/metalstack/api/v2/version_pb.d.ts +88 -0
- package/js/metalstack/api/v2/version_pb.js +30 -0
- package/js/metalstack/api/v2/version_pb.ts +112 -0
- package/js/metalstack/api/v2/vpn_pb.ts +72 -0
- package/js/metalstack/infra/v2/bmc_pb.d.ts +45 -0
- package/js/metalstack/infra/v2/bmc_pb.js +25 -0
- package/js/metalstack/infra/v2/bmc_pb.ts +104 -0
- package/js/metalstack/infra/v2/event_pb.d.ts +181 -0
- package/js/metalstack/infra/v2/event_pb.js +116 -0
- package/js/metalstack/infra/v2/event_pb.ts +218 -0
- package/js/metalstack/infra/v2/switch_pb.d.ts +223 -0
- package/js/metalstack/infra/v2/switch_pb.js +54 -0
- package/js/metalstack/infra/v2/switch_pb.ts +228 -0
- package/js/tsconfig.json +70 -0
- package/package.json +21 -0
|
@@ -0,0 +1,251 @@
|
|
|
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/partition.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_metalstack_api_v2_partition: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Partition is a failure domain with machines and switches
|
|
10
|
+
*
|
|
11
|
+
* @generated from message metalstack.api.v2.Partition
|
|
12
|
+
*/
|
|
13
|
+
export type Partition = Message<"metalstack.api.v2.Partition"> & {
|
|
14
|
+
/**
|
|
15
|
+
* ID of this partition
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string id = 1;
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Meta for this ip
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: metalstack.api.v2.Meta meta = 2;
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
* Description of this partition
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string description = 3;
|
|
30
|
+
*/
|
|
31
|
+
description: string;
|
|
32
|
+
/**
|
|
33
|
+
* PartitionBootConfiguration defines how metal-hammer boots
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: metalstack.api.v2.PartitionBootConfiguration boot_configuration = 4;
|
|
36
|
+
*/
|
|
37
|
+
bootConfiguration?: PartitionBootConfiguration;
|
|
38
|
+
/**
|
|
39
|
+
* DNSServers for this partition
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: repeated metalstack.api.v2.DNSServer dns_server = 5;
|
|
42
|
+
*/
|
|
43
|
+
dnsServer: DNSServer[];
|
|
44
|
+
/**
|
|
45
|
+
* NTPServers for this partition
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: repeated metalstack.api.v2.NTPServer ntp_server = 6;
|
|
48
|
+
*/
|
|
49
|
+
ntpServer: NTPServer[];
|
|
50
|
+
/**
|
|
51
|
+
* ManagementServiceAddresses defines where the management is reachable
|
|
52
|
+
* should be in the form <ip|host>:<port>
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: repeated string mgmt_service_addresses = 7;
|
|
55
|
+
*/
|
|
56
|
+
mgmtServiceAddresses: string[];
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message metalstack.api.v2.Partition.
|
|
60
|
+
* Use `create(PartitionSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const PartitionSchema: GenMessage<Partition>;
|
|
63
|
+
/**
|
|
64
|
+
* PartitionQuery is used to search partitions
|
|
65
|
+
*
|
|
66
|
+
* @generated from message metalstack.api.v2.PartitionQuery
|
|
67
|
+
*/
|
|
68
|
+
export type PartitionQuery = Message<"metalstack.api.v2.PartitionQuery"> & {
|
|
69
|
+
/**
|
|
70
|
+
* ID of the partition to get
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: optional string id = 1;
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Labels lists only partitions containing the given labels
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: optional metalstack.api.v2.Labels labels = 2;
|
|
79
|
+
*/
|
|
80
|
+
labels?: Labels;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message metalstack.api.v2.PartitionQuery.
|
|
84
|
+
* Use `create(PartitionQuerySchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export declare const PartitionQuerySchema: GenMessage<PartitionQuery>;
|
|
87
|
+
/**
|
|
88
|
+
* PartitionBootConfiguration defines how metal-hammer boots
|
|
89
|
+
*
|
|
90
|
+
* @generated from message metalstack.api.v2.PartitionBootConfiguration
|
|
91
|
+
*/
|
|
92
|
+
export type PartitionBootConfiguration = Message<"metalstack.api.v2.PartitionBootConfiguration"> & {
|
|
93
|
+
/**
|
|
94
|
+
* ImageURL the url to download the initrd for the boot image
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: string image_url = 1;
|
|
97
|
+
*/
|
|
98
|
+
imageUrl: string;
|
|
99
|
+
/**
|
|
100
|
+
* KernelURL the url to download the kernel for the boot image
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: string kernel_url = 2;
|
|
103
|
+
*/
|
|
104
|
+
kernelUrl: string;
|
|
105
|
+
/**
|
|
106
|
+
* Commandline the cmdline to the kernel for the boot image
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: string commandline = 3;
|
|
109
|
+
*/
|
|
110
|
+
commandline: string;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Describes the message metalstack.api.v2.PartitionBootConfiguration.
|
|
114
|
+
* Use `create(PartitionBootConfigurationSchema)` to create a new message.
|
|
115
|
+
*/
|
|
116
|
+
export declare const PartitionBootConfigurationSchema: GenMessage<PartitionBootConfiguration>;
|
|
117
|
+
/**
|
|
118
|
+
* DNSServer
|
|
119
|
+
*
|
|
120
|
+
* @generated from message metalstack.api.v2.DNSServer
|
|
121
|
+
*/
|
|
122
|
+
export type DNSServer = Message<"metalstack.api.v2.DNSServer"> & {
|
|
123
|
+
/**
|
|
124
|
+
* IP address of this dns server
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string ip = 1;
|
|
127
|
+
*/
|
|
128
|
+
ip: string;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Describes the message metalstack.api.v2.DNSServer.
|
|
132
|
+
* Use `create(DNSServerSchema)` to create a new message.
|
|
133
|
+
*/
|
|
134
|
+
export declare const DNSServerSchema: GenMessage<DNSServer>;
|
|
135
|
+
/**
|
|
136
|
+
* NTPServer
|
|
137
|
+
*
|
|
138
|
+
* @generated from message metalstack.api.v2.NTPServer
|
|
139
|
+
*/
|
|
140
|
+
export type NTPServer = Message<"metalstack.api.v2.NTPServer"> & {
|
|
141
|
+
/**
|
|
142
|
+
* Address either as ip or hostname
|
|
143
|
+
*
|
|
144
|
+
* @generated from field: string address = 1;
|
|
145
|
+
*/
|
|
146
|
+
address: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Describes the message metalstack.api.v2.NTPServer.
|
|
150
|
+
* Use `create(NTPServerSchema)` to create a new message.
|
|
151
|
+
*/
|
|
152
|
+
export declare const NTPServerSchema: GenMessage<NTPServer>;
|
|
153
|
+
/**
|
|
154
|
+
* PartitionServiceGetRequest is the request payload for a partition get request
|
|
155
|
+
*
|
|
156
|
+
* @generated from message metalstack.api.v2.PartitionServiceGetRequest
|
|
157
|
+
*/
|
|
158
|
+
export type PartitionServiceGetRequest = Message<"metalstack.api.v2.PartitionServiceGetRequest"> & {
|
|
159
|
+
/**
|
|
160
|
+
* ID of the partition to get
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: string id = 1;
|
|
163
|
+
*/
|
|
164
|
+
id: string;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Describes the message metalstack.api.v2.PartitionServiceGetRequest.
|
|
168
|
+
* Use `create(PartitionServiceGetRequestSchema)` to create a new message.
|
|
169
|
+
*/
|
|
170
|
+
export declare const PartitionServiceGetRequestSchema: GenMessage<PartitionServiceGetRequest>;
|
|
171
|
+
/**
|
|
172
|
+
* PartitionServiceListRequest is the request payload for a partition list request
|
|
173
|
+
*
|
|
174
|
+
* @generated from message metalstack.api.v2.PartitionServiceListRequest
|
|
175
|
+
*/
|
|
176
|
+
export type PartitionServiceListRequest = Message<"metalstack.api.v2.PartitionServiceListRequest"> & {
|
|
177
|
+
/**
|
|
178
|
+
* Query for partitions
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: metalstack.api.v2.PartitionQuery query = 1;
|
|
181
|
+
*/
|
|
182
|
+
query?: PartitionQuery;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message metalstack.api.v2.PartitionServiceListRequest.
|
|
186
|
+
* Use `create(PartitionServiceListRequestSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export declare const PartitionServiceListRequestSchema: GenMessage<PartitionServiceListRequest>;
|
|
189
|
+
/**
|
|
190
|
+
* PartitionServiceGetResponse is the response payload for a partition get request
|
|
191
|
+
*
|
|
192
|
+
* @generated from message metalstack.api.v2.PartitionServiceGetResponse
|
|
193
|
+
*/
|
|
194
|
+
export type PartitionServiceGetResponse = Message<"metalstack.api.v2.PartitionServiceGetResponse"> & {
|
|
195
|
+
/**
|
|
196
|
+
* Ip the partition
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: metalstack.api.v2.Partition partition = 1;
|
|
199
|
+
*/
|
|
200
|
+
partition?: Partition;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Describes the message metalstack.api.v2.PartitionServiceGetResponse.
|
|
204
|
+
* Use `create(PartitionServiceGetResponseSchema)` to create a new message.
|
|
205
|
+
*/
|
|
206
|
+
export declare const PartitionServiceGetResponseSchema: GenMessage<PartitionServiceGetResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* PartitionServiceListResponse is the response payload for a partition list request
|
|
209
|
+
*
|
|
210
|
+
* @generated from message metalstack.api.v2.PartitionServiceListResponse
|
|
211
|
+
*/
|
|
212
|
+
export type PartitionServiceListResponse = Message<"metalstack.api.v2.PartitionServiceListResponse"> & {
|
|
213
|
+
/**
|
|
214
|
+
* Ips the partitions
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: repeated metalstack.api.v2.Partition partitions = 1;
|
|
217
|
+
*/
|
|
218
|
+
partitions: Partition[];
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Describes the message metalstack.api.v2.PartitionServiceListResponse.
|
|
222
|
+
* Use `create(PartitionServiceListResponseSchema)` to create a new message.
|
|
223
|
+
*/
|
|
224
|
+
export declare const PartitionServiceListResponseSchema: GenMessage<PartitionServiceListResponse>;
|
|
225
|
+
/**
|
|
226
|
+
* PartitionService serves partition address related functions
|
|
227
|
+
*
|
|
228
|
+
* @generated from service metalstack.api.v2.PartitionService
|
|
229
|
+
*/
|
|
230
|
+
export declare const PartitionService: GenService<{
|
|
231
|
+
/**
|
|
232
|
+
* Get a partition
|
|
233
|
+
*
|
|
234
|
+
* @generated from rpc metalstack.api.v2.PartitionService.Get
|
|
235
|
+
*/
|
|
236
|
+
get: {
|
|
237
|
+
methodKind: "unary";
|
|
238
|
+
input: typeof PartitionServiceGetRequestSchema;
|
|
239
|
+
output: typeof PartitionServiceGetResponseSchema;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* List all partitions
|
|
243
|
+
*
|
|
244
|
+
* @generated from rpc metalstack.api.v2.PartitionService.List
|
|
245
|
+
*/
|
|
246
|
+
list: {
|
|
247
|
+
methodKind: "unary";
|
|
248
|
+
input: typeof PartitionServiceListRequestSchema;
|
|
249
|
+
output: typeof PartitionServiceListResponseSchema;
|
|
250
|
+
};
|
|
251
|
+
}>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/api/v2/partition.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/partition.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_metalstack_api_v2_partition = /*@__PURE__*/ fileDesc("CiFtZXRhbHN0YWNrL2FwaS92Mi9wYXJ0aXRpb24ucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIs8CCglQYXJ0aXRpb24SFgoCaWQYASABKAlCCrpIB3IFEAIYgAESJQoEbWV0YRgCIAEoCzIXLm1ldGFsc3RhY2suYXBpLnYyLk1ldGESIAoLZGVzY3JpcHRpb24YAyABKAlCC7pICHIGyLOusQIBEkkKEmJvb3RfY29uZmlndXJhdGlvbhgEIAEoCzItLm1ldGFsc3RhY2suYXBpLnYyLlBhcnRpdGlvbkJvb3RDb25maWd1cmF0aW9uEjoKCmRuc19zZXJ2ZXIYBSADKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5ETlNTZXJ2ZXJCCLpIBZIBAhADEjoKCm50cF9zZXJ2ZXIYBiADKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5OVFBTZXJ2ZXJCCLpIBZIBAhAKEh4KFm1nbXRfc2VydmljZV9hZGRyZXNzZXMYByADKAkibwoOUGFydGl0aW9uUXVlcnkSGwoCaWQYASABKAlCCrpIB3IFEAIYgAFIAIgBARIuCgZsYWJlbHMYAiABKAsyGS5tZXRhbHN0YWNrLmFwaS52Mi5MYWJlbHNIAYgBAUIFCgNfaWRCCQoHX2xhYmVscyJyChpQYXJ0aXRpb25Cb290Q29uZmlndXJhdGlvbhIeCglpbWFnZV91cmwYASABKAlCC7pICHIG4LOusQIBEh8KCmtlcm5lbF91cmwYAiABKAlCC7pICHIG4LOusQIBEhMKC2NvbW1hbmRsaW5lGAMgASgJIiAKCUROU1NlcnZlchITCgJpcBgBIAEoCUIHukgEcgJwASImCglOVFBTZXJ2ZXISGQoHYWRkcmVzcxgBIAEoCUIIukgFcgMYgAIiNAoaUGFydGl0aW9uU2VydmljZUdldFJlcXVlc3QSFgoCaWQYASABKAlCCrpIB3IFEAIYgAEiTwobUGFydGl0aW9uU2VydmljZUxpc3RSZXF1ZXN0EjAKBXF1ZXJ5GAEgASgLMiEubWV0YWxzdGFjay5hcGkudjIuUGFydGl0aW9uUXVlcnkiTgobUGFydGl0aW9uU2VydmljZUdldFJlc3BvbnNlEi8KCXBhcnRpdGlvbhgBIAEoCzIcLm1ldGFsc3RhY2suYXBpLnYyLlBhcnRpdGlvbiJQChxQYXJ0aXRpb25TZXJ2aWNlTGlzdFJlc3BvbnNlEjAKCnBhcnRpdGlvbnMYASADKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb24y9QEKEFBhcnRpdGlvblNlcnZpY2USbgoDR2V0Ei0ubWV0YWxzdGFjay5hcGkudjIuUGFydGl0aW9uU2VydmljZUdldFJlcXVlc3QaLi5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25TZXJ2aWNlR2V0UmVzcG9uc2UiCNjzGAPg8xgCEnEKBExpc3QSLi5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25TZXJ2aWNlTGlzdFJlcXVlc3QaLy5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25TZXJ2aWNlTGlzdFJlc3BvbnNlIgjY8xgD4PMYAkLEAQoVY29tLm1ldGFsc3RhY2suYXBpLnYyQg5QYXJ0aXRpb25Qcm90b1ABWjVnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FwaS92MjthcGl2MqICA01BWKoCEU1ldGFsc3RhY2suQXBpLlYyygIRTWV0YWxzdGFja1xBcGlcVjLiAh1NZXRhbHN0YWNrXEFwaVxWMlxHUEJNZXRhZGF0YeoCE01ldGFsc3RhY2s6OkFwaTo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message metalstack.api.v2.Partition.
|
|
14
|
+
* Use `create(PartitionSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const PartitionSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message metalstack.api.v2.PartitionQuery.
|
|
19
|
+
* Use `create(PartitionQuerySchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const PartitionQuerySchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message metalstack.api.v2.PartitionBootConfiguration.
|
|
24
|
+
* Use `create(PartitionBootConfigurationSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const PartitionBootConfigurationSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message metalstack.api.v2.DNSServer.
|
|
29
|
+
* Use `create(DNSServerSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const DNSServerSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message metalstack.api.v2.NTPServer.
|
|
34
|
+
* Use `create(NTPServerSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const NTPServerSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 4);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message metalstack.api.v2.PartitionServiceGetRequest.
|
|
39
|
+
* Use `create(PartitionServiceGetRequestSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const PartitionServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 5);
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message metalstack.api.v2.PartitionServiceListRequest.
|
|
44
|
+
* Use `create(PartitionServiceListRequestSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const PartitionServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 6);
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message metalstack.api.v2.PartitionServiceGetResponse.
|
|
49
|
+
* Use `create(PartitionServiceGetResponseSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export const PartitionServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 7);
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message metalstack.api.v2.PartitionServiceListResponse.
|
|
54
|
+
* Use `create(PartitionServiceListResponseSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export const PartitionServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_partition, 8);
|
|
57
|
+
/**
|
|
58
|
+
* PartitionService serves partition address related functions
|
|
59
|
+
*
|
|
60
|
+
* @generated from service metalstack.api.v2.PartitionService
|
|
61
|
+
*/
|
|
62
|
+
export const PartitionService = /*@__PURE__*/ serviceDesc(file_metalstack_api_v2_partition, 0);
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/api/v2/partition.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/partition.proto.
|
|
15
|
+
*/
|
|
16
|
+
export const file_metalstack_api_v2_partition: GenFile = /*@__PURE__*/
|
|
17
|
+
fileDesc("CiFtZXRhbHN0YWNrL2FwaS92Mi9wYXJ0aXRpb24ucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIs8CCglQYXJ0aXRpb24SFgoCaWQYASABKAlCCrpIB3IFEAIYgAESJQoEbWV0YRgCIAEoCzIXLm1ldGFsc3RhY2suYXBpLnYyLk1ldGESIAoLZGVzY3JpcHRpb24YAyABKAlCC7pICHIGyLOusQIBEkkKEmJvb3RfY29uZmlndXJhdGlvbhgEIAEoCzItLm1ldGFsc3RhY2suYXBpLnYyLlBhcnRpdGlvbkJvb3RDb25maWd1cmF0aW9uEjoKCmRuc19zZXJ2ZXIYBSADKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5ETlNTZXJ2ZXJCCLpIBZIBAhADEjoKCm50cF9zZXJ2ZXIYBiADKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5OVFBTZXJ2ZXJCCLpIBZIBAhAKEh4KFm1nbXRfc2VydmljZV9hZGRyZXNzZXMYByADKAkibwoOUGFydGl0aW9uUXVlcnkSGwoCaWQYASABKAlCCrpIB3IFEAIYgAFIAIgBARIuCgZsYWJlbHMYAiABKAsyGS5tZXRhbHN0YWNrLmFwaS52Mi5MYWJlbHNIAYgBAUIFCgNfaWRCCQoHX2xhYmVscyJyChpQYXJ0aXRpb25Cb290Q29uZmlndXJhdGlvbhIeCglpbWFnZV91cmwYASABKAlCC7pICHIG4LOusQIBEh8KCmtlcm5lbF91cmwYAiABKAlCC7pICHIG4LOusQIBEhMKC2NvbW1hbmRsaW5lGAMgASgJIiAKCUROU1NlcnZlchITCgJpcBgBIAEoCUIHukgEcgJwASImCglOVFBTZXJ2ZXISGQoHYWRkcmVzcxgBIAEoCUIIukgFcgMYgAIiNAoaUGFydGl0aW9uU2VydmljZUdldFJlcXVlc3QSFgoCaWQYASABKAlCCrpIB3IFEAIYgAEiTwobUGFydGl0aW9uU2VydmljZUxpc3RSZXF1ZXN0EjAKBXF1ZXJ5GAEgASgLMiEubWV0YWxzdGFjay5hcGkudjIuUGFydGl0aW9uUXVlcnkiTgobUGFydGl0aW9uU2VydmljZUdldFJlc3BvbnNlEi8KCXBhcnRpdGlvbhgBIAEoCzIcLm1ldGFsc3RhY2suYXBpLnYyLlBhcnRpdGlvbiJQChxQYXJ0aXRpb25TZXJ2aWNlTGlzdFJlc3BvbnNlEjAKCnBhcnRpdGlvbnMYASADKAsyHC5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb24y9QEKEFBhcnRpdGlvblNlcnZpY2USbgoDR2V0Ei0ubWV0YWxzdGFjay5hcGkudjIuUGFydGl0aW9uU2VydmljZUdldFJlcXVlc3QaLi5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25TZXJ2aWNlR2V0UmVzcG9uc2UiCNjzGAPg8xgCEnEKBExpc3QSLi5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25TZXJ2aWNlTGlzdFJlcXVlc3QaLy5tZXRhbHN0YWNrLmFwaS52Mi5QYXJ0aXRpb25TZXJ2aWNlTGlzdFJlc3BvbnNlIgjY8xgD4PMYAkLEAQoVY29tLm1ldGFsc3RhY2suYXBpLnYyQg5QYXJ0aXRpb25Qcm90b1ABWjVnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FwaS92MjthcGl2MqICA01BWKoCEU1ldGFsc3RhY2suQXBpLlYyygIRTWV0YWxzdGFja1xBcGlcVjLiAh1NZXRhbHN0YWNrXEFwaVxWMlxHUEJNZXRhZGF0YeoCE01ldGFsc3RhY2s6OkFwaTo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_predefined_rules]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Partition is a failure domain with machines and switches
|
|
21
|
+
*
|
|
22
|
+
* @generated from message metalstack.api.v2.Partition
|
|
23
|
+
*/
|
|
24
|
+
export type Partition = Message<"metalstack.api.v2.Partition"> & {
|
|
25
|
+
/**
|
|
26
|
+
* ID of this partition
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string id = 1;
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Meta for this ip
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: metalstack.api.v2.Meta meta = 2;
|
|
36
|
+
*/
|
|
37
|
+
meta?: Meta;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Description of this partition
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: string description = 3;
|
|
43
|
+
*/
|
|
44
|
+
description: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* PartitionBootConfiguration defines how metal-hammer boots
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: metalstack.api.v2.PartitionBootConfiguration boot_configuration = 4;
|
|
50
|
+
*/
|
|
51
|
+
bootConfiguration?: PartitionBootConfiguration;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* DNSServers for this partition
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: repeated metalstack.api.v2.DNSServer dns_server = 5;
|
|
57
|
+
*/
|
|
58
|
+
dnsServer: DNSServer[];
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* NTPServers for this partition
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: repeated metalstack.api.v2.NTPServer ntp_server = 6;
|
|
64
|
+
*/
|
|
65
|
+
ntpServer: NTPServer[];
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* ManagementServiceAddresses defines where the management is reachable
|
|
69
|
+
* should be in the form <ip|host>:<port>
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: repeated string mgmt_service_addresses = 7;
|
|
72
|
+
*/
|
|
73
|
+
mgmtServiceAddresses: string[];
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message metalstack.api.v2.Partition.
|
|
78
|
+
* Use `create(PartitionSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const PartitionSchema: GenMessage<Partition> = /*@__PURE__*/
|
|
81
|
+
messageDesc(file_metalstack_api_v2_partition, 0);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* PartitionQuery is used to search partitions
|
|
85
|
+
*
|
|
86
|
+
* @generated from message metalstack.api.v2.PartitionQuery
|
|
87
|
+
*/
|
|
88
|
+
export type PartitionQuery = Message<"metalstack.api.v2.PartitionQuery"> & {
|
|
89
|
+
/**
|
|
90
|
+
* ID of the partition to get
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: optional string id = 1;
|
|
93
|
+
*/
|
|
94
|
+
id?: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Labels lists only partitions containing the given labels
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: optional metalstack.api.v2.Labels labels = 2;
|
|
100
|
+
*/
|
|
101
|
+
labels?: Labels;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message metalstack.api.v2.PartitionQuery.
|
|
106
|
+
* Use `create(PartitionQuerySchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export const PartitionQuerySchema: GenMessage<PartitionQuery> = /*@__PURE__*/
|
|
109
|
+
messageDesc(file_metalstack_api_v2_partition, 1);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* PartitionBootConfiguration defines how metal-hammer boots
|
|
113
|
+
*
|
|
114
|
+
* @generated from message metalstack.api.v2.PartitionBootConfiguration
|
|
115
|
+
*/
|
|
116
|
+
export type PartitionBootConfiguration = Message<"metalstack.api.v2.PartitionBootConfiguration"> & {
|
|
117
|
+
/**
|
|
118
|
+
* ImageURL the url to download the initrd for the boot image
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: string image_url = 1;
|
|
121
|
+
*/
|
|
122
|
+
imageUrl: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* KernelURL the url to download the kernel for the boot image
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: string kernel_url = 2;
|
|
128
|
+
*/
|
|
129
|
+
kernelUrl: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Commandline the cmdline to the kernel for the boot image
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: string commandline = 3;
|
|
135
|
+
*/
|
|
136
|
+
commandline: string;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message metalstack.api.v2.PartitionBootConfiguration.
|
|
141
|
+
* Use `create(PartitionBootConfigurationSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export const PartitionBootConfigurationSchema: GenMessage<PartitionBootConfiguration> = /*@__PURE__*/
|
|
144
|
+
messageDesc(file_metalstack_api_v2_partition, 2);
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* DNSServer
|
|
148
|
+
*
|
|
149
|
+
* @generated from message metalstack.api.v2.DNSServer
|
|
150
|
+
*/
|
|
151
|
+
export type DNSServer = Message<"metalstack.api.v2.DNSServer"> & {
|
|
152
|
+
/**
|
|
153
|
+
* IP address of this dns server
|
|
154
|
+
*
|
|
155
|
+
* @generated from field: string ip = 1;
|
|
156
|
+
*/
|
|
157
|
+
ip: string;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Describes the message metalstack.api.v2.DNSServer.
|
|
162
|
+
* Use `create(DNSServerSchema)` to create a new message.
|
|
163
|
+
*/
|
|
164
|
+
export const DNSServerSchema: GenMessage<DNSServer> = /*@__PURE__*/
|
|
165
|
+
messageDesc(file_metalstack_api_v2_partition, 3);
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* NTPServer
|
|
169
|
+
*
|
|
170
|
+
* @generated from message metalstack.api.v2.NTPServer
|
|
171
|
+
*/
|
|
172
|
+
export type NTPServer = Message<"metalstack.api.v2.NTPServer"> & {
|
|
173
|
+
/**
|
|
174
|
+
* Address either as ip or hostname
|
|
175
|
+
*
|
|
176
|
+
* @generated from field: string address = 1;
|
|
177
|
+
*/
|
|
178
|
+
address: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Describes the message metalstack.api.v2.NTPServer.
|
|
183
|
+
* Use `create(NTPServerSchema)` to create a new message.
|
|
184
|
+
*/
|
|
185
|
+
export const NTPServerSchema: GenMessage<NTPServer> = /*@__PURE__*/
|
|
186
|
+
messageDesc(file_metalstack_api_v2_partition, 4);
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* PartitionServiceGetRequest is the request payload for a partition get request
|
|
190
|
+
*
|
|
191
|
+
* @generated from message metalstack.api.v2.PartitionServiceGetRequest
|
|
192
|
+
*/
|
|
193
|
+
export type PartitionServiceGetRequest = Message<"metalstack.api.v2.PartitionServiceGetRequest"> & {
|
|
194
|
+
/**
|
|
195
|
+
* ID of the partition to get
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: string id = 1;
|
|
198
|
+
*/
|
|
199
|
+
id: string;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Describes the message metalstack.api.v2.PartitionServiceGetRequest.
|
|
204
|
+
* Use `create(PartitionServiceGetRequestSchema)` to create a new message.
|
|
205
|
+
*/
|
|
206
|
+
export const PartitionServiceGetRequestSchema: GenMessage<PartitionServiceGetRequest> = /*@__PURE__*/
|
|
207
|
+
messageDesc(file_metalstack_api_v2_partition, 5);
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* PartitionServiceListRequest is the request payload for a partition list request
|
|
211
|
+
*
|
|
212
|
+
* @generated from message metalstack.api.v2.PartitionServiceListRequest
|
|
213
|
+
*/
|
|
214
|
+
export type PartitionServiceListRequest = Message<"metalstack.api.v2.PartitionServiceListRequest"> & {
|
|
215
|
+
/**
|
|
216
|
+
* Query for partitions
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: metalstack.api.v2.PartitionQuery query = 1;
|
|
219
|
+
*/
|
|
220
|
+
query?: PartitionQuery;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Describes the message metalstack.api.v2.PartitionServiceListRequest.
|
|
225
|
+
* Use `create(PartitionServiceListRequestSchema)` to create a new message.
|
|
226
|
+
*/
|
|
227
|
+
export const PartitionServiceListRequestSchema: GenMessage<PartitionServiceListRequest> = /*@__PURE__*/
|
|
228
|
+
messageDesc(file_metalstack_api_v2_partition, 6);
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* PartitionServiceGetResponse is the response payload for a partition get request
|
|
232
|
+
*
|
|
233
|
+
* @generated from message metalstack.api.v2.PartitionServiceGetResponse
|
|
234
|
+
*/
|
|
235
|
+
export type PartitionServiceGetResponse = Message<"metalstack.api.v2.PartitionServiceGetResponse"> & {
|
|
236
|
+
/**
|
|
237
|
+
* Ip the partition
|
|
238
|
+
*
|
|
239
|
+
* @generated from field: metalstack.api.v2.Partition partition = 1;
|
|
240
|
+
*/
|
|
241
|
+
partition?: Partition;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Describes the message metalstack.api.v2.PartitionServiceGetResponse.
|
|
246
|
+
* Use `create(PartitionServiceGetResponseSchema)` to create a new message.
|
|
247
|
+
*/
|
|
248
|
+
export const PartitionServiceGetResponseSchema: GenMessage<PartitionServiceGetResponse> = /*@__PURE__*/
|
|
249
|
+
messageDesc(file_metalstack_api_v2_partition, 7);
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* PartitionServiceListResponse is the response payload for a partition list request
|
|
253
|
+
*
|
|
254
|
+
* @generated from message metalstack.api.v2.PartitionServiceListResponse
|
|
255
|
+
*/
|
|
256
|
+
export type PartitionServiceListResponse = Message<"metalstack.api.v2.PartitionServiceListResponse"> & {
|
|
257
|
+
/**
|
|
258
|
+
* Ips the partitions
|
|
259
|
+
*
|
|
260
|
+
* @generated from field: repeated metalstack.api.v2.Partition partitions = 1;
|
|
261
|
+
*/
|
|
262
|
+
partitions: Partition[];
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Describes the message metalstack.api.v2.PartitionServiceListResponse.
|
|
267
|
+
* Use `create(PartitionServiceListResponseSchema)` to create a new message.
|
|
268
|
+
*/
|
|
269
|
+
export const PartitionServiceListResponseSchema: GenMessage<PartitionServiceListResponse> = /*@__PURE__*/
|
|
270
|
+
messageDesc(file_metalstack_api_v2_partition, 8);
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* PartitionService serves partition address related functions
|
|
274
|
+
*
|
|
275
|
+
* @generated from service metalstack.api.v2.PartitionService
|
|
276
|
+
*/
|
|
277
|
+
export const PartitionService: GenService<{
|
|
278
|
+
/**
|
|
279
|
+
* Get a partition
|
|
280
|
+
*
|
|
281
|
+
* @generated from rpc metalstack.api.v2.PartitionService.Get
|
|
282
|
+
*/
|
|
283
|
+
get: {
|
|
284
|
+
methodKind: "unary";
|
|
285
|
+
input: typeof PartitionServiceGetRequestSchema;
|
|
286
|
+
output: typeof PartitionServiceGetResponseSchema;
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* List all partitions
|
|
290
|
+
*
|
|
291
|
+
* @generated from rpc metalstack.api.v2.PartitionService.List
|
|
292
|
+
*/
|
|
293
|
+
list: {
|
|
294
|
+
methodKind: "unary";
|
|
295
|
+
input: typeof PartitionServiceListRequestSchema;
|
|
296
|
+
output: typeof PartitionServiceListResponseSchema;
|
|
297
|
+
},
|
|
298
|
+
}> = /*@__PURE__*/
|
|
299
|
+
serviceDesc(file_metalstack_api_v2_partition, 0);
|
|
300
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { RepeatedRules, StringRules } from "../../../buf/validate/validate_pb";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file metalstack/api/v2/predefined_rules.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_metalstack_api_v2_predefined_rules: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Macaddress returns true if the given string is a valid macadress
|
|
9
|
+
*
|
|
10
|
+
* @generated from extension: optional bool macaddress = 80048951;
|
|
11
|
+
*/
|
|
12
|
+
export declare const macaddress: GenExtension<StringRules, boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* IsName returns true if name field satisfies our requirements
|
|
15
|
+
*
|
|
16
|
+
* @generated from extension: optional bool is_name = 80048952;
|
|
17
|
+
*/
|
|
18
|
+
export declare const is_name: GenExtension<StringRules, boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* IsDescription returns true if description field satisfies our requirements
|
|
21
|
+
*
|
|
22
|
+
* @generated from extension: optional bool is_description = 80048953;
|
|
23
|
+
*/
|
|
24
|
+
export declare const is_description: GenExtension<StringRules, boolean>;
|
|
25
|
+
/**
|
|
26
|
+
* IsPartition returns true if partition field satisfies our requirements
|
|
27
|
+
*
|
|
28
|
+
* @generated from extension: optional bool is_partition = 80048954;
|
|
29
|
+
*/
|
|
30
|
+
export declare const is_partition: GenExtension<StringRules, boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* IsPrefix validates if the given string is a valid prefix
|
|
33
|
+
*
|
|
34
|
+
* @generated from extension: optional bool is_prefix = 80048955;
|
|
35
|
+
*/
|
|
36
|
+
export declare const is_prefix: GenExtension<StringRules, boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* IsUri validates if the given string is a valid URI
|
|
39
|
+
*
|
|
40
|
+
* @generated from extension: optional bool is_uri = 80048956;
|
|
41
|
+
*/
|
|
42
|
+
export declare const is_uri: GenExtension<StringRules, boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Prefixes validates if a slice of prefixes in string form are valid
|
|
45
|
+
*
|
|
46
|
+
* @generated from extension: optional bool prefixes = 80048956;
|
|
47
|
+
*/
|
|
48
|
+
export declare const prefixes: GenExtension<RepeatedRules, boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Ips validates if a slice of ips in string form are valid
|
|
51
|
+
*
|
|
52
|
+
* @generated from extension: optional bool ips = 80048957;
|
|
53
|
+
*/
|
|
54
|
+
export declare const ips: GenExtension<RepeatedRules, boolean>;
|