@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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/js/Makefile +16 -0
  4. package/js/buf/validate/validate_pb.d.ts +4597 -0
  5. package/js/buf/validate/validate_pb.js +351 -0
  6. package/js/buf/validate/validate_pb.ts +4938 -0
  7. package/js/metalstack/admin/v2/filesystem_pb.d.ts +207 -0
  8. package/js/metalstack/admin/v2/filesystem_pb.js +48 -0
  9. package/js/metalstack/admin/v2/filesystem_pb.ts +248 -0
  10. package/js/metalstack/admin/v2/image_pb.d.ts +242 -0
  11. package/js/metalstack/admin/v2/image_pb.js +59 -0
  12. package/js/metalstack/admin/v2/image_pb.ts +288 -0
  13. package/js/metalstack/admin/v2/ip_pb.d.ts +60 -0
  14. package/js/metalstack/admin/v2/ip_pb.js +26 -0
  15. package/js/metalstack/admin/v2/ip_pb.ts +78 -0
  16. package/js/metalstack/admin/v2/machine_pb.d.ts +113 -0
  17. package/js/metalstack/admin/v2/machine_pb.js +38 -0
  18. package/js/metalstack/admin/v2/machine_pb.ts +140 -0
  19. package/js/metalstack/admin/v2/network_pb.d.ts +407 -0
  20. package/js/metalstack/admin/v2/network_pb.js +68 -0
  21. package/js/metalstack/admin/v2/network_pb.ts +478 -0
  22. package/js/metalstack/admin/v2/partition_pb.d.ts +341 -0
  23. package/js/metalstack/admin/v2/partition_pb.js +58 -0
  24. package/js/metalstack/admin/v2/partition_pb.ts +402 -0
  25. package/js/metalstack/admin/v2/project_pb.d.ts +67 -0
  26. package/js/metalstack/admin/v2/project_pb.js +27 -0
  27. package/js/metalstack/admin/v2/project_pb.ts +87 -0
  28. package/js/metalstack/admin/v2/size_pb.d.ts +183 -0
  29. package/js/metalstack/admin/v2/size_pb.js +48 -0
  30. package/js/metalstack/admin/v2/size_pb.ts +220 -0
  31. package/js/metalstack/admin/v2/switch_pb.d.ts +377 -0
  32. package/js/metalstack/admin/v2/switch_pb.js +79 -0
  33. package/js/metalstack/admin/v2/switch_pb.ts +435 -0
  34. package/js/metalstack/admin/v2/tenant_pb.d.ts +149 -0
  35. package/js/metalstack/admin/v2/tenant_pb.js +38 -0
  36. package/js/metalstack/admin/v2/tenant_pb.ts +182 -0
  37. package/js/metalstack/admin/v2/token_pb.d.ts +164 -0
  38. package/js/metalstack/admin/v2/token_pb.js +47 -0
  39. package/js/metalstack/admin/v2/token_pb.ts +199 -0
  40. package/js/metalstack/admin/v2/vpn_pb.ts +184 -0
  41. package/js/metalstack/api/v2/common_pb.d.ts +407 -0
  42. package/js/metalstack/api/v2/common_pb.js +311 -0
  43. package/js/metalstack/api/v2/common_pb.ts +488 -0
  44. package/js/metalstack/api/v2/filesystem_pb.d.ts +704 -0
  45. package/js/metalstack/api/v2/filesystem_pb.js +259 -0
  46. package/js/metalstack/api/v2/filesystem_pb.ts +819 -0
  47. package/js/metalstack/api/v2/health_pb.d.ts +220 -0
  48. package/js/metalstack/api/v2/health_pb.js +130 -0
  49. package/js/metalstack/api/v2/health_pb.ts +264 -0
  50. package/js/metalstack/api/v2/image_pb.d.ts +368 -0
  51. package/js/metalstack/api/v2/image_pb.js +129 -0
  52. package/js/metalstack/api/v2/image_pb.ts +436 -0
  53. package/js/metalstack/api/v2/ip_pb.d.ts +555 -0
  54. package/js/metalstack/api/v2/ip_pb.js +137 -0
  55. package/js/metalstack/api/v2/ip_pb.ts +650 -0
  56. package/js/metalstack/api/v2/machine_pb.d.ts +1831 -0
  57. package/js/metalstack/api/v2/machine_pb.js +459 -0
  58. package/js/metalstack/api/v2/machine_pb.ts +2155 -0
  59. package/js/metalstack/api/v2/method_pb.d.ts +122 -0
  60. package/js/metalstack/api/v2/method_pb.js +38 -0
  61. package/js/metalstack/api/v2/method_pb.ts +149 -0
  62. package/js/metalstack/api/v2/network_pb.d.ts +820 -0
  63. package/js/metalstack/api/v2/network_pb.js +244 -0
  64. package/js/metalstack/api/v2/network_pb.ts +954 -0
  65. package/js/metalstack/api/v2/partition_pb.d.ts +251 -0
  66. package/js/metalstack/api/v2/partition_pb.js +62 -0
  67. package/js/metalstack/api/v2/partition_pb.ts +300 -0
  68. package/js/metalstack/api/v2/predefined_rules_pb.d.ts +54 -0
  69. package/js/metalstack/api/v2/predefined_rules_pb.js +57 -0
  70. package/js/metalstack/api/v2/predefined_rules_pb.ts +79 -0
  71. package/js/metalstack/api/v2/project_pb.d.ts +862 -0
  72. package/js/metalstack/api/v2/project_pb.js +163 -0
  73. package/js/metalstack/api/v2/project_pb.ts +1001 -0
  74. package/js/metalstack/api/v2/size_pb.d.ts +261 -0
  75. package/js/metalstack/api/v2/size_pb.js +94 -0
  76. package/js/metalstack/api/v2/size_pb.ts +312 -0
  77. package/js/metalstack/api/v2/switch_pb.d.ts +508 -0
  78. package/js/metalstack/api/v2/switch_pb.js +207 -0
  79. package/js/metalstack/api/v2/switch_pb.ts +653 -0
  80. package/js/metalstack/api/v2/tenant_pb.d.ts +864 -0
  81. package/js/metalstack/api/v2/tenant_pb.js +163 -0
  82. package/js/metalstack/api/v2/tenant_pb.ts +1004 -0
  83. package/js/metalstack/api/v2/token_pb.d.ts +540 -0
  84. package/js/metalstack/api/v2/token_pb.js +118 -0
  85. package/js/metalstack/api/v2/token_pb.ts +621 -0
  86. package/js/metalstack/api/v2/user_pb.d.ts +108 -0
  87. package/js/metalstack/api/v2/user_pb.js +34 -0
  88. package/js/metalstack/api/v2/user_pb.ts +139 -0
  89. package/js/metalstack/api/v2/version_pb.d.ts +88 -0
  90. package/js/metalstack/api/v2/version_pb.js +30 -0
  91. package/js/metalstack/api/v2/version_pb.ts +112 -0
  92. package/js/metalstack/api/v2/vpn_pb.ts +72 -0
  93. package/js/metalstack/infra/v2/bmc_pb.d.ts +45 -0
  94. package/js/metalstack/infra/v2/bmc_pb.js +25 -0
  95. package/js/metalstack/infra/v2/bmc_pb.ts +104 -0
  96. package/js/metalstack/infra/v2/event_pb.d.ts +181 -0
  97. package/js/metalstack/infra/v2/event_pb.js +116 -0
  98. package/js/metalstack/infra/v2/event_pb.ts +218 -0
  99. package/js/metalstack/infra/v2/switch_pb.d.ts +223 -0
  100. package/js/metalstack/infra/v2/switch_pb.js +54 -0
  101. package/js/metalstack/infra/v2/switch_pb.ts +228 -0
  102. package/js/tsconfig.json +70 -0
  103. package/package.json +21 -0
@@ -0,0 +1,220 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file metalstack/api/v2/health.proto.
5
+ */
6
+ export declare const file_metalstack_api_v2_health: GenFile;
7
+ /**
8
+ * Health reports the health status of all services
9
+ *
10
+ * @generated from message metalstack.api.v2.Health
11
+ */
12
+ export type Health = Message<"metalstack.api.v2.Health"> & {
13
+ /**
14
+ * Services the health of all individual services
15
+ *
16
+ * @generated from field: repeated metalstack.api.v2.HealthStatus services = 1;
17
+ */
18
+ services: HealthStatus[];
19
+ };
20
+ /**
21
+ * Describes the message metalstack.api.v2.Health.
22
+ * Use `create(HealthSchema)` to create a new message.
23
+ */
24
+ export declare const HealthSchema: GenMessage<Health>;
25
+ /**
26
+ * HealthStatus the health of one service
27
+ *
28
+ * @generated from message metalstack.api.v2.HealthStatus
29
+ */
30
+ export type HealthStatus = Message<"metalstack.api.v2.HealthStatus"> & {
31
+ /**
32
+ * Name the name of the service
33
+ *
34
+ * @generated from field: metalstack.api.v2.Service name = 1;
35
+ */
36
+ name: Service;
37
+ /**
38
+ * Status the status of this service
39
+ *
40
+ * @generated from field: metalstack.api.v2.ServiceStatus status = 2;
41
+ */
42
+ status: ServiceStatus;
43
+ /**
44
+ * Message describes the reason for the unhealthy status if possible
45
+ *
46
+ * @generated from field: string message = 3;
47
+ */
48
+ message: string;
49
+ /**
50
+ * Partitions describes the health of the service by partition
51
+ *
52
+ * @generated from field: map<string, metalstack.api.v2.PartitionHealth> partitions = 4;
53
+ */
54
+ partitions: {
55
+ [key: string]: PartitionHealth;
56
+ };
57
+ };
58
+ /**
59
+ * Describes the message metalstack.api.v2.HealthStatus.
60
+ * Use `create(HealthStatusSchema)` to create a new message.
61
+ */
62
+ export declare const HealthStatusSchema: GenMessage<HealthStatus>;
63
+ /**
64
+ * PartitionHealth the status of a specific service in this partition
65
+ *
66
+ * @generated from message metalstack.api.v2.PartitionHealth
67
+ */
68
+ export type PartitionHealth = Message<"metalstack.api.v2.PartitionHealth"> & {
69
+ /**
70
+ * Status the health status of the service in this partition
71
+ *
72
+ * @generated from field: metalstack.api.v2.ServiceStatus status = 1;
73
+ */
74
+ status: ServiceStatus;
75
+ /**
76
+ * Message describes the reason for the unhealthy status if possible
77
+ *
78
+ * @generated from field: string message = 2;
79
+ */
80
+ message: string;
81
+ };
82
+ /**
83
+ * Describes the message metalstack.api.v2.PartitionHealth.
84
+ * Use `create(PartitionHealthSchema)` to create a new message.
85
+ */
86
+ export declare const PartitionHealthSchema: GenMessage<PartitionHealth>;
87
+ /**
88
+ * HealthServiceGetRequest is request payload to get the health of the system
89
+ *
90
+ * @generated from message metalstack.api.v2.HealthServiceGetRequest
91
+ */
92
+ export type HealthServiceGetRequest = Message<"metalstack.api.v2.HealthServiceGetRequest"> & {};
93
+ /**
94
+ * Describes the message metalstack.api.v2.HealthServiceGetRequest.
95
+ * Use `create(HealthServiceGetRequestSchema)` to create a new message.
96
+ */
97
+ export declare const HealthServiceGetRequestSchema: GenMessage<HealthServiceGetRequest>;
98
+ /**
99
+ * HealthServiceGetRequest is the response payload with the health of the system
100
+ *
101
+ * @generated from message metalstack.api.v2.HealthServiceGetResponse
102
+ */
103
+ export type HealthServiceGetResponse = Message<"metalstack.api.v2.HealthServiceGetResponse"> & {
104
+ /**
105
+ * Health is the overall health of the system
106
+ *
107
+ * @generated from field: metalstack.api.v2.Health health = 1;
108
+ */
109
+ health?: Health;
110
+ };
111
+ /**
112
+ * Describes the message metalstack.api.v2.HealthServiceGetResponse.
113
+ * Use `create(HealthServiceGetResponseSchema)` to create a new message.
114
+ */
115
+ export declare const HealthServiceGetResponseSchema: GenMessage<HealthServiceGetResponse>;
116
+ /**
117
+ * ServiceStatus defines the status of a service
118
+ *
119
+ * @generated from enum metalstack.api.v2.ServiceStatus
120
+ */
121
+ export declare enum ServiceStatus {
122
+ /**
123
+ * SERVICE_STATUS_UNSPECIFIED service status is not known or unspecified
124
+ *
125
+ * @generated from enum value: SERVICE_STATUS_UNSPECIFIED = 0;
126
+ */
127
+ UNSPECIFIED = 0,
128
+ /**
129
+ * SERVICE_STATUS_DEGRADED the service is in degraded status, not the whole functionality is available
130
+ *
131
+ * @generated from enum value: SERVICE_STATUS_DEGRADED = 1;
132
+ */
133
+ DEGRADED = 1,
134
+ /**
135
+ * SERVICE_STATUS_UNHEALTHY the service is in unhealthy status, serious impact is expected
136
+ *
137
+ * @generated from enum value: SERVICE_STATUS_UNHEALTHY = 2;
138
+ */
139
+ UNHEALTHY = 2,
140
+ /**
141
+ * SERVICE_STATUS_HEALTHY the service is in healthy status e.g. fully functional
142
+ *
143
+ * @generated from enum value: SERVICE_STATUS_HEALTHY = 3;
144
+ */
145
+ HEALTHY = 3
146
+ }
147
+ /**
148
+ * Describes the enum metalstack.api.v2.ServiceStatus.
149
+ */
150
+ export declare const ServiceStatusSchema: GenEnum<ServiceStatus>;
151
+ /**
152
+ * Service defines the service for which the healtyness is reported
153
+ *
154
+ * @generated from enum metalstack.api.v2.Service
155
+ */
156
+ export declare enum Service {
157
+ /**
158
+ * SERVICE_UNSPECIFIED is a unknown service
159
+ *
160
+ * @generated from enum value: SERVICE_UNSPECIFIED = 0;
161
+ */
162
+ UNSPECIFIED = 0,
163
+ /**
164
+ * SERVICE_IPAM the ipam service
165
+ *
166
+ * @generated from enum value: SERVICE_IPAM = 1;
167
+ */
168
+ IPAM = 1,
169
+ /**
170
+ * SERVICE_RETHINK the rethinkdb
171
+ *
172
+ * @generated from enum value: SERVICE_RETHINK = 2;
173
+ */
174
+ RETHINK = 2,
175
+ /**
176
+ * SERVICE_MASTERDATA the masterdata-api
177
+ *
178
+ * @generated from enum value: SERVICE_MASTERDATA = 3;
179
+ */
180
+ MASTERDATA = 3,
181
+ /**
182
+ * SERVICE_MACHINES the machine service
183
+ *
184
+ * @generated from enum value: SERVICE_MACHINES = 4;
185
+ */
186
+ MACHINES = 4,
187
+ /**
188
+ * SERVICE_AUDIT the auditing
189
+ *
190
+ * @generated from enum value: SERVICE_AUDIT = 5;
191
+ */
192
+ AUDIT = 5,
193
+ /**
194
+ * SERVICE_VPN the vpn service
195
+ *
196
+ * @generated from enum value: SERVICE_VPN = 6;
197
+ */
198
+ VPN = 6
199
+ }
200
+ /**
201
+ * Describes the enum metalstack.api.v2.Service.
202
+ */
203
+ export declare const ServiceSchema: GenEnum<Service>;
204
+ /**
205
+ * HealthService serves health related functions
206
+ *
207
+ * @generated from service metalstack.api.v2.HealthService
208
+ */
209
+ export declare const HealthService: GenService<{
210
+ /**
211
+ * Get the health of the platform
212
+ *
213
+ * @generated from rpc metalstack.api.v2.HealthService.Get
214
+ */
215
+ get: {
216
+ methodKind: "unary";
217
+ input: typeof HealthServiceGetRequestSchema;
218
+ output: typeof HealthServiceGetResponseSchema;
219
+ };
220
+ }>;
@@ -0,0 +1,130 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/health.proto (package metalstack.api.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_metalstack_api_v2_common } from "./common_pb";
6
+ /**
7
+ * Describes the file metalstack/api/v2/health.proto.
8
+ */
9
+ export const file_metalstack_api_v2_health = /*@__PURE__*/ fileDesc("Ch5tZXRhbHN0YWNrL2FwaS92Mi9oZWFsdGgucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIjsKBkhlYWx0aBIxCghzZXJ2aWNlcxgBIAMoCzIfLm1ldGFsc3RhY2suYXBpLnYyLkhlYWx0aFN0YXR1cyKXAgoMSGVhbHRoU3RhdHVzEigKBG5hbWUYASABKA4yGi5tZXRhbHN0YWNrLmFwaS52Mi5TZXJ2aWNlEjAKBnN0YXR1cxgCIAEoDjIgLm1ldGFsc3RhY2suYXBpLnYyLlNlcnZpY2VTdGF0dXMSDwoHbWVzc2FnZRgDIAEoCRJDCgpwYXJ0aXRpb25zGAQgAygLMi8ubWV0YWxzdGFjay5hcGkudjIuSGVhbHRoU3RhdHVzLlBhcnRpdGlvbnNFbnRyeRpVCg9QYXJ0aXRpb25zRW50cnkSCwoDa2V5GAEgASgJEjEKBXZhbHVlGAIgASgLMiIubWV0YWxzdGFjay5hcGkudjIuUGFydGl0aW9uSGVhbHRoOgI4ASJUCg9QYXJ0aXRpb25IZWFsdGgSMAoGc3RhdHVzGAEgASgOMiAubWV0YWxzdGFjay5hcGkudjIuU2VydmljZVN0YXR1cxIPCgdtZXNzYWdlGAIgASgJIhkKF0hlYWx0aFNlcnZpY2VHZXRSZXF1ZXN0IkUKGEhlYWx0aFNlcnZpY2VHZXRSZXNwb25zZRIpCgZoZWFsdGgYASABKAsyGS5tZXRhbHN0YWNrLmFwaS52Mi5IZWFsdGgqhgEKDVNlcnZpY2VTdGF0dXMSHgoaU0VSVklDRV9TVEFUVVNfVU5TUEVDSUZJRUQQABIbChdTRVJWSUNFX1NUQVRVU19ERUdSQURFRBABEhwKGFNFUlZJQ0VfU1RBVFVTX1VOSEVBTFRIWRACEhoKFlNFUlZJQ0VfU1RBVFVTX0hFQUxUSFkQAyrmAQoHU2VydmljZRIXChNTRVJWSUNFX1VOU1BFQ0lGSUVEEAASGgoMU0VSVklDRV9JUEFNEAEaCIKyGQRpcGFtEiIKD1NFUlZJQ0VfUkVUSElOSxACGg2CshkJcmV0aGlua2RiEiYKElNFUlZJQ0VfTUFTVEVSREFUQRADGg6CshkKbWFzdGVyZGF0YRIiChBTRVJWSUNFX01BQ0hJTkVTEAQaDIKyGQhtYWNoaW5lcxIcCg1TRVJWSUNFX0FVRElUEAUaCYKyGQVhdWRpdBIYCgtTRVJWSUNFX1ZQThAGGgeCshkDdnBuMnkKDUhlYWx0aFNlcnZpY2USaAoDR2V0EioubWV0YWxzdGFjay5hcGkudjIuSGVhbHRoU2VydmljZUdldFJlcXVlc3QaKy5tZXRhbHN0YWNrLmFwaS52Mi5IZWFsdGhTZXJ2aWNlR2V0UmVzcG9uc2UiCNjzGAHg8xgCQsEBChVjb20ubWV0YWxzdGFjay5hcGkudjJCC0hlYWx0aFByb3RvUAFaNWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYXBpL3YyO2FwaXYyogIDTUFYqgIRTWV0YWxzdGFjay5BcGkuVjLKAhFNZXRhbHN0YWNrXEFwaVxWMuICHU1ldGFsc3RhY2tcQXBpXFYyXEdQQk1ldGFkYXRh6gITTWV0YWxzdGFjazo6QXBpOjpWMmIGcHJvdG8z", [file_metalstack_api_v2_common]);
10
+ /**
11
+ * Describes the message metalstack.api.v2.Health.
12
+ * Use `create(HealthSchema)` to create a new message.
13
+ */
14
+ export const HealthSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_health, 0);
15
+ /**
16
+ * Describes the message metalstack.api.v2.HealthStatus.
17
+ * Use `create(HealthStatusSchema)` to create a new message.
18
+ */
19
+ export const HealthStatusSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_health, 1);
20
+ /**
21
+ * Describes the message metalstack.api.v2.PartitionHealth.
22
+ * Use `create(PartitionHealthSchema)` to create a new message.
23
+ */
24
+ export const PartitionHealthSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_health, 2);
25
+ /**
26
+ * Describes the message metalstack.api.v2.HealthServiceGetRequest.
27
+ * Use `create(HealthServiceGetRequestSchema)` to create a new message.
28
+ */
29
+ export const HealthServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_health, 3);
30
+ /**
31
+ * Describes the message metalstack.api.v2.HealthServiceGetResponse.
32
+ * Use `create(HealthServiceGetResponseSchema)` to create a new message.
33
+ */
34
+ export const HealthServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_api_v2_health, 4);
35
+ /**
36
+ * ServiceStatus defines the status of a service
37
+ *
38
+ * @generated from enum metalstack.api.v2.ServiceStatus
39
+ */
40
+ export var ServiceStatus;
41
+ (function (ServiceStatus) {
42
+ /**
43
+ * SERVICE_STATUS_UNSPECIFIED service status is not known or unspecified
44
+ *
45
+ * @generated from enum value: SERVICE_STATUS_UNSPECIFIED = 0;
46
+ */
47
+ ServiceStatus[ServiceStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
48
+ /**
49
+ * SERVICE_STATUS_DEGRADED the service is in degraded status, not the whole functionality is available
50
+ *
51
+ * @generated from enum value: SERVICE_STATUS_DEGRADED = 1;
52
+ */
53
+ ServiceStatus[ServiceStatus["DEGRADED"] = 1] = "DEGRADED";
54
+ /**
55
+ * SERVICE_STATUS_UNHEALTHY the service is in unhealthy status, serious impact is expected
56
+ *
57
+ * @generated from enum value: SERVICE_STATUS_UNHEALTHY = 2;
58
+ */
59
+ ServiceStatus[ServiceStatus["UNHEALTHY"] = 2] = "UNHEALTHY";
60
+ /**
61
+ * SERVICE_STATUS_HEALTHY the service is in healthy status e.g. fully functional
62
+ *
63
+ * @generated from enum value: SERVICE_STATUS_HEALTHY = 3;
64
+ */
65
+ ServiceStatus[ServiceStatus["HEALTHY"] = 3] = "HEALTHY";
66
+ })(ServiceStatus || (ServiceStatus = {}));
67
+ /**
68
+ * Describes the enum metalstack.api.v2.ServiceStatus.
69
+ */
70
+ export const ServiceStatusSchema = /*@__PURE__*/ enumDesc(file_metalstack_api_v2_health, 0);
71
+ /**
72
+ * Service defines the service for which the healtyness is reported
73
+ *
74
+ * @generated from enum metalstack.api.v2.Service
75
+ */
76
+ export var Service;
77
+ (function (Service) {
78
+ /**
79
+ * SERVICE_UNSPECIFIED is a unknown service
80
+ *
81
+ * @generated from enum value: SERVICE_UNSPECIFIED = 0;
82
+ */
83
+ Service[Service["UNSPECIFIED"] = 0] = "UNSPECIFIED";
84
+ /**
85
+ * SERVICE_IPAM the ipam service
86
+ *
87
+ * @generated from enum value: SERVICE_IPAM = 1;
88
+ */
89
+ Service[Service["IPAM"] = 1] = "IPAM";
90
+ /**
91
+ * SERVICE_RETHINK the rethinkdb
92
+ *
93
+ * @generated from enum value: SERVICE_RETHINK = 2;
94
+ */
95
+ Service[Service["RETHINK"] = 2] = "RETHINK";
96
+ /**
97
+ * SERVICE_MASTERDATA the masterdata-api
98
+ *
99
+ * @generated from enum value: SERVICE_MASTERDATA = 3;
100
+ */
101
+ Service[Service["MASTERDATA"] = 3] = "MASTERDATA";
102
+ /**
103
+ * SERVICE_MACHINES the machine service
104
+ *
105
+ * @generated from enum value: SERVICE_MACHINES = 4;
106
+ */
107
+ Service[Service["MACHINES"] = 4] = "MACHINES";
108
+ /**
109
+ * SERVICE_AUDIT the auditing
110
+ *
111
+ * @generated from enum value: SERVICE_AUDIT = 5;
112
+ */
113
+ Service[Service["AUDIT"] = 5] = "AUDIT";
114
+ /**
115
+ * SERVICE_VPN the vpn service
116
+ *
117
+ * @generated from enum value: SERVICE_VPN = 6;
118
+ */
119
+ Service[Service["VPN"] = 6] = "VPN";
120
+ })(Service || (Service = {}));
121
+ /**
122
+ * Describes the enum metalstack.api.v2.Service.
123
+ */
124
+ export const ServiceSchema = /*@__PURE__*/ enumDesc(file_metalstack_api_v2_health, 1);
125
+ /**
126
+ * HealthService serves health related functions
127
+ *
128
+ * @generated from service metalstack.api.v2.HealthService
129
+ */
130
+ export const HealthService = /*@__PURE__*/ serviceDesc(file_metalstack_api_v2_health, 0);
@@ -0,0 +1,264 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file metalstack/api/v2/health.proto (package metalstack.api.v2, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import { file_metalstack_api_v2_common } from "./common_pb";
8
+ import type { Message } from "@bufbuild/protobuf";
9
+
10
+ /**
11
+ * Describes the file metalstack/api/v2/health.proto.
12
+ */
13
+ export const file_metalstack_api_v2_health: GenFile = /*@__PURE__*/
14
+ fileDesc("Ch5tZXRhbHN0YWNrL2FwaS92Mi9oZWFsdGgucHJvdG8SEW1ldGFsc3RhY2suYXBpLnYyIjsKBkhlYWx0aBIxCghzZXJ2aWNlcxgBIAMoCzIfLm1ldGFsc3RhY2suYXBpLnYyLkhlYWx0aFN0YXR1cyKXAgoMSGVhbHRoU3RhdHVzEigKBG5hbWUYASABKA4yGi5tZXRhbHN0YWNrLmFwaS52Mi5TZXJ2aWNlEjAKBnN0YXR1cxgCIAEoDjIgLm1ldGFsc3RhY2suYXBpLnYyLlNlcnZpY2VTdGF0dXMSDwoHbWVzc2FnZRgDIAEoCRJDCgpwYXJ0aXRpb25zGAQgAygLMi8ubWV0YWxzdGFjay5hcGkudjIuSGVhbHRoU3RhdHVzLlBhcnRpdGlvbnNFbnRyeRpVCg9QYXJ0aXRpb25zRW50cnkSCwoDa2V5GAEgASgJEjEKBXZhbHVlGAIgASgLMiIubWV0YWxzdGFjay5hcGkudjIuUGFydGl0aW9uSGVhbHRoOgI4ASJUCg9QYXJ0aXRpb25IZWFsdGgSMAoGc3RhdHVzGAEgASgOMiAubWV0YWxzdGFjay5hcGkudjIuU2VydmljZVN0YXR1cxIPCgdtZXNzYWdlGAIgASgJIhkKF0hlYWx0aFNlcnZpY2VHZXRSZXF1ZXN0IkUKGEhlYWx0aFNlcnZpY2VHZXRSZXNwb25zZRIpCgZoZWFsdGgYASABKAsyGS5tZXRhbHN0YWNrLmFwaS52Mi5IZWFsdGgqhgEKDVNlcnZpY2VTdGF0dXMSHgoaU0VSVklDRV9TVEFUVVNfVU5TUEVDSUZJRUQQABIbChdTRVJWSUNFX1NUQVRVU19ERUdSQURFRBABEhwKGFNFUlZJQ0VfU1RBVFVTX1VOSEVBTFRIWRACEhoKFlNFUlZJQ0VfU1RBVFVTX0hFQUxUSFkQAyrmAQoHU2VydmljZRIXChNTRVJWSUNFX1VOU1BFQ0lGSUVEEAASGgoMU0VSVklDRV9JUEFNEAEaCIKyGQRpcGFtEiIKD1NFUlZJQ0VfUkVUSElOSxACGg2CshkJcmV0aGlua2RiEiYKElNFUlZJQ0VfTUFTVEVSREFUQRADGg6CshkKbWFzdGVyZGF0YRIiChBTRVJWSUNFX01BQ0hJTkVTEAQaDIKyGQhtYWNoaW5lcxIcCg1TRVJWSUNFX0FVRElUEAUaCYKyGQVhdWRpdBIYCgtTRVJWSUNFX1ZQThAGGgeCshkDdnBuMnkKDUhlYWx0aFNlcnZpY2USaAoDR2V0EioubWV0YWxzdGFjay5hcGkudjIuSGVhbHRoU2VydmljZUdldFJlcXVlc3QaKy5tZXRhbHN0YWNrLmFwaS52Mi5IZWFsdGhTZXJ2aWNlR2V0UmVzcG9uc2UiCNjzGAHg8xgCQsEBChVjb20ubWV0YWxzdGFjay5hcGkudjJCC0hlYWx0aFByb3RvUAFaNWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYXBpL3YyO2FwaXYyogIDTUFYqgIRTWV0YWxzdGFjay5BcGkuVjLKAhFNZXRhbHN0YWNrXEFwaVxWMuICHU1ldGFsc3RhY2tcQXBpXFYyXEdQQk1ldGFkYXRh6gITTWV0YWxzdGFjazo6QXBpOjpWMmIGcHJvdG8z", [file_metalstack_api_v2_common]);
15
+
16
+ /**
17
+ * Health reports the health status of all services
18
+ *
19
+ * @generated from message metalstack.api.v2.Health
20
+ */
21
+ export type Health = Message<"metalstack.api.v2.Health"> & {
22
+ /**
23
+ * Services the health of all individual services
24
+ *
25
+ * @generated from field: repeated metalstack.api.v2.HealthStatus services = 1;
26
+ */
27
+ services: HealthStatus[];
28
+ };
29
+
30
+ /**
31
+ * Describes the message metalstack.api.v2.Health.
32
+ * Use `create(HealthSchema)` to create a new message.
33
+ */
34
+ export const HealthSchema: GenMessage<Health> = /*@__PURE__*/
35
+ messageDesc(file_metalstack_api_v2_health, 0);
36
+
37
+ /**
38
+ * HealthStatus the health of one service
39
+ *
40
+ * @generated from message metalstack.api.v2.HealthStatus
41
+ */
42
+ export type HealthStatus = Message<"metalstack.api.v2.HealthStatus"> & {
43
+ /**
44
+ * Name the name of the service
45
+ *
46
+ * @generated from field: metalstack.api.v2.Service name = 1;
47
+ */
48
+ name: Service;
49
+
50
+ /**
51
+ * Status the status of this service
52
+ *
53
+ * @generated from field: metalstack.api.v2.ServiceStatus status = 2;
54
+ */
55
+ status: ServiceStatus;
56
+
57
+ /**
58
+ * Message describes the reason for the unhealthy status if possible
59
+ *
60
+ * @generated from field: string message = 3;
61
+ */
62
+ message: string;
63
+
64
+ /**
65
+ * Partitions describes the health of the service by partition
66
+ *
67
+ * @generated from field: map<string, metalstack.api.v2.PartitionHealth> partitions = 4;
68
+ */
69
+ partitions: { [key: string]: PartitionHealth };
70
+ };
71
+
72
+ /**
73
+ * Describes the message metalstack.api.v2.HealthStatus.
74
+ * Use `create(HealthStatusSchema)` to create a new message.
75
+ */
76
+ export const HealthStatusSchema: GenMessage<HealthStatus> = /*@__PURE__*/
77
+ messageDesc(file_metalstack_api_v2_health, 1);
78
+
79
+ /**
80
+ * PartitionHealth the status of a specific service in this partition
81
+ *
82
+ * @generated from message metalstack.api.v2.PartitionHealth
83
+ */
84
+ export type PartitionHealth = Message<"metalstack.api.v2.PartitionHealth"> & {
85
+ /**
86
+ * Status the health status of the service in this partition
87
+ *
88
+ * @generated from field: metalstack.api.v2.ServiceStatus status = 1;
89
+ */
90
+ status: ServiceStatus;
91
+
92
+ /**
93
+ * Message describes the reason for the unhealthy status if possible
94
+ *
95
+ * @generated from field: string message = 2;
96
+ */
97
+ message: string;
98
+ };
99
+
100
+ /**
101
+ * Describes the message metalstack.api.v2.PartitionHealth.
102
+ * Use `create(PartitionHealthSchema)` to create a new message.
103
+ */
104
+ export const PartitionHealthSchema: GenMessage<PartitionHealth> = /*@__PURE__*/
105
+ messageDesc(file_metalstack_api_v2_health, 2);
106
+
107
+ /**
108
+ * HealthServiceGetRequest is request payload to get the health of the system
109
+ *
110
+ * @generated from message metalstack.api.v2.HealthServiceGetRequest
111
+ */
112
+ export type HealthServiceGetRequest = Message<"metalstack.api.v2.HealthServiceGetRequest"> & {
113
+ };
114
+
115
+ /**
116
+ * Describes the message metalstack.api.v2.HealthServiceGetRequest.
117
+ * Use `create(HealthServiceGetRequestSchema)` to create a new message.
118
+ */
119
+ export const HealthServiceGetRequestSchema: GenMessage<HealthServiceGetRequest> = /*@__PURE__*/
120
+ messageDesc(file_metalstack_api_v2_health, 3);
121
+
122
+ /**
123
+ * HealthServiceGetRequest is the response payload with the health of the system
124
+ *
125
+ * @generated from message metalstack.api.v2.HealthServiceGetResponse
126
+ */
127
+ export type HealthServiceGetResponse = Message<"metalstack.api.v2.HealthServiceGetResponse"> & {
128
+ /**
129
+ * Health is the overall health of the system
130
+ *
131
+ * @generated from field: metalstack.api.v2.Health health = 1;
132
+ */
133
+ health?: Health;
134
+ };
135
+
136
+ /**
137
+ * Describes the message metalstack.api.v2.HealthServiceGetResponse.
138
+ * Use `create(HealthServiceGetResponseSchema)` to create a new message.
139
+ */
140
+ export const HealthServiceGetResponseSchema: GenMessage<HealthServiceGetResponse> = /*@__PURE__*/
141
+ messageDesc(file_metalstack_api_v2_health, 4);
142
+
143
+ /**
144
+ * ServiceStatus defines the status of a service
145
+ *
146
+ * @generated from enum metalstack.api.v2.ServiceStatus
147
+ */
148
+ export enum ServiceStatus {
149
+ /**
150
+ * SERVICE_STATUS_UNSPECIFIED service status is not known or unspecified
151
+ *
152
+ * @generated from enum value: SERVICE_STATUS_UNSPECIFIED = 0;
153
+ */
154
+ UNSPECIFIED = 0,
155
+
156
+ /**
157
+ * SERVICE_STATUS_DEGRADED the service is in degraded status, not the whole functionality is available
158
+ *
159
+ * @generated from enum value: SERVICE_STATUS_DEGRADED = 1;
160
+ */
161
+ DEGRADED = 1,
162
+
163
+ /**
164
+ * SERVICE_STATUS_UNHEALTHY the service is in unhealthy status, serious impact is expected
165
+ *
166
+ * @generated from enum value: SERVICE_STATUS_UNHEALTHY = 2;
167
+ */
168
+ UNHEALTHY = 2,
169
+
170
+ /**
171
+ * SERVICE_STATUS_HEALTHY the service is in healthy status e.g. fully functional
172
+ *
173
+ * @generated from enum value: SERVICE_STATUS_HEALTHY = 3;
174
+ */
175
+ HEALTHY = 3,
176
+ }
177
+
178
+ /**
179
+ * Describes the enum metalstack.api.v2.ServiceStatus.
180
+ */
181
+ export const ServiceStatusSchema: GenEnum<ServiceStatus> = /*@__PURE__*/
182
+ enumDesc(file_metalstack_api_v2_health, 0);
183
+
184
+ /**
185
+ * Service defines the service for which the healtyness is reported
186
+ *
187
+ * @generated from enum metalstack.api.v2.Service
188
+ */
189
+ export enum Service {
190
+ /**
191
+ * SERVICE_UNSPECIFIED is a unknown service
192
+ *
193
+ * @generated from enum value: SERVICE_UNSPECIFIED = 0;
194
+ */
195
+ UNSPECIFIED = 0,
196
+
197
+ /**
198
+ * SERVICE_IPAM the ipam service
199
+ *
200
+ * @generated from enum value: SERVICE_IPAM = 1;
201
+ */
202
+ IPAM = 1,
203
+
204
+ /**
205
+ * SERVICE_RETHINK the rethinkdb
206
+ *
207
+ * @generated from enum value: SERVICE_RETHINK = 2;
208
+ */
209
+ RETHINK = 2,
210
+
211
+ /**
212
+ * SERVICE_MASTERDATA the masterdata-api
213
+ *
214
+ * @generated from enum value: SERVICE_MASTERDATA = 3;
215
+ */
216
+ MASTERDATA = 3,
217
+
218
+ /**
219
+ * SERVICE_MACHINES the machine service
220
+ *
221
+ * @generated from enum value: SERVICE_MACHINES = 4;
222
+ */
223
+ MACHINES = 4,
224
+
225
+ /**
226
+ * SERVICE_AUDIT the auditing
227
+ *
228
+ * @generated from enum value: SERVICE_AUDIT = 5;
229
+ */
230
+ AUDIT = 5,
231
+
232
+ /**
233
+ * SERVICE_VPN the vpn service
234
+ *
235
+ * @generated from enum value: SERVICE_VPN = 6;
236
+ */
237
+ VPN = 6,
238
+ }
239
+
240
+ /**
241
+ * Describes the enum metalstack.api.v2.Service.
242
+ */
243
+ export const ServiceSchema: GenEnum<Service> = /*@__PURE__*/
244
+ enumDesc(file_metalstack_api_v2_health, 1);
245
+
246
+ /**
247
+ * HealthService serves health related functions
248
+ *
249
+ * @generated from service metalstack.api.v2.HealthService
250
+ */
251
+ export const HealthService: GenService<{
252
+ /**
253
+ * Get the health of the platform
254
+ *
255
+ * @generated from rpc metalstack.api.v2.HealthService.Get
256
+ */
257
+ get: {
258
+ methodKind: "unary";
259
+ input: typeof HealthServiceGetRequestSchema;
260
+ output: typeof HealthServiceGetResponseSchema;
261
+ },
262
+ }> = /*@__PURE__*/
263
+ serviceDesc(file_metalstack_api_v2_health, 0);
264
+