@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,478 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/network.proto (package metalstack.admin.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, UpdateLabels, UpdateMeta } from "../../api/v2/common_pb";
|
|
9
|
+
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
10
|
+
import type { ChildPrefixLength, NATType, Network, NetworkAddressFamily, NetworkQuery, NetworkType } from "../../api/v2/network_pb";
|
|
11
|
+
import { file_metalstack_api_v2_network } from "../../api/v2/network_pb";
|
|
12
|
+
import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
|
|
13
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the file metalstack/admin/v2/network.proto.
|
|
17
|
+
*/
|
|
18
|
+
export const file_metalstack_admin_v2_network: GenFile = /*@__PURE__*/
|
|
19
|
+
fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL25ldHdvcmsucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoYTmV0d29ya1NlcnZpY2VHZXRSZXF1ZXN0EhYKAmlkGAEgASgJQgq6SAdyBRACGIABIkgKGU5ldHdvcmtTZXJ2aWNlR2V0UmVzcG9uc2USKwoHbmV0d29yaxgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk5ldHdvcmsizwcKG05ldHdvcmtTZXJ2aWNlQ3JlYXRlUmVxdWVzdBIbCgJpZBgBIAEoCUIKukgHcgUQAhiAAUgAiAEBEh4KBG5hbWUYAiABKAlCC7pICHIGwLOusQ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GVsZXRlEjAubWV0YWxzdGFjay5hZG1pbi52Mi5OZXR3b3JrU2VydmljZURlbGV0ZVJlcXVlc3QaMS5tZXRhbHN0YWNrLmFkbWluLnYyLk5ldHdvcmtTZXJ2aWNlRGVsZXRlUmVzcG9uc2UiCdLzGAEB4PMYARJzCgRMaXN0Ei4ubWV0YWxzdGFjay5hZG1pbi52Mi5OZXR3b3JrU2VydmljZUxpc3RSZXF1ZXN0Gi8ubWV0YWxzdGFjay5hZG1pbi52Mi5OZXR3b3JrU2VydmljZUxpc3RSZXNwb25zZSIK0vMYAgEC4PMYAkLQAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCDE5ldHdvcmtQcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_network, file_metalstack_api_v2_predefined_rules]);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* NetworkServiceGetRequest
|
|
23
|
+
*
|
|
24
|
+
* @generated from message metalstack.admin.v2.NetworkServiceGetRequest
|
|
25
|
+
*/
|
|
26
|
+
export type NetworkServiceGetRequest = Message<"metalstack.admin.v2.NetworkServiceGetRequest"> & {
|
|
27
|
+
/**
|
|
28
|
+
* ID of the network to get
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: string id = 1;
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message metalstack.admin.v2.NetworkServiceGetRequest.
|
|
37
|
+
* Use `create(NetworkServiceGetRequestSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const NetworkServiceGetRequestSchema: GenMessage<NetworkServiceGetRequest> = /*@__PURE__*/
|
|
40
|
+
messageDesc(file_metalstack_admin_v2_network, 0);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* NetworkServiceGetResponse
|
|
44
|
+
*
|
|
45
|
+
* @generated from message metalstack.admin.v2.NetworkServiceGetResponse
|
|
46
|
+
*/
|
|
47
|
+
export type NetworkServiceGetResponse = Message<"metalstack.admin.v2.NetworkServiceGetResponse"> & {
|
|
48
|
+
/**
|
|
49
|
+
* Network which was requested to get
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: metalstack.api.v2.Network network = 1;
|
|
52
|
+
*/
|
|
53
|
+
network?: Network;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message metalstack.admin.v2.NetworkServiceGetResponse.
|
|
58
|
+
* Use `create(NetworkServiceGetResponseSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const NetworkServiceGetResponseSchema: GenMessage<NetworkServiceGetResponse> = /*@__PURE__*/
|
|
61
|
+
messageDesc(file_metalstack_admin_v2_network, 1);
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* NetworkServiceCreateRequest
|
|
65
|
+
*
|
|
66
|
+
* @generated from message metalstack.admin.v2.NetworkServiceCreateRequest
|
|
67
|
+
*/
|
|
68
|
+
export type NetworkServiceCreateRequest = Message<"metalstack.admin.v2.NetworkServiceCreateRequest"> & {
|
|
69
|
+
/**
|
|
70
|
+
* Id of this network
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: optional string id = 1;
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Name of this network
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: optional string name = 2;
|
|
80
|
+
*/
|
|
81
|
+
name?: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Description of this network
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: optional string description = 3;
|
|
87
|
+
*/
|
|
88
|
+
description?: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Partition where this network will be created
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: optional string partition = 4;
|
|
94
|
+
*/
|
|
95
|
+
partition?: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Project where this network belongs to
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: optional string project = 5;
|
|
101
|
+
*/
|
|
102
|
+
project?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Type of the network to create
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: metalstack.api.v2.NetworkType type = 6;
|
|
108
|
+
*/
|
|
109
|
+
type: NetworkType;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Labels on this network
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: optional metalstack.api.v2.Labels labels = 7;
|
|
115
|
+
*/
|
|
116
|
+
labels?: Labels;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Prefixes in this network
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: repeated string prefixes = 8;
|
|
122
|
+
*/
|
|
123
|
+
prefixes: string[];
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Destination Prefixes in this network
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: repeated string destination_prefixes = 9;
|
|
129
|
+
*/
|
|
130
|
+
destinationPrefixes: string[];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Default Child Prefix length defines the bitlength of a child network created per addressfamily, if not specified during the allocate request
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: metalstack.api.v2.ChildPrefixLength default_child_prefix_length = 10;
|
|
136
|
+
*/
|
|
137
|
+
defaultChildPrefixLength?: ChildPrefixLength;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Min Child Prefix length asserts that during child network creation the requested bit length is greater or equal the min child prefix length
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: metalstack.api.v2.ChildPrefixLength min_child_prefix_length = 11;
|
|
143
|
+
*/
|
|
144
|
+
minChildPrefixLength?: ChildPrefixLength;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* NATType of this network
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: optional metalstack.api.v2.NATType nat_type = 12;
|
|
150
|
+
*/
|
|
151
|
+
natType?: NATType;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* VRF of this network has this VNI.
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: optional uint32 vrf = 13;
|
|
157
|
+
*/
|
|
158
|
+
vrf?: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Parent Network points to the id of the parent network if any
|
|
162
|
+
*
|
|
163
|
+
* @generated from field: optional string parent_network = 14;
|
|
164
|
+
*/
|
|
165
|
+
parentNetwork?: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* AdditionalAnnouncableCidrs will be added to the allow list on the switch which prefixes might be announced
|
|
169
|
+
*
|
|
170
|
+
* @generated from field: repeated string additional_announcable_cidrs = 15;
|
|
171
|
+
*/
|
|
172
|
+
additionalAnnouncableCidrs: string[];
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Length per addressfamily
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: optional metalstack.api.v2.ChildPrefixLength length = 16;
|
|
178
|
+
*/
|
|
179
|
+
length?: ChildPrefixLength;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* AddressFamily to create, defaults to the same as the parent
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: optional metalstack.api.v2.NetworkAddressFamily address_family = 17;
|
|
185
|
+
*/
|
|
186
|
+
addressFamily?: NetworkAddressFamily;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Describes the message metalstack.admin.v2.NetworkServiceCreateRequest.
|
|
191
|
+
* Use `create(NetworkServiceCreateRequestSchema)` to create a new message.
|
|
192
|
+
*/
|
|
193
|
+
export const NetworkServiceCreateRequestSchema: GenMessage<NetworkServiceCreateRequest> = /*@__PURE__*/
|
|
194
|
+
messageDesc(file_metalstack_admin_v2_network, 2);
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* NetworkServiceUpdateRequest is the request payload for a network update request
|
|
198
|
+
*
|
|
199
|
+
* @generated from message metalstack.admin.v2.NetworkServiceUpdateRequest
|
|
200
|
+
*/
|
|
201
|
+
export type NetworkServiceUpdateRequest = Message<"metalstack.admin.v2.NetworkServiceUpdateRequest"> & {
|
|
202
|
+
/**
|
|
203
|
+
* Id of this network
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: string id = 1;
|
|
206
|
+
*/
|
|
207
|
+
id: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* UpdateMeta contains the timestamp and strategy to be used in this update request
|
|
211
|
+
*
|
|
212
|
+
* @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
|
|
213
|
+
*/
|
|
214
|
+
updateMeta?: UpdateMeta;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Name of this network
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: optional string name = 3;
|
|
220
|
+
*/
|
|
221
|
+
name?: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Description of this network
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: optional string description = 4;
|
|
227
|
+
*/
|
|
228
|
+
description?: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Labels to update on this network
|
|
232
|
+
*
|
|
233
|
+
* @generated from field: optional metalstack.api.v2.UpdateLabels labels = 5;
|
|
234
|
+
*/
|
|
235
|
+
labels?: UpdateLabels;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Prefixes in this network
|
|
239
|
+
*
|
|
240
|
+
* @generated from field: repeated string prefixes = 6;
|
|
241
|
+
*/
|
|
242
|
+
prefixes: string[];
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Destination Prefixes in this network
|
|
246
|
+
*
|
|
247
|
+
* @generated from field: repeated string destination_prefixes = 7;
|
|
248
|
+
*/
|
|
249
|
+
destinationPrefixes: string[];
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Default Child Prefix length defines the bit length of a child network created per addressfamily, of not specified during the allocate request
|
|
253
|
+
*
|
|
254
|
+
* @generated from field: optional metalstack.api.v2.ChildPrefixLength default_child_prefix_length = 10;
|
|
255
|
+
*/
|
|
256
|
+
defaultChildPrefixLength?: ChildPrefixLength;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Min Child Prefix length asserts that during child network creation the requested bit length is greater or equal the min child prefix length
|
|
260
|
+
*
|
|
261
|
+
* @generated from field: optional metalstack.api.v2.ChildPrefixLength min_child_prefix_length = 11;
|
|
262
|
+
*/
|
|
263
|
+
minChildPrefixLength?: ChildPrefixLength;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* NATType of this network
|
|
267
|
+
*
|
|
268
|
+
* @generated from field: optional metalstack.api.v2.NATType nat_type = 13;
|
|
269
|
+
*/
|
|
270
|
+
natType?: NATType;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* AdditionalAnnouncableCidrs will be added to the allow list on the switch which prefixes might be announced
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: repeated string additional_announcable_cidrs = 16;
|
|
276
|
+
*/
|
|
277
|
+
additionalAnnouncableCidrs: string[];
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Force update, actually only prevents accidental removal of additional_announcable_cidrs which will destroy your dataplane in fact.
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: bool force = 20;
|
|
283
|
+
*/
|
|
284
|
+
force: boolean;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Describes the message metalstack.admin.v2.NetworkServiceUpdateRequest.
|
|
289
|
+
* Use `create(NetworkServiceUpdateRequestSchema)` to create a new message.
|
|
290
|
+
*/
|
|
291
|
+
export const NetworkServiceUpdateRequestSchema: GenMessage<NetworkServiceUpdateRequest> = /*@__PURE__*/
|
|
292
|
+
messageDesc(file_metalstack_admin_v2_network, 3);
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* NetworkServiceDeleteRequest is the request payload for a network delete request
|
|
296
|
+
*
|
|
297
|
+
* @generated from message metalstack.admin.v2.NetworkServiceDeleteRequest
|
|
298
|
+
*/
|
|
299
|
+
export type NetworkServiceDeleteRequest = Message<"metalstack.admin.v2.NetworkServiceDeleteRequest"> & {
|
|
300
|
+
/**
|
|
301
|
+
* ID of the network to get
|
|
302
|
+
*
|
|
303
|
+
* @generated from field: string id = 1;
|
|
304
|
+
*/
|
|
305
|
+
id: string;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Describes the message metalstack.admin.v2.NetworkServiceDeleteRequest.
|
|
310
|
+
* Use `create(NetworkServiceDeleteRequestSchema)` to create a new message.
|
|
311
|
+
*/
|
|
312
|
+
export const NetworkServiceDeleteRequestSchema: GenMessage<NetworkServiceDeleteRequest> = /*@__PURE__*/
|
|
313
|
+
messageDesc(file_metalstack_admin_v2_network, 4);
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* NetworkServiceListRequest
|
|
317
|
+
*
|
|
318
|
+
* @generated from message metalstack.admin.v2.NetworkServiceListRequest
|
|
319
|
+
*/
|
|
320
|
+
export type NetworkServiceListRequest = Message<"metalstack.admin.v2.NetworkServiceListRequest"> & {
|
|
321
|
+
/**
|
|
322
|
+
* Query which specifies which networks to return
|
|
323
|
+
*
|
|
324
|
+
* @generated from field: metalstack.api.v2.NetworkQuery query = 2;
|
|
325
|
+
*/
|
|
326
|
+
query?: NetworkQuery;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Describes the message metalstack.admin.v2.NetworkServiceListRequest.
|
|
331
|
+
* Use `create(NetworkServiceListRequestSchema)` to create a new message.
|
|
332
|
+
*/
|
|
333
|
+
export const NetworkServiceListRequestSchema: GenMessage<NetworkServiceListRequest> = /*@__PURE__*/
|
|
334
|
+
messageDesc(file_metalstack_admin_v2_network, 5);
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* NetworkServiceCreateResponse is the response payload for a network create request
|
|
338
|
+
*
|
|
339
|
+
* @generated from message metalstack.admin.v2.NetworkServiceCreateResponse
|
|
340
|
+
*/
|
|
341
|
+
export type NetworkServiceCreateResponse = Message<"metalstack.admin.v2.NetworkServiceCreateResponse"> & {
|
|
342
|
+
/**
|
|
343
|
+
* Network the network
|
|
344
|
+
*
|
|
345
|
+
* @generated from field: metalstack.api.v2.Network network = 1;
|
|
346
|
+
*/
|
|
347
|
+
network?: Network;
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Describes the message metalstack.admin.v2.NetworkServiceCreateResponse.
|
|
352
|
+
* Use `create(NetworkServiceCreateResponseSchema)` to create a new message.
|
|
353
|
+
*/
|
|
354
|
+
export const NetworkServiceCreateResponseSchema: GenMessage<NetworkServiceCreateResponse> = /*@__PURE__*/
|
|
355
|
+
messageDesc(file_metalstack_admin_v2_network, 6);
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* NetworkServiceUpdateResponse is the response payload for a network update request
|
|
359
|
+
*
|
|
360
|
+
* @generated from message metalstack.admin.v2.NetworkServiceUpdateResponse
|
|
361
|
+
*/
|
|
362
|
+
export type NetworkServiceUpdateResponse = Message<"metalstack.admin.v2.NetworkServiceUpdateResponse"> & {
|
|
363
|
+
/**
|
|
364
|
+
* Network the network
|
|
365
|
+
*
|
|
366
|
+
* @generated from field: metalstack.api.v2.Network network = 1;
|
|
367
|
+
*/
|
|
368
|
+
network?: Network;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Describes the message metalstack.admin.v2.NetworkServiceUpdateResponse.
|
|
373
|
+
* Use `create(NetworkServiceUpdateResponseSchema)` to create a new message.
|
|
374
|
+
*/
|
|
375
|
+
export const NetworkServiceUpdateResponseSchema: GenMessage<NetworkServiceUpdateResponse> = /*@__PURE__*/
|
|
376
|
+
messageDesc(file_metalstack_admin_v2_network, 7);
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* NetworkServiceCapacityResponse is the response payload for a network delete request
|
|
380
|
+
*
|
|
381
|
+
* @generated from message metalstack.admin.v2.NetworkServiceDeleteResponse
|
|
382
|
+
*/
|
|
383
|
+
export type NetworkServiceDeleteResponse = Message<"metalstack.admin.v2.NetworkServiceDeleteResponse"> & {
|
|
384
|
+
/**
|
|
385
|
+
* Network the network
|
|
386
|
+
*
|
|
387
|
+
* @generated from field: metalstack.api.v2.Network network = 1;
|
|
388
|
+
*/
|
|
389
|
+
network?: Network;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Describes the message metalstack.admin.v2.NetworkServiceDeleteResponse.
|
|
394
|
+
* Use `create(NetworkServiceDeleteResponseSchema)` to create a new message.
|
|
395
|
+
*/
|
|
396
|
+
export const NetworkServiceDeleteResponseSchema: GenMessage<NetworkServiceDeleteResponse> = /*@__PURE__*/
|
|
397
|
+
messageDesc(file_metalstack_admin_v2_network, 8);
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* NetworkServiceListResponse
|
|
401
|
+
*
|
|
402
|
+
* @generated from message metalstack.admin.v2.NetworkServiceListResponse
|
|
403
|
+
*/
|
|
404
|
+
export type NetworkServiceListResponse = Message<"metalstack.admin.v2.NetworkServiceListResponse"> & {
|
|
405
|
+
/**
|
|
406
|
+
* Networks are the requested networks
|
|
407
|
+
*
|
|
408
|
+
* @generated from field: repeated metalstack.api.v2.Network networks = 1;
|
|
409
|
+
*/
|
|
410
|
+
networks: Network[];
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Describes the message metalstack.admin.v2.NetworkServiceListResponse.
|
|
415
|
+
* Use `create(NetworkServiceListResponseSchema)` to create a new message.
|
|
416
|
+
*/
|
|
417
|
+
export const NetworkServiceListResponseSchema: GenMessage<NetworkServiceListResponse> = /*@__PURE__*/
|
|
418
|
+
messageDesc(file_metalstack_admin_v2_network, 9);
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* NetworkService serves network address related functions
|
|
422
|
+
*
|
|
423
|
+
* @generated from service metalstack.admin.v2.NetworkService
|
|
424
|
+
*/
|
|
425
|
+
export const NetworkService: GenService<{
|
|
426
|
+
/**
|
|
427
|
+
* Get a network
|
|
428
|
+
*
|
|
429
|
+
* @generated from rpc metalstack.admin.v2.NetworkService.Get
|
|
430
|
+
*/
|
|
431
|
+
get: {
|
|
432
|
+
methodKind: "unary";
|
|
433
|
+
input: typeof NetworkServiceGetRequestSchema;
|
|
434
|
+
output: typeof NetworkServiceGetResponseSchema;
|
|
435
|
+
},
|
|
436
|
+
/**
|
|
437
|
+
* Create a network
|
|
438
|
+
*
|
|
439
|
+
* @generated from rpc metalstack.admin.v2.NetworkService.Create
|
|
440
|
+
*/
|
|
441
|
+
create: {
|
|
442
|
+
methodKind: "unary";
|
|
443
|
+
input: typeof NetworkServiceCreateRequestSchema;
|
|
444
|
+
output: typeof NetworkServiceCreateResponseSchema;
|
|
445
|
+
},
|
|
446
|
+
/**
|
|
447
|
+
* Update a network
|
|
448
|
+
*
|
|
449
|
+
* @generated from rpc metalstack.admin.v2.NetworkService.Update
|
|
450
|
+
*/
|
|
451
|
+
update: {
|
|
452
|
+
methodKind: "unary";
|
|
453
|
+
input: typeof NetworkServiceUpdateRequestSchema;
|
|
454
|
+
output: typeof NetworkServiceUpdateResponseSchema;
|
|
455
|
+
},
|
|
456
|
+
/**
|
|
457
|
+
* Delete a network
|
|
458
|
+
*
|
|
459
|
+
* @generated from rpc metalstack.admin.v2.NetworkService.Delete
|
|
460
|
+
*/
|
|
461
|
+
delete: {
|
|
462
|
+
methodKind: "unary";
|
|
463
|
+
input: typeof NetworkServiceDeleteRequestSchema;
|
|
464
|
+
output: typeof NetworkServiceDeleteResponseSchema;
|
|
465
|
+
},
|
|
466
|
+
/**
|
|
467
|
+
* List all networks
|
|
468
|
+
*
|
|
469
|
+
* @generated from rpc metalstack.admin.v2.NetworkService.List
|
|
470
|
+
*/
|
|
471
|
+
list: {
|
|
472
|
+
methodKind: "unary";
|
|
473
|
+
input: typeof NetworkServiceListRequestSchema;
|
|
474
|
+
output: typeof NetworkServiceListResponseSchema;
|
|
475
|
+
},
|
|
476
|
+
}> = /*@__PURE__*/
|
|
477
|
+
serviceDesc(file_metalstack_admin_v2_network, 0);
|
|
478
|
+
|