@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,207 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { UpdateMeta } from "../../api/v2/common_pb";
|
|
3
|
+
import type { Disk, Filesystem, FilesystemLayout, FilesystemLayoutConstraints, LogicalVolume, Raid, VolumeGroup } from "../../api/v2/filesystem_pb";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file metalstack/admin/v2/filesystem.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_metalstack_admin_v2_filesystem: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* FilesystemServiceCreateRequest
|
|
11
|
+
*
|
|
12
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceCreateRequest
|
|
13
|
+
*/
|
|
14
|
+
export type FilesystemServiceCreateRequest = Message<"metalstack.admin.v2.FilesystemServiceCreateRequest"> & {
|
|
15
|
+
/**
|
|
16
|
+
* FilesystemLayout the filesystemlayout
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
19
|
+
*/
|
|
20
|
+
filesystemLayout?: FilesystemLayout;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceCreateRequest.
|
|
24
|
+
* Use `create(FilesystemServiceCreateRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export declare const FilesystemServiceCreateRequestSchema: GenMessage<FilesystemServiceCreateRequest>;
|
|
27
|
+
/**
|
|
28
|
+
* FilesystemServiceCreateResponse
|
|
29
|
+
*
|
|
30
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceCreateResponse
|
|
31
|
+
*/
|
|
32
|
+
export type FilesystemServiceCreateResponse = Message<"metalstack.admin.v2.FilesystemServiceCreateResponse"> & {
|
|
33
|
+
/**
|
|
34
|
+
* FilesystemLayout the filesystemlayout
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
37
|
+
*/
|
|
38
|
+
filesystemLayout?: FilesystemLayout;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceCreateResponse.
|
|
42
|
+
* Use `create(FilesystemServiceCreateResponseSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export declare const FilesystemServiceCreateResponseSchema: GenMessage<FilesystemServiceCreateResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* FilesystemServiceUpdateRequest
|
|
47
|
+
*
|
|
48
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceUpdateRequest
|
|
49
|
+
*/
|
|
50
|
+
export type FilesystemServiceUpdateRequest = Message<"metalstack.admin.v2.FilesystemServiceUpdateRequest"> & {
|
|
51
|
+
/**
|
|
52
|
+
* Id of this filesystemLayout
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: string id = 1;
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* UpdateMeta contains the timestamp and strategy to be used in this update request
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
|
|
61
|
+
*/
|
|
62
|
+
updateMeta?: UpdateMeta;
|
|
63
|
+
/**
|
|
64
|
+
* Name of this filesystemLayout
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: optional string name = 3;
|
|
67
|
+
*/
|
|
68
|
+
name?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Description of this filesystemLayout
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: optional string description = 4;
|
|
73
|
+
*/
|
|
74
|
+
description?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Filesystems is a list of filesystems to create on a machine
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: repeated metalstack.api.v2.Filesystem filesystems = 5;
|
|
79
|
+
*/
|
|
80
|
+
filesystems: Filesystem[];
|
|
81
|
+
/**
|
|
82
|
+
* Disks list of disks that belong to this layout
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: repeated metalstack.api.v2.Disk disks = 6;
|
|
85
|
+
*/
|
|
86
|
+
disks: Disk[];
|
|
87
|
+
/**
|
|
88
|
+
* raid arrays to create
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: repeated metalstack.api.v2.Raid raid = 7;
|
|
91
|
+
*/
|
|
92
|
+
raid: Raid[];
|
|
93
|
+
/**
|
|
94
|
+
* VolumeGroups list of volumegroups to create
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: repeated metalstack.api.v2.VolumeGroup volume_groups = 8;
|
|
97
|
+
*/
|
|
98
|
+
volumeGroups: VolumeGroup[];
|
|
99
|
+
/**
|
|
100
|
+
* LogicalVolumes list of logicalvolumes to create
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: repeated metalstack.api.v2.LogicalVolume logical_volumes = 9;
|
|
103
|
+
*/
|
|
104
|
+
logicalVolumes: LogicalVolume[];
|
|
105
|
+
/**
|
|
106
|
+
* Constraints which must match that this layout is taken, if sizes and images are empty these are develop layouts
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: metalstack.api.v2.FilesystemLayoutConstraints constraints = 10;
|
|
109
|
+
*/
|
|
110
|
+
constraints?: FilesystemLayoutConstraints;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceUpdateRequest.
|
|
114
|
+
* Use `create(FilesystemServiceUpdateRequestSchema)` to create a new message.
|
|
115
|
+
*/
|
|
116
|
+
export declare const FilesystemServiceUpdateRequestSchema: GenMessage<FilesystemServiceUpdateRequest>;
|
|
117
|
+
/**
|
|
118
|
+
* FilesystemServiceUpdateResponse
|
|
119
|
+
*
|
|
120
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceUpdateResponse
|
|
121
|
+
*/
|
|
122
|
+
export type FilesystemServiceUpdateResponse = Message<"metalstack.admin.v2.FilesystemServiceUpdateResponse"> & {
|
|
123
|
+
/**
|
|
124
|
+
* FilesystemLayout the filesystemlayout
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
127
|
+
*/
|
|
128
|
+
filesystemLayout?: FilesystemLayout;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceUpdateResponse.
|
|
132
|
+
* Use `create(FilesystemServiceUpdateResponseSchema)` to create a new message.
|
|
133
|
+
*/
|
|
134
|
+
export declare const FilesystemServiceUpdateResponseSchema: GenMessage<FilesystemServiceUpdateResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* FilesystemServiceDeleteRequest
|
|
137
|
+
*
|
|
138
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceDeleteRequest
|
|
139
|
+
*/
|
|
140
|
+
export type FilesystemServiceDeleteRequest = Message<"metalstack.admin.v2.FilesystemServiceDeleteRequest"> & {
|
|
141
|
+
/**
|
|
142
|
+
* ID of the filesystem to delete
|
|
143
|
+
*
|
|
144
|
+
* @generated from field: string id = 1;
|
|
145
|
+
*/
|
|
146
|
+
id: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceDeleteRequest.
|
|
150
|
+
* Use `create(FilesystemServiceDeleteRequestSchema)` to create a new message.
|
|
151
|
+
*/
|
|
152
|
+
export declare const FilesystemServiceDeleteRequestSchema: GenMessage<FilesystemServiceDeleteRequest>;
|
|
153
|
+
/**
|
|
154
|
+
* message FilesystemServiceDeleteResponse {
|
|
155
|
+
*
|
|
156
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceDeleteResponse
|
|
157
|
+
*/
|
|
158
|
+
export type FilesystemServiceDeleteResponse = Message<"metalstack.admin.v2.FilesystemServiceDeleteResponse"> & {
|
|
159
|
+
/**
|
|
160
|
+
* FilesystemLayout the filesystemlayout
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
163
|
+
*/
|
|
164
|
+
filesystemLayout?: FilesystemLayout;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceDeleteResponse.
|
|
168
|
+
* Use `create(FilesystemServiceDeleteResponseSchema)` to create a new message.
|
|
169
|
+
*/
|
|
170
|
+
export declare const FilesystemServiceDeleteResponseSchema: GenMessage<FilesystemServiceDeleteResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* FilesystemService serves filesystem related functions
|
|
173
|
+
*
|
|
174
|
+
* @generated from service metalstack.admin.v2.FilesystemService
|
|
175
|
+
*/
|
|
176
|
+
export declare const FilesystemService: GenService<{
|
|
177
|
+
/**
|
|
178
|
+
* Create a filesystem
|
|
179
|
+
*
|
|
180
|
+
* @generated from rpc metalstack.admin.v2.FilesystemService.Create
|
|
181
|
+
*/
|
|
182
|
+
create: {
|
|
183
|
+
methodKind: "unary";
|
|
184
|
+
input: typeof FilesystemServiceCreateRequestSchema;
|
|
185
|
+
output: typeof FilesystemServiceCreateResponseSchema;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Update a filesystem
|
|
189
|
+
*
|
|
190
|
+
* @generated from rpc metalstack.admin.v2.FilesystemService.Update
|
|
191
|
+
*/
|
|
192
|
+
update: {
|
|
193
|
+
methodKind: "unary";
|
|
194
|
+
input: typeof FilesystemServiceUpdateRequestSchema;
|
|
195
|
+
output: typeof FilesystemServiceUpdateResponseSchema;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Delete a filesystem
|
|
199
|
+
*
|
|
200
|
+
* @generated from rpc metalstack.admin.v2.FilesystemService.Delete
|
|
201
|
+
*/
|
|
202
|
+
delete: {
|
|
203
|
+
methodKind: "unary";
|
|
204
|
+
input: typeof FilesystemServiceDeleteRequestSchema;
|
|
205
|
+
output: typeof FilesystemServiceDeleteResponseSchema;
|
|
206
|
+
};
|
|
207
|
+
}>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/filesystem.proto (package metalstack.admin.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 "../../api/v2/common_pb";
|
|
7
|
+
import { file_metalstack_api_v2_filesystem } from "../../api/v2/filesystem_pb";
|
|
8
|
+
import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file metalstack/admin/v2/filesystem.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_metalstack_admin_v2_filesystem = /*@__PURE__*/ fileDesc("CiRtZXRhbHN0YWNrL2FkbWluL3YyL2ZpbGVzeXN0ZW0ucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiYAoeRmlsZXN5c3RlbVNlcnZpY2VDcmVhdGVSZXF1ZXN0Ej4KEWZpbGVzeXN0ZW1fbGF5b3V0GAEgASgLMiMubWV0YWxzdGFjay5hcGkudjIuRmlsZXN5c3RlbUxheW91dCJhCh9GaWxlc3lzdGVtU2VydmljZUNyZWF0ZVJlc3BvbnNlEj4KEWZpbGVzeXN0ZW1fbGF5b3V0GAEgASgLMiMubWV0YWxzdGFjay5hcGkudjIuRmlsZXN5c3RlbUxheW91dCKOBAoeRmlsZXN5c3RlbVNlcnZpY2VVcGRhdGVSZXF1ZXN0EhYKAmlkGAEgASgJQgq6SAdyBRACGIABEjoKC3VwZGF0ZV9tZXRhGAIgASgLMh0ubWV0YWxzdGFjay5hcGkudjIuVXBkYXRlTWV0YUIGukgDyAEBEh4KBG5hbWUYAyABKAlCC7pICHIGwLOusQIBSACIAQESJQoLZGVzY3JpcHRpb24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W4udjIuRmlsZXN5c3RlbVNlcnZpY2VVcGRhdGVSZXF1ZXN0GjQubWV0YWxzdGFjay5hZG1pbi52Mi5GaWxlc3lzdGVtU2VydmljZVVwZGF0ZVJlc3BvbnNlIgnS8xgBAeDzGAESfgoGRGVsZXRlEjMubWV0YWxzdGFjay5hZG1pbi52Mi5GaWxlc3lzdGVtU2VydmljZURlbGV0ZVJlcXVlc3QaNC5tZXRhbHN0YWNrLmFkbWluLnYyLkZpbGVzeXN0ZW1TZXJ2aWNlRGVsZXRlUmVzcG9uc2UiCdLzGAEB4PMYAULTAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCD0ZpbGVzeXN0ZW1Qcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_filesystem, file_metalstack_api_v2_predefined_rules]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceCreateRequest.
|
|
15
|
+
* Use `create(FilesystemServiceCreateRequestSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const FilesystemServiceCreateRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_filesystem, 0);
|
|
18
|
+
/**
|
|
19
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceCreateResponse.
|
|
20
|
+
* Use `create(FilesystemServiceCreateResponseSchema)` to create a new message.
|
|
21
|
+
*/
|
|
22
|
+
export const FilesystemServiceCreateResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_filesystem, 1);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceUpdateRequest.
|
|
25
|
+
* Use `create(FilesystemServiceUpdateRequestSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const FilesystemServiceUpdateRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_filesystem, 2);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceUpdateResponse.
|
|
30
|
+
* Use `create(FilesystemServiceUpdateResponseSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
export const FilesystemServiceUpdateResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_filesystem, 3);
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceDeleteRequest.
|
|
35
|
+
* Use `create(FilesystemServiceDeleteRequestSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export const FilesystemServiceDeleteRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_filesystem, 4);
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceDeleteResponse.
|
|
40
|
+
* Use `create(FilesystemServiceDeleteResponseSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export const FilesystemServiceDeleteResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_filesystem, 5);
|
|
43
|
+
/**
|
|
44
|
+
* FilesystemService serves filesystem related functions
|
|
45
|
+
*
|
|
46
|
+
* @generated from service metalstack.admin.v2.FilesystemService
|
|
47
|
+
*/
|
|
48
|
+
export const FilesystemService = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_filesystem, 0);
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/filesystem.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 { UpdateMeta } from "../../api/v2/common_pb";
|
|
9
|
+
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
10
|
+
import type { Disk, Filesystem, FilesystemLayout, FilesystemLayoutConstraints, LogicalVolume, Raid, VolumeGroup } from "../../api/v2/filesystem_pb";
|
|
11
|
+
import { file_metalstack_api_v2_filesystem } from "../../api/v2/filesystem_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/filesystem.proto.
|
|
17
|
+
*/
|
|
18
|
+
export const file_metalstack_admin_v2_filesystem: GenFile = /*@__PURE__*/
|
|
19
|
+
fileDesc("CiRtZXRhbHN0YWNrL2FkbWluL3YyL2ZpbGVzeXN0ZW0ucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiYAoeRmlsZXN5c3RlbVNlcnZpY2VDcmVhdGVSZXF1ZXN0Ej4KEWZpbGVzeXN0ZW1fbGF5b3V0GAEgASgLMiMubWV0YWxzdGFjay5hcGkudjIuRmlsZXN5c3RlbUxheW91dCJhCh9GaWxlc3lzdGVtU2VydmljZUNyZWF0ZVJlc3BvbnNlEj4KEWZpbGVzeXN0ZW1fbGF5b3V0GAEgASgLMiMubWV0YWxzdGFjay5hcGkudjIuRmlsZXN5c3RlbUxheW91dCKOBAoeRmlsZXN5c3RlbVNlcnZpY2VVcGRhdGVSZXF1ZXN0EhYKAmlkGAEgASgJQgq6SAdyBRACGIABEjoKC3VwZGF0ZV9tZXRhGAIgASgLMh0ubWV0YWxzdGFjay5hcGkudjIuVXBkYX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pY2VDcmVhdGVSZXNwb25zZSIJ0vMYAQHg8xgBEn4KBlVwZGF0ZRIzLm1ldGFsc3RhY2suYWRtaW4udjIuRmlsZXN5c3RlbVNlcnZpY2VVcGRhdGVSZXF1ZXN0GjQubWV0YWxzdGFjay5hZG1pbi52Mi5GaWxlc3lzdGVtU2VydmljZVVwZGF0ZVJlc3BvbnNlIgnS8xgBAeDzGAESfgoGRGVsZXRlEjMubWV0YWxzdGFjay5hZG1pbi52Mi5GaWxlc3lzdGVtU2VydmljZURlbGV0ZVJlcXVlc3QaNC5tZXRhbHN0YWNrLmFkbWluLnYyLkZpbGVzeXN0ZW1TZXJ2aWNlRGVsZXRlUmVzcG9uc2UiCdLzGAEB4PMYAULTAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCD0ZpbGVzeXN0ZW1Qcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_filesystem, file_metalstack_api_v2_predefined_rules]);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* FilesystemServiceCreateRequest
|
|
23
|
+
*
|
|
24
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceCreateRequest
|
|
25
|
+
*/
|
|
26
|
+
export type FilesystemServiceCreateRequest = Message<"metalstack.admin.v2.FilesystemServiceCreateRequest"> & {
|
|
27
|
+
/**
|
|
28
|
+
* FilesystemLayout the filesystemlayout
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
31
|
+
*/
|
|
32
|
+
filesystemLayout?: FilesystemLayout;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceCreateRequest.
|
|
37
|
+
* Use `create(FilesystemServiceCreateRequestSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const FilesystemServiceCreateRequestSchema: GenMessage<FilesystemServiceCreateRequest> = /*@__PURE__*/
|
|
40
|
+
messageDesc(file_metalstack_admin_v2_filesystem, 0);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* FilesystemServiceCreateResponse
|
|
44
|
+
*
|
|
45
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceCreateResponse
|
|
46
|
+
*/
|
|
47
|
+
export type FilesystemServiceCreateResponse = Message<"metalstack.admin.v2.FilesystemServiceCreateResponse"> & {
|
|
48
|
+
/**
|
|
49
|
+
* FilesystemLayout the filesystemlayout
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
52
|
+
*/
|
|
53
|
+
filesystemLayout?: FilesystemLayout;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceCreateResponse.
|
|
58
|
+
* Use `create(FilesystemServiceCreateResponseSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const FilesystemServiceCreateResponseSchema: GenMessage<FilesystemServiceCreateResponse> = /*@__PURE__*/
|
|
61
|
+
messageDesc(file_metalstack_admin_v2_filesystem, 1);
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* FilesystemServiceUpdateRequest
|
|
65
|
+
*
|
|
66
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceUpdateRequest
|
|
67
|
+
*/
|
|
68
|
+
export type FilesystemServiceUpdateRequest = Message<"metalstack.admin.v2.FilesystemServiceUpdateRequest"> & {
|
|
69
|
+
/**
|
|
70
|
+
* Id of this filesystemLayout
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: string id = 1;
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* UpdateMeta contains the timestamp and strategy to be used in this update request
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: metalstack.api.v2.UpdateMeta update_meta = 2;
|
|
80
|
+
*/
|
|
81
|
+
updateMeta?: UpdateMeta;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Name of this filesystemLayout
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: optional string name = 3;
|
|
87
|
+
*/
|
|
88
|
+
name?: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Description of this filesystemLayout
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: optional string description = 4;
|
|
94
|
+
*/
|
|
95
|
+
description?: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Filesystems is a list of filesystems to create on a machine
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: repeated metalstack.api.v2.Filesystem filesystems = 5;
|
|
101
|
+
*/
|
|
102
|
+
filesystems: Filesystem[];
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Disks list of disks that belong to this layout
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: repeated metalstack.api.v2.Disk disks = 6;
|
|
108
|
+
*/
|
|
109
|
+
disks: Disk[];
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* raid arrays to create
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: repeated metalstack.api.v2.Raid raid = 7;
|
|
115
|
+
*/
|
|
116
|
+
raid: Raid[];
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* VolumeGroups list of volumegroups to create
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: repeated metalstack.api.v2.VolumeGroup volume_groups = 8;
|
|
122
|
+
*/
|
|
123
|
+
volumeGroups: VolumeGroup[];
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* LogicalVolumes list of logicalvolumes to create
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: repeated metalstack.api.v2.LogicalVolume logical_volumes = 9;
|
|
129
|
+
*/
|
|
130
|
+
logicalVolumes: LogicalVolume[];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Constraints which must match that this layout is taken, if sizes and images are empty these are develop layouts
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: metalstack.api.v2.FilesystemLayoutConstraints constraints = 10;
|
|
136
|
+
*/
|
|
137
|
+
constraints?: FilesystemLayoutConstraints;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceUpdateRequest.
|
|
142
|
+
* Use `create(FilesystemServiceUpdateRequestSchema)` to create a new message.
|
|
143
|
+
*/
|
|
144
|
+
export const FilesystemServiceUpdateRequestSchema: GenMessage<FilesystemServiceUpdateRequest> = /*@__PURE__*/
|
|
145
|
+
messageDesc(file_metalstack_admin_v2_filesystem, 2);
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* FilesystemServiceUpdateResponse
|
|
149
|
+
*
|
|
150
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceUpdateResponse
|
|
151
|
+
*/
|
|
152
|
+
export type FilesystemServiceUpdateResponse = Message<"metalstack.admin.v2.FilesystemServiceUpdateResponse"> & {
|
|
153
|
+
/**
|
|
154
|
+
* FilesystemLayout the filesystemlayout
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
157
|
+
*/
|
|
158
|
+
filesystemLayout?: FilesystemLayout;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceUpdateResponse.
|
|
163
|
+
* Use `create(FilesystemServiceUpdateResponseSchema)` to create a new message.
|
|
164
|
+
*/
|
|
165
|
+
export const FilesystemServiceUpdateResponseSchema: GenMessage<FilesystemServiceUpdateResponse> = /*@__PURE__*/
|
|
166
|
+
messageDesc(file_metalstack_admin_v2_filesystem, 3);
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* FilesystemServiceDeleteRequest
|
|
170
|
+
*
|
|
171
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceDeleteRequest
|
|
172
|
+
*/
|
|
173
|
+
export type FilesystemServiceDeleteRequest = Message<"metalstack.admin.v2.FilesystemServiceDeleteRequest"> & {
|
|
174
|
+
/**
|
|
175
|
+
* ID of the filesystem to delete
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: string id = 1;
|
|
178
|
+
*/
|
|
179
|
+
id: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceDeleteRequest.
|
|
184
|
+
* Use `create(FilesystemServiceDeleteRequestSchema)` to create a new message.
|
|
185
|
+
*/
|
|
186
|
+
export const FilesystemServiceDeleteRequestSchema: GenMessage<FilesystemServiceDeleteRequest> = /*@__PURE__*/
|
|
187
|
+
messageDesc(file_metalstack_admin_v2_filesystem, 4);
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* message FilesystemServiceDeleteResponse {
|
|
191
|
+
*
|
|
192
|
+
* @generated from message metalstack.admin.v2.FilesystemServiceDeleteResponse
|
|
193
|
+
*/
|
|
194
|
+
export type FilesystemServiceDeleteResponse = Message<"metalstack.admin.v2.FilesystemServiceDeleteResponse"> & {
|
|
195
|
+
/**
|
|
196
|
+
* FilesystemLayout the filesystemlayout
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: metalstack.api.v2.FilesystemLayout filesystem_layout = 1;
|
|
199
|
+
*/
|
|
200
|
+
filesystemLayout?: FilesystemLayout;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Describes the message metalstack.admin.v2.FilesystemServiceDeleteResponse.
|
|
205
|
+
* Use `create(FilesystemServiceDeleteResponseSchema)` to create a new message.
|
|
206
|
+
*/
|
|
207
|
+
export const FilesystemServiceDeleteResponseSchema: GenMessage<FilesystemServiceDeleteResponse> = /*@__PURE__*/
|
|
208
|
+
messageDesc(file_metalstack_admin_v2_filesystem, 5);
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* FilesystemService serves filesystem related functions
|
|
212
|
+
*
|
|
213
|
+
* @generated from service metalstack.admin.v2.FilesystemService
|
|
214
|
+
*/
|
|
215
|
+
export const FilesystemService: GenService<{
|
|
216
|
+
/**
|
|
217
|
+
* Create a filesystem
|
|
218
|
+
*
|
|
219
|
+
* @generated from rpc metalstack.admin.v2.FilesystemService.Create
|
|
220
|
+
*/
|
|
221
|
+
create: {
|
|
222
|
+
methodKind: "unary";
|
|
223
|
+
input: typeof FilesystemServiceCreateRequestSchema;
|
|
224
|
+
output: typeof FilesystemServiceCreateResponseSchema;
|
|
225
|
+
},
|
|
226
|
+
/**
|
|
227
|
+
* Update a filesystem
|
|
228
|
+
*
|
|
229
|
+
* @generated from rpc metalstack.admin.v2.FilesystemService.Update
|
|
230
|
+
*/
|
|
231
|
+
update: {
|
|
232
|
+
methodKind: "unary";
|
|
233
|
+
input: typeof FilesystemServiceUpdateRequestSchema;
|
|
234
|
+
output: typeof FilesystemServiceUpdateResponseSchema;
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* Delete a filesystem
|
|
238
|
+
*
|
|
239
|
+
* @generated from rpc metalstack.admin.v2.FilesystemService.Delete
|
|
240
|
+
*/
|
|
241
|
+
delete: {
|
|
242
|
+
methodKind: "unary";
|
|
243
|
+
input: typeof FilesystemServiceDeleteRequestSchema;
|
|
244
|
+
output: typeof FilesystemServiceDeleteResponseSchema;
|
|
245
|
+
},
|
|
246
|
+
}> = /*@__PURE__*/
|
|
247
|
+
serviceDesc(file_metalstack_admin_v2_filesystem, 0);
|
|
248
|
+
|