@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,184 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file metalstack/admin/v2/vpn.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 { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
10
|
+
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
|
|
11
|
+
import type { VPNNode } from "../../api/v2/vpn_pb";
|
|
12
|
+
import { file_metalstack_api_v2_vpn } from "../../api/v2/vpn_pb";
|
|
13
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the file metalstack/admin/v2/vpn.proto.
|
|
17
|
+
*/
|
|
18
|
+
export const file_metalstack_admin_v2_vpn: GenFile = /*@__PURE__*/
|
|
19
|
+
fileDesc("Ch1tZXRhbHN0YWNrL2FkbWluL3YyL3Zwbi5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiKQAQoYVlBOU2VydmljZUF1dGhLZXlSZXF1ZXN0EhkKB3Byb2plY3QYASABKAlCCLpIBXIDsAEBEhEKCWVwaGVtZXJhbBgCIAEoCBIqCgdleHBpcmVzGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhoKBnJlYXNvbhgEIAEoCUIKukgHcgUQChiABCKxAQoZVlBOU2VydmljZUF1dGhLZXlSZXNwb25zZRIPCgdhZGRyZXNzGAEgASgJEhAKCGF1dGhfa2V5GAIgASgJEhEKCWVwaGVtZXJhbBgDIAEoCBIuCgpleHBpcmVzX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpjcmVhdGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCI+ChpWUE5TZXJ2aWNlTGlzdE5vZGVzUmVxdWVzdBIUCgdwcm9qZWN0GAEgASgJSACIAQFCCgoIX3Byb2plY3QiSAobVlBOU2VydmljZUxpc3ROb2Rlc1Jlc3BvbnNlEikKBW5vZGVzGAEgAygLMhoubWV0YWxzdGFjay5hcGkudjIuVlBOTm9kZTL1AQoKVlBOU2VydmljZRJvCgdBdXRoS2V5Ei0ubWV0YWxzdGFjay5hZG1pbi52Mi5WUE5TZXJ2aWNlQXV0aEtleVJlcXVlc3QaLi5tZXRhbHN0YWNrLmFkbWluLnYyLlZQTlNlcnZpY2VBdXRoS2V5UmVzcG9uc2UiBdLzGAEBEnYKCUxpc3ROb2RlcxIvLm1ldGFsc3RhY2suYWRtaW4udjIuVlBOU2VydmljZUxpc3ROb2Rlc1JlcXVlc3QaMC5tZXRhbHN0YWNrLmFkbWluLnYyLlZQTlNlcnZpY2VMaXN0Tm9kZXNSZXNwb25zZSIG0vMYAgECQswBChdjb20ubWV0YWxzdGFjay5hZG1pbi52MkIIVnBuUHJvdG9QAVo5Z2l0aHViLmNvbS9tZXRhbC1zdGFjay9hcGkvZ28vbWV0YWxzdGFjay9hZG1pbi92MjthZG1pbnYyogIDTUFYqgITTWV0YWxzdGFjay5BZG1pbi5WMsoCE01ldGFsc3RhY2tcQWRtaW5cVjLiAh9NZXRhbHN0YWNrXEFkbWluXFYyXEdQQk1ldGFkYXRh6gIVTWV0YWxzdGFjazo6QWRtaW46OlYyYgZwcm90bzM", [file_buf_validate_validate, file_google_protobuf_duration, file_google_protobuf_timestamp, file_metalstack_api_v2_common, file_metalstack_api_v2_vpn]);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* VPNServiceAuthKeyRequest is the request payload for a vpn authkey request.
|
|
23
|
+
*
|
|
24
|
+
* @generated from message metalstack.admin.v2.VPNServiceAuthKeyRequest
|
|
25
|
+
*/
|
|
26
|
+
export type VPNServiceAuthKeyRequest = Message<"metalstack.admin.v2.VPNServiceAuthKeyRequest"> & {
|
|
27
|
+
/**
|
|
28
|
+
* Project for which a vpn authkey should be generated.
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: string project = 1;
|
|
31
|
+
*/
|
|
32
|
+
project: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Ephemeral defines if the authkey should be ephemeral.
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: bool ephemeral = 2;
|
|
38
|
+
*/
|
|
39
|
+
ephemeral: boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Expires defines the duration after which the authkey expires.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: google.protobuf.Duration expires = 3;
|
|
45
|
+
*/
|
|
46
|
+
expires?: Duration;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Reason must be provided why access to the vpn is requested
|
|
50
|
+
* reason is only forwarded to a audit sink
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: string reason = 4;
|
|
53
|
+
*/
|
|
54
|
+
reason: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message metalstack.admin.v2.VPNServiceAuthKeyRequest.
|
|
59
|
+
* Use `create(VPNServiceAuthKeyRequestSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const VPNServiceAuthKeyRequestSchema: GenMessage<VPNServiceAuthKeyRequest> = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_metalstack_admin_v2_vpn, 0);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* VPNServiceAuthKeyResponse is the request payload for a authkey response
|
|
66
|
+
*
|
|
67
|
+
* @generated from message metalstack.admin.v2.VPNServiceAuthKeyResponse
|
|
68
|
+
*/
|
|
69
|
+
export type VPNServiceAuthKeyResponse = Message<"metalstack.admin.v2.VPNServiceAuthKeyResponse"> & {
|
|
70
|
+
/**
|
|
71
|
+
* Address is the address of the vpn control plane.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: string address = 1;
|
|
74
|
+
*/
|
|
75
|
+
address: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* AuthKey is the key to connect to the vpn at the given address.
|
|
79
|
+
* This key can only be seen once.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: string auth_key = 2;
|
|
82
|
+
*/
|
|
83
|
+
authKey: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Ephemeral defines if the authkey should be ephemeral.
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: bool ephemeral = 3;
|
|
89
|
+
*/
|
|
90
|
+
ephemeral: boolean;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* ExpiresAt this key cannot be used after this timestamp.
|
|
94
|
+
*
|
|
95
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 4;
|
|
96
|
+
*/
|
|
97
|
+
expiresAt?: Timestamp;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* CreatedAt this key was created at this timestamp.
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
103
|
+
*/
|
|
104
|
+
createdAt?: Timestamp;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Describes the message metalstack.admin.v2.VPNServiceAuthKeyResponse.
|
|
109
|
+
* Use `create(VPNServiceAuthKeyResponseSchema)` to create a new message.
|
|
110
|
+
*/
|
|
111
|
+
export const VPNServiceAuthKeyResponseSchema: GenMessage<VPNServiceAuthKeyResponse> = /*@__PURE__*/
|
|
112
|
+
messageDesc(file_metalstack_admin_v2_vpn, 1);
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* VPNServiceListNodesRequest is the request payload for a vpn list nodes request
|
|
116
|
+
*
|
|
117
|
+
* @generated from message metalstack.admin.v2.VPNServiceListNodesRequest
|
|
118
|
+
*/
|
|
119
|
+
export type VPNServiceListNodesRequest = Message<"metalstack.admin.v2.VPNServiceListNodesRequest"> & {
|
|
120
|
+
/**
|
|
121
|
+
* Project if given only nodes of this user are returned
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: optional string project = 1;
|
|
124
|
+
*/
|
|
125
|
+
project?: string;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Describes the message metalstack.admin.v2.VPNServiceListNodesRequest.
|
|
130
|
+
* Use `create(VPNServiceListNodesRequestSchema)` to create a new message.
|
|
131
|
+
*/
|
|
132
|
+
export const VPNServiceListNodesRequestSchema: GenMessage<VPNServiceListNodesRequest> = /*@__PURE__*/
|
|
133
|
+
messageDesc(file_metalstack_admin_v2_vpn, 2);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* VPNServiceListNodesResponse is the response payload for a vpn list nodes request
|
|
137
|
+
*
|
|
138
|
+
* @generated from message metalstack.admin.v2.VPNServiceListNodesResponse
|
|
139
|
+
*/
|
|
140
|
+
export type VPNServiceListNodesResponse = Message<"metalstack.admin.v2.VPNServiceListNodesResponse"> & {
|
|
141
|
+
/**
|
|
142
|
+
* Nodes connected to the vpn
|
|
143
|
+
*
|
|
144
|
+
* @generated from field: repeated metalstack.api.v2.VPNNode nodes = 1;
|
|
145
|
+
*/
|
|
146
|
+
nodes: VPNNode[];
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Describes the message metalstack.admin.v2.VPNServiceListNodesResponse.
|
|
151
|
+
* Use `create(VPNServiceListNodesResponseSchema)` to create a new message.
|
|
152
|
+
*/
|
|
153
|
+
export const VPNServiceListNodesResponseSchema: GenMessage<VPNServiceListNodesResponse> = /*@__PURE__*/
|
|
154
|
+
messageDesc(file_metalstack_admin_v2_vpn, 3);
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* VPNService serves vpn related functions
|
|
158
|
+
*
|
|
159
|
+
* @generated from service metalstack.admin.v2.VPNService
|
|
160
|
+
*/
|
|
161
|
+
export const VPNService: GenService<{
|
|
162
|
+
/**
|
|
163
|
+
* AuthKey generates a authkey for a project to join a machine to the project vpn
|
|
164
|
+
*
|
|
165
|
+
* @generated from rpc metalstack.admin.v2.VPNService.AuthKey
|
|
166
|
+
*/
|
|
167
|
+
authKey: {
|
|
168
|
+
methodKind: "unary";
|
|
169
|
+
input: typeof VPNServiceAuthKeyRequestSchema;
|
|
170
|
+
output: typeof VPNServiceAuthKeyResponseSchema;
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* ListNodes returns a list of machines actually connected to the vpn
|
|
174
|
+
*
|
|
175
|
+
* @generated from rpc metalstack.admin.v2.VPNService.ListNodes
|
|
176
|
+
*/
|
|
177
|
+
listNodes: {
|
|
178
|
+
methodKind: "unary";
|
|
179
|
+
input: typeof VPNServiceListNodesRequestSchema;
|
|
180
|
+
output: typeof VPNServiceListNodesResponseSchema;
|
|
181
|
+
},
|
|
182
|
+
}> = /*@__PURE__*/
|
|
183
|
+
serviceDesc(file_metalstack_admin_v2_vpn, 0);
|
|
184
|
+
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { EnumValueOptions, MethodOptions, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file metalstack/api/v2/common.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_metalstack_api_v2_common: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Paging defines paging for methods with a lot of results
|
|
10
|
+
*
|
|
11
|
+
* @generated from message metalstack.api.v2.Paging
|
|
12
|
+
*/
|
|
13
|
+
export type Paging = Message<"metalstack.api.v2.Paging"> & {
|
|
14
|
+
/**
|
|
15
|
+
* Page is used for pagination, if unset only the first page is returned,
|
|
16
|
+
* the list response contains then the page number for the next page.
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: optional uint64 page = 1;
|
|
19
|
+
*/
|
|
20
|
+
page?: bigint;
|
|
21
|
+
/**
|
|
22
|
+
* Count is the number of results returned per page, if not given server side defaults apply
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: optional uint64 count = 2;
|
|
25
|
+
*/
|
|
26
|
+
count?: bigint;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message metalstack.api.v2.Paging.
|
|
30
|
+
* Use `create(PagingSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
export declare const PagingSchema: GenMessage<Paging>;
|
|
33
|
+
/**
|
|
34
|
+
* Labels define additional information to a entity
|
|
35
|
+
*
|
|
36
|
+
* @generated from message metalstack.api.v2.Labels
|
|
37
|
+
*/
|
|
38
|
+
export type Labels = Message<"metalstack.api.v2.Labels"> & {
|
|
39
|
+
/**
|
|
40
|
+
* Labels consists labels
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: map<string, string> labels = 1;
|
|
43
|
+
*/
|
|
44
|
+
labels: {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Describes the message metalstack.api.v2.Labels.
|
|
50
|
+
* Use `create(LabelsSchema)` to create a new message.
|
|
51
|
+
*/
|
|
52
|
+
export declare const LabelsSchema: GenMessage<Labels>;
|
|
53
|
+
/**
|
|
54
|
+
* Meta of a message
|
|
55
|
+
*
|
|
56
|
+
* @generated from message metalstack.api.v2.Meta
|
|
57
|
+
*/
|
|
58
|
+
export type Meta = Message<"metalstack.api.v2.Meta"> & {
|
|
59
|
+
/**
|
|
60
|
+
* Tags on this entity
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: optional metalstack.api.v2.Labels labels = 1;
|
|
63
|
+
*/
|
|
64
|
+
labels?: Labels;
|
|
65
|
+
/**
|
|
66
|
+
* CreatedAt is the date when this entity was created
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: google.protobuf.Timestamp created_at = 2;
|
|
69
|
+
*/
|
|
70
|
+
createdAt?: Timestamp;
|
|
71
|
+
/**
|
|
72
|
+
* UpdatedAt is the date when this entity was updated
|
|
73
|
+
* must be part of the update request to ensure optimistic locking
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 3;
|
|
76
|
+
*/
|
|
77
|
+
updatedAt?: Timestamp;
|
|
78
|
+
/**
|
|
79
|
+
* Generation identifies how often this entity was modified since creation.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: uint64 generation = 4;
|
|
82
|
+
*/
|
|
83
|
+
generation: bigint;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Describes the message metalstack.api.v2.Meta.
|
|
87
|
+
* Use `create(MetaSchema)` to create a new message.
|
|
88
|
+
*/
|
|
89
|
+
export declare const MetaSchema: GenMessage<Meta>;
|
|
90
|
+
/**
|
|
91
|
+
* UpdateLabels is a message to update labels
|
|
92
|
+
*
|
|
93
|
+
* @generated from message metalstack.api.v2.UpdateLabels
|
|
94
|
+
*/
|
|
95
|
+
export type UpdateLabels = Message<"metalstack.api.v2.UpdateLabels"> & {
|
|
96
|
+
/**
|
|
97
|
+
* Update labels. New ones will be added, existing ones overwritten
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: metalstack.api.v2.Labels update = 1;
|
|
100
|
+
*/
|
|
101
|
+
update?: Labels;
|
|
102
|
+
/**
|
|
103
|
+
* Remove labels by key
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: repeated string remove = 2;
|
|
106
|
+
*/
|
|
107
|
+
remove: string[];
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message metalstack.api.v2.UpdateLabels.
|
|
111
|
+
* Use `create(UpdateLabelsSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export declare const UpdateLabelsSchema: GenMessage<UpdateLabels>;
|
|
114
|
+
/**
|
|
115
|
+
* UpdateMeta must be provided with every UpdateRequest to define how optimistic locking should be handled
|
|
116
|
+
*
|
|
117
|
+
* @generated from message metalstack.api.v2.UpdateMeta
|
|
118
|
+
*/
|
|
119
|
+
export type UpdateMeta = Message<"metalstack.api.v2.UpdateMeta"> & {
|
|
120
|
+
/**
|
|
121
|
+
* UpdatedAt is the date when this entity was updated
|
|
122
|
+
* must be part of the update request to ensure optimistic locking
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 1;
|
|
125
|
+
*/
|
|
126
|
+
updatedAt?: Timestamp;
|
|
127
|
+
/**
|
|
128
|
+
* LockingStrategy to be used for this update request
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: metalstack.api.v2.OptimisticLockingStrategy locking_strategy = 2;
|
|
131
|
+
*/
|
|
132
|
+
lockingStrategy: OptimisticLockingStrategy;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Describes the message metalstack.api.v2.UpdateMeta.
|
|
136
|
+
* Use `create(UpdateMetaSchema)` to create a new message.
|
|
137
|
+
*/
|
|
138
|
+
export declare const UpdateMetaSchema: GenMessage<UpdateMeta>;
|
|
139
|
+
/**
|
|
140
|
+
* TenantRole specifies what role a logged in user needs to call this tenant scoped service
|
|
141
|
+
*
|
|
142
|
+
* @generated from enum metalstack.api.v2.TenantRole
|
|
143
|
+
*/
|
|
144
|
+
export declare enum TenantRole {
|
|
145
|
+
/**
|
|
146
|
+
* TENANT_ROLE_UNSPECIFIED is not specified
|
|
147
|
+
*
|
|
148
|
+
* @generated from enum value: TENANT_ROLE_UNSPECIFIED = 0;
|
|
149
|
+
*/
|
|
150
|
+
UNSPECIFIED = 0,
|
|
151
|
+
/**
|
|
152
|
+
* TENANT_ROLE_OWNER the logged in user needs at least owner role to call this method
|
|
153
|
+
*
|
|
154
|
+
* @generated from enum value: TENANT_ROLE_OWNER = 1;
|
|
155
|
+
*/
|
|
156
|
+
OWNER = 1,
|
|
157
|
+
/**
|
|
158
|
+
* TENANT_ROLE_EDITOR the logged in user needs at least editor role to call this method
|
|
159
|
+
*
|
|
160
|
+
* @generated from enum value: TENANT_ROLE_EDITOR = 2;
|
|
161
|
+
*/
|
|
162
|
+
EDITOR = 2,
|
|
163
|
+
/**
|
|
164
|
+
* TENANT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
|
|
165
|
+
*
|
|
166
|
+
* @generated from enum value: TENANT_ROLE_VIEWER = 3;
|
|
167
|
+
*/
|
|
168
|
+
VIEWER = 3,
|
|
169
|
+
/**
|
|
170
|
+
* TENANT_ROLE_GUEST the logged in user needs at least guest role to call this method
|
|
171
|
+
* The guest role is assumed by users who are invited to a tenant's project without them
|
|
172
|
+
* having a direct membership within the tenant.
|
|
173
|
+
*
|
|
174
|
+
* @generated from enum value: TENANT_ROLE_GUEST = 4;
|
|
175
|
+
*/
|
|
176
|
+
GUEST = 4
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Describes the enum metalstack.api.v2.TenantRole.
|
|
180
|
+
*/
|
|
181
|
+
export declare const TenantRoleSchema: GenEnum<TenantRole>;
|
|
182
|
+
/**
|
|
183
|
+
* ProjectRole specifies what role a logged in user needs to call this project scoped service
|
|
184
|
+
*
|
|
185
|
+
* @generated from enum metalstack.api.v2.ProjectRole
|
|
186
|
+
*/
|
|
187
|
+
export declare enum ProjectRole {
|
|
188
|
+
/**
|
|
189
|
+
* PROJECT_ROLE_UNSPECIFIED is not specified
|
|
190
|
+
*
|
|
191
|
+
* @generated from enum value: PROJECT_ROLE_UNSPECIFIED = 0;
|
|
192
|
+
*/
|
|
193
|
+
UNSPECIFIED = 0,
|
|
194
|
+
/**
|
|
195
|
+
* PROJECT_ROLE_OWNER the logged in user needs at least owner role to call this method
|
|
196
|
+
*
|
|
197
|
+
* @generated from enum value: PROJECT_ROLE_OWNER = 1;
|
|
198
|
+
*/
|
|
199
|
+
OWNER = 1,
|
|
200
|
+
/**
|
|
201
|
+
* PROJECT_ROLE_EDITOR the logged in user needs at least editor role to call this method
|
|
202
|
+
*
|
|
203
|
+
* @generated from enum value: PROJECT_ROLE_EDITOR = 2;
|
|
204
|
+
*/
|
|
205
|
+
EDITOR = 2,
|
|
206
|
+
/**
|
|
207
|
+
* PROJECT_ROLE_VIEWER the logged in user needs at least viewer role to call this method
|
|
208
|
+
*
|
|
209
|
+
* @generated from enum value: PROJECT_ROLE_VIEWER = 3;
|
|
210
|
+
*/
|
|
211
|
+
VIEWER = 3
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Describes the enum metalstack.api.v2.ProjectRole.
|
|
215
|
+
*/
|
|
216
|
+
export declare const ProjectRoleSchema: GenEnum<ProjectRole>;
|
|
217
|
+
/**
|
|
218
|
+
* AdminRole specifies what role a logged in user needs to call this admin service
|
|
219
|
+
*
|
|
220
|
+
* @generated from enum metalstack.api.v2.AdminRole
|
|
221
|
+
*/
|
|
222
|
+
export declare enum AdminRole {
|
|
223
|
+
/**
|
|
224
|
+
* ADMIN_ROLE_UNSPECIFIED is not specified
|
|
225
|
+
*
|
|
226
|
+
* @generated from enum value: ADMIN_ROLE_UNSPECIFIED = 0;
|
|
227
|
+
*/
|
|
228
|
+
UNSPECIFIED = 0,
|
|
229
|
+
/**
|
|
230
|
+
* ADMIN_ROLE_EDITOR the logged in user needs at least editor role to call this method
|
|
231
|
+
*
|
|
232
|
+
* @generated from enum value: ADMIN_ROLE_EDITOR = 1;
|
|
233
|
+
*/
|
|
234
|
+
EDITOR = 1,
|
|
235
|
+
/**
|
|
236
|
+
* ADMIN_ROLE_VIEWER the logged in user needs at least viewer role to call this method
|
|
237
|
+
*
|
|
238
|
+
* @generated from enum value: ADMIN_ROLE_VIEWER = 2;
|
|
239
|
+
*/
|
|
240
|
+
VIEWER = 2
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Describes the enum metalstack.api.v2.AdminRole.
|
|
244
|
+
*/
|
|
245
|
+
export declare const AdminRoleSchema: GenEnum<AdminRole>;
|
|
246
|
+
/**
|
|
247
|
+
* InfraRole specifies what role a microservice needs to call this infra service
|
|
248
|
+
*
|
|
249
|
+
* @generated from enum metalstack.api.v2.InfraRole
|
|
250
|
+
*/
|
|
251
|
+
export declare enum InfraRole {
|
|
252
|
+
/**
|
|
253
|
+
* INFRA_ROLE_UNSPECIFIED is not specified
|
|
254
|
+
*
|
|
255
|
+
* @generated from enum value: INFRA_ROLE_UNSPECIFIED = 0;
|
|
256
|
+
*/
|
|
257
|
+
UNSPECIFIED = 0,
|
|
258
|
+
/**
|
|
259
|
+
* INFRA_ROLE_EDITOR a microservice needs at least editor role to call this method
|
|
260
|
+
*
|
|
261
|
+
* @generated from enum value: INFRA_ROLE_EDITOR = 1;
|
|
262
|
+
*/
|
|
263
|
+
EDITOR = 1,
|
|
264
|
+
/**
|
|
265
|
+
* INFRA_ROLE_VIEWER a microservice needs at least viewer role to call this method
|
|
266
|
+
*
|
|
267
|
+
* @generated from enum value: INFRA_ROLE_VIEWER = 2;
|
|
268
|
+
*/
|
|
269
|
+
VIEWER = 2
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Describes the enum metalstack.api.v2.InfraRole.
|
|
273
|
+
*/
|
|
274
|
+
export declare const InfraRoleSchema: GenEnum<InfraRole>;
|
|
275
|
+
/**
|
|
276
|
+
* Visibility of a method
|
|
277
|
+
*
|
|
278
|
+
* @generated from enum metalstack.api.v2.Visibility
|
|
279
|
+
*/
|
|
280
|
+
export declare enum Visibility {
|
|
281
|
+
/**
|
|
282
|
+
* VISIBILITY_UNSPECIFIED is not defined
|
|
283
|
+
*
|
|
284
|
+
* @generated from enum value: VISIBILITY_UNSPECIFIED = 0;
|
|
285
|
+
*/
|
|
286
|
+
UNSPECIFIED = 0,
|
|
287
|
+
/**
|
|
288
|
+
* VISIBILITY_PUBLIC specifies that this service is accessible without authentication
|
|
289
|
+
*
|
|
290
|
+
* @generated from enum value: VISIBILITY_PUBLIC = 1;
|
|
291
|
+
*/
|
|
292
|
+
PUBLIC = 1,
|
|
293
|
+
/**
|
|
294
|
+
* VISIBILITY_SELF enable call this endpoint from the authenticated user only
|
|
295
|
+
*
|
|
296
|
+
* @generated from enum value: VISIBILITY_SELF = 3;
|
|
297
|
+
*/
|
|
298
|
+
SELF = 3
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Describes the enum metalstack.api.v2.Visibility.
|
|
302
|
+
*/
|
|
303
|
+
export declare const VisibilitySchema: GenEnum<Visibility>;
|
|
304
|
+
/**
|
|
305
|
+
* Auditing option specified per service method
|
|
306
|
+
* by default all service methods are included
|
|
307
|
+
* add the auditing option if you want to exclude a method in auditing
|
|
308
|
+
*
|
|
309
|
+
* @generated from enum metalstack.api.v2.Auditing
|
|
310
|
+
*/
|
|
311
|
+
export declare enum Auditing {
|
|
312
|
+
/**
|
|
313
|
+
* AUDITING_UNSPECIFIED is not specified
|
|
314
|
+
*
|
|
315
|
+
* @generated from enum value: AUDITING_UNSPECIFIED = 0;
|
|
316
|
+
*/
|
|
317
|
+
UNSPECIFIED = 0,
|
|
318
|
+
/**
|
|
319
|
+
* AUDITING_INCLUDED if a method is annotated with this, all calls are audited
|
|
320
|
+
*
|
|
321
|
+
* @generated from enum value: AUDITING_INCLUDED = 1;
|
|
322
|
+
*/
|
|
323
|
+
INCLUDED = 1,
|
|
324
|
+
/**
|
|
325
|
+
* AUDITING_EXCLUDED if a method is annotated with this, no calls are audited
|
|
326
|
+
*
|
|
327
|
+
* @generated from enum value: AUDITING_EXCLUDED = 2;
|
|
328
|
+
*/
|
|
329
|
+
EXCLUDED = 2
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Describes the enum metalstack.api.v2.Auditing.
|
|
333
|
+
*/
|
|
334
|
+
export declare const AuditingSchema: GenEnum<Auditing>;
|
|
335
|
+
/**
|
|
336
|
+
* OptimisticLockingStrategy defines how optimistic locking should be handled.
|
|
337
|
+
* It defaults to client side, which requires the UpdatedAt timestamp to be provided
|
|
338
|
+
*
|
|
339
|
+
* @generated from enum metalstack.api.v2.OptimisticLockingStrategy
|
|
340
|
+
*/
|
|
341
|
+
export declare enum OptimisticLockingStrategy {
|
|
342
|
+
/**
|
|
343
|
+
* OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED same as client side
|
|
344
|
+
*
|
|
345
|
+
* @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED = 0;
|
|
346
|
+
*/
|
|
347
|
+
UNSPECIFIED = 0,
|
|
348
|
+
/**
|
|
349
|
+
* OPTIMISTIC_LOCKING_STRATEGY_CLIENT requires UpdatedAt to be specified
|
|
350
|
+
*
|
|
351
|
+
* @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_CLIENT = 1;
|
|
352
|
+
*/
|
|
353
|
+
CLIENT = 1,
|
|
354
|
+
/**
|
|
355
|
+
* OPTIMISTIC_LOCKING_STRATEGY_SERVER allows to omit UpdatedAt
|
|
356
|
+
* and fetches the most recent entity before updating with the given values with the update request
|
|
357
|
+
*
|
|
358
|
+
* @generated from enum value: OPTIMISTIC_LOCKING_STRATEGY_SERVER = 2;
|
|
359
|
+
*/
|
|
360
|
+
SERVER = 2
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Describes the enum metalstack.api.v2.OptimisticLockingStrategy.
|
|
364
|
+
*/
|
|
365
|
+
export declare const OptimisticLockingStrategySchema: GenEnum<OptimisticLockingStrategy>;
|
|
366
|
+
/**
|
|
367
|
+
* TenantRoles are used to define which tenant role a logged in user must provide to call this method
|
|
368
|
+
*
|
|
369
|
+
* @generated from extension: repeated metalstack.api.v2.TenantRole tenant_roles = 51000;
|
|
370
|
+
*/
|
|
371
|
+
export declare const tenant_roles: GenExtension<MethodOptions, TenantRole[]>;
|
|
372
|
+
/**
|
|
373
|
+
* ProjectRoles are used to define which project role a logged in user must provide to call this method
|
|
374
|
+
*
|
|
375
|
+
* @generated from extension: repeated metalstack.api.v2.ProjectRole project_roles = 51001;
|
|
376
|
+
*/
|
|
377
|
+
export declare const project_roles: GenExtension<MethodOptions, ProjectRole[]>;
|
|
378
|
+
/**
|
|
379
|
+
* AdminRoles are used to define which admin role a logged in user must provide to call this method
|
|
380
|
+
*
|
|
381
|
+
* @generated from extension: repeated metalstack.api.v2.AdminRole admin_roles = 51002;
|
|
382
|
+
*/
|
|
383
|
+
export declare const admin_roles: GenExtension<MethodOptions, AdminRole[]>;
|
|
384
|
+
/**
|
|
385
|
+
* Visibility defines the visibility of this method, this is used to have public or self visible methods
|
|
386
|
+
*
|
|
387
|
+
* @generated from extension: metalstack.api.v2.Visibility visibility = 51003;
|
|
388
|
+
*/
|
|
389
|
+
export declare const visibility: GenExtension<MethodOptions, Visibility>;
|
|
390
|
+
/**
|
|
391
|
+
* Auditing defines if calls to this method should be audited or not
|
|
392
|
+
*
|
|
393
|
+
* @generated from extension: metalstack.api.v2.Auditing auditing = 51004;
|
|
394
|
+
*/
|
|
395
|
+
export declare const auditing: GenExtension<MethodOptions, Auditing>;
|
|
396
|
+
/**
|
|
397
|
+
* InfraRoles are used to define which infra role a microservice must provide to call this method
|
|
398
|
+
*
|
|
399
|
+
* @generated from extension: repeated metalstack.api.v2.InfraRole infra_roles = 51005;
|
|
400
|
+
*/
|
|
401
|
+
export declare const infra_roles: GenExtension<MethodOptions, InfraRole[]>;
|
|
402
|
+
/**
|
|
403
|
+
* StringValue which can be set to a enum
|
|
404
|
+
*
|
|
405
|
+
* @generated from extension: string enum_string_value = 52000;
|
|
406
|
+
*/
|
|
407
|
+
export declare const enum_string_value: GenExtension<EnumValueOptions, string>;
|