From 0673379443b36eac08c24e7d54d990bd222ca43b Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Thu, 3 Sep 2026 13:52:15 +0200 Subject: [PATCH 1/4] Update deps --- go.mod | 12 +++++------ go.sum | 20 +++++++++---------- js/buf/validate/validate_pb.d.ts | 12 +++++------ js/buf/validate/validate_pb.ts | 16 +++++++-------- js/metalstack/admin/v2/audit_pb.js | 2 +- js/metalstack/admin/v2/audit_pb.ts | 2 +- js/metalstack/admin/v2/component_pb.js | 2 +- js/metalstack/admin/v2/component_pb.ts | 2 +- js/metalstack/admin/v2/filesystem_pb.js | 2 +- js/metalstack/admin/v2/filesystem_pb.ts | 2 +- js/metalstack/admin/v2/image_pb.js | 2 +- js/metalstack/admin/v2/image_pb.ts | 2 +- js/metalstack/admin/v2/ip_pb.js | 2 +- js/metalstack/admin/v2/ip_pb.ts | 2 +- js/metalstack/admin/v2/machine_pb.js | 2 +- js/metalstack/admin/v2/machine_pb.ts | 2 +- js/metalstack/admin/v2/network_pb.js | 2 +- js/metalstack/admin/v2/network_pb.ts | 2 +- js/metalstack/admin/v2/partition_pb.js | 2 +- js/metalstack/admin/v2/partition_pb.ts | 2 +- js/metalstack/admin/v2/project_pb.js | 2 +- js/metalstack/admin/v2/project_pb.ts | 2 +- .../admin/v2/size_imageconstraint_pb.js | 2 +- .../admin/v2/size_imageconstraint_pb.ts | 2 +- js/metalstack/admin/v2/size_pb.js | 2 +- js/metalstack/admin/v2/size_pb.ts | 2 +- js/metalstack/admin/v2/size_reservation_pb.js | 2 +- js/metalstack/admin/v2/size_reservation_pb.ts | 2 +- js/metalstack/admin/v2/switch_pb.js | 2 +- js/metalstack/admin/v2/switch_pb.ts | 2 +- js/metalstack/admin/v2/task_pb.js | 2 +- js/metalstack/admin/v2/task_pb.ts | 2 +- js/metalstack/admin/v2/tenant_pb.js | 2 +- js/metalstack/admin/v2/tenant_pb.ts | 2 +- js/metalstack/admin/v2/token_pb.js | 2 +- js/metalstack/admin/v2/token_pb.ts | 2 +- js/metalstack/admin/v2/vpn_pb.js | 2 +- js/metalstack/admin/v2/vpn_pb.ts | 2 +- js/metalstack/api/v2/audit_pb.js | 2 +- js/metalstack/api/v2/audit_pb.ts | 2 +- js/metalstack/api/v2/common_pb.js | 2 +- js/metalstack/api/v2/common_pb.ts | 2 +- js/metalstack/api/v2/component_pb.js | 2 +- js/metalstack/api/v2/component_pb.ts | 2 +- js/metalstack/api/v2/filesystem_pb.js | 2 +- js/metalstack/api/v2/filesystem_pb.ts | 2 +- js/metalstack/api/v2/health_pb.js | 2 +- js/metalstack/api/v2/health_pb.ts | 2 +- js/metalstack/api/v2/image_pb.js | 2 +- js/metalstack/api/v2/image_pb.ts | 2 +- js/metalstack/api/v2/ip_pb.js | 2 +- js/metalstack/api/v2/ip_pb.ts | 2 +- js/metalstack/api/v2/machine_pb.js | 2 +- js/metalstack/api/v2/machine_pb.ts | 2 +- js/metalstack/api/v2/method_pb.js | 2 +- js/metalstack/api/v2/method_pb.ts | 2 +- js/metalstack/api/v2/network_pb.js | 2 +- js/metalstack/api/v2/network_pb.ts | 2 +- js/metalstack/api/v2/partition_pb.js | 2 +- js/metalstack/api/v2/partition_pb.ts | 2 +- js/metalstack/api/v2/predefined_rules_pb.js | 2 +- js/metalstack/api/v2/predefined_rules_pb.ts | 2 +- js/metalstack/api/v2/project_pb.js | 2 +- js/metalstack/api/v2/project_pb.ts | 2 +- .../api/v2/size_imageconstraint_pb.js | 2 +- .../api/v2/size_imageconstraint_pb.ts | 2 +- js/metalstack/api/v2/size_pb.js | 2 +- js/metalstack/api/v2/size_pb.ts | 2 +- js/metalstack/api/v2/size_reservation_pb.js | 2 +- js/metalstack/api/v2/size_reservation_pb.ts | 2 +- js/metalstack/api/v2/switch_pb.js | 2 +- js/metalstack/api/v2/switch_pb.ts | 2 +- js/metalstack/api/v2/tenant_pb.js | 2 +- js/metalstack/api/v2/tenant_pb.ts | 2 +- js/metalstack/api/v2/token_pb.js | 2 +- js/metalstack/api/v2/token_pb.ts | 2 +- js/metalstack/api/v2/user_pb.js | 2 +- js/metalstack/api/v2/user_pb.ts | 2 +- js/metalstack/api/v2/version_pb.js | 2 +- js/metalstack/api/v2/version_pb.ts | 2 +- js/metalstack/api/v2/vpn_pb.js | 2 +- js/metalstack/api/v2/vpn_pb.ts | 2 +- js/metalstack/infra/v2/bmc_pb.js | 2 +- js/metalstack/infra/v2/bmc_pb.ts | 2 +- js/metalstack/infra/v2/boot_pb.js | 2 +- js/metalstack/infra/v2/boot_pb.ts | 2 +- js/metalstack/infra/v2/component_pb.js | 2 +- js/metalstack/infra/v2/component_pb.ts | 2 +- js/metalstack/infra/v2/event_pb.js | 2 +- js/metalstack/infra/v2/event_pb.ts | 2 +- js/metalstack/infra/v2/switch_pb.js | 2 +- js/metalstack/infra/v2/switch_pb.ts | 2 +- proto/buf.gen.yaml | 6 +++--- proto/buf.lock | 4 ++-- python/buf/validate/validate_pb2.py | 4 ++-- python/metalstack/admin/v2/audit_pb2.py | 4 ++-- python/metalstack/admin/v2/component_pb2.py | 4 ++-- python/metalstack/admin/v2/filesystem_pb2.py | 4 ++-- python/metalstack/admin/v2/image_pb2.py | 4 ++-- python/metalstack/admin/v2/ip_pb2.py | 4 ++-- python/metalstack/admin/v2/machine_pb2.py | 4 ++-- python/metalstack/admin/v2/network_pb2.py | 4 ++-- python/metalstack/admin/v2/partition_pb2.py | 4 ++-- python/metalstack/admin/v2/project_pb2.py | 4 ++-- .../admin/v2/size_imageconstraint_pb2.py | 4 ++-- python/metalstack/admin/v2/size_pb2.py | 4 ++-- .../admin/v2/size_reservation_pb2.py | 4 ++-- python/metalstack/admin/v2/switch_pb2.py | 4 ++-- python/metalstack/admin/v2/task_pb2.py | 4 ++-- python/metalstack/admin/v2/tenant_pb2.py | 4 ++-- python/metalstack/admin/v2/token_pb2.py | 4 ++-- python/metalstack/admin/v2/vpn_pb2.py | 4 ++-- python/metalstack/api/v2/audit_pb2.py | 4 ++-- python/metalstack/api/v2/common_pb2.py | 4 ++-- python/metalstack/api/v2/component_pb2.py | 4 ++-- python/metalstack/api/v2/filesystem_pb2.py | 4 ++-- python/metalstack/api/v2/health_pb2.py | 4 ++-- python/metalstack/api/v2/image_pb2.py | 4 ++-- python/metalstack/api/v2/ip_pb2.py | 4 ++-- python/metalstack/api/v2/machine_pb2.py | 4 ++-- python/metalstack/api/v2/method_pb2.py | 4 ++-- python/metalstack/api/v2/network_pb2.py | 4 ++-- python/metalstack/api/v2/partition_pb2.py | 4 ++-- .../metalstack/api/v2/predefined_rules_pb2.py | 4 ++-- python/metalstack/api/v2/project_pb2.py | 4 ++-- .../api/v2/size_imageconstraint_pb2.py | 4 ++-- python/metalstack/api/v2/size_pb2.py | 4 ++-- .../metalstack/api/v2/size_reservation_pb2.py | 4 ++-- python/metalstack/api/v2/switch_pb2.py | 4 ++-- python/metalstack/api/v2/tenant_pb2.py | 4 ++-- python/metalstack/api/v2/token_pb2.py | 4 ++-- python/metalstack/api/v2/user_pb2.py | 4 ++-- python/metalstack/api/v2/version_pb2.py | 4 ++-- python/metalstack/api/v2/vpn_pb2.py | 4 ++-- python/metalstack/infra/v2/bmc_pb2.py | 4 ++-- python/metalstack/infra/v2/boot_pb2.py | 4 ++-- python/metalstack/infra/v2/component_pb2.py | 4 ++-- python/metalstack/infra/v2/event_pb2.py | 4 ++-- python/metalstack/infra/v2/switch_pb2.py | 4 ++-- 139 files changed, 213 insertions(+), 213 deletions(-) diff --git a/go.mod b/go.mod index 898d8aef..27a5ad28 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/metal-stack/api -go 1.26.0 +go 1.27 require ( buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.1 - buf.build/go/protovalidate v1.3.0 + buf.build/go/protovalidate v1.4.0 connectrpc.com/connect v1.20.0 github.com/bufbuild/protocompile v0.14.1 github.com/go-task/slim-sprig/v3 v3.0.0 @@ -18,15 +18,15 @@ require ( ) require ( + cel.dev/cel-go v0.32.0 // indirect cel.dev/expr v0.25.3 // indirect github.com/antlr4-go/antlr/v4 v4.13.1 // indirect - github.com/google/cel-go v0.31.0 // indirect - github.com/klauspost/compress v1.19.2 // indirect + github.com/klauspost/compress v1.20.0 // indirect github.com/minio/minlz v1.2.0 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect golang.org/x/exp v0.0.0-20260824195058-e88cd73687aa // indirect golang.org/x/sys v0.47.0 // indirect golang.org/x/text v0.41.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a // indirect ) diff --git a/go.sum b/go.sum index 4f0937c3..18a8f414 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,9 @@ buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.1 h1:Slv0uGxx219srASyiaI5C9cDlyG8kNDcXpTSYcuAeE4= buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.1/go.mod h1:TCt1lluMFnctISJXvkIQ4x3ABrPuUKCWKyjKdkJNBpw= -buf.build/go/protovalidate v1.3.0 h1:8ITcnZGkAHx6TyhZvro+iET/AyqU8gEWQJK2WsT62ms= -buf.build/go/protovalidate v1.3.0/go.mod h1:82s5g+rFRj1CZPiLv6OTA31jBu2fpq7mLXHwa9mZfEs= +buf.build/go/protovalidate v1.4.0 h1:UjLrYbt5VX7+TMOs2+pG5FhZhIG1mSfK4EIopbb4LcM= +buf.build/go/protovalidate v1.4.0/go.mod h1:8vJfzNT6NIG2qm3uFsJDXMlRmG+bQJzbcIn1Aa0vPGs= +cel.dev/cel-go v0.32.0 h1:irvpFKr5EuGPyxeME03ERh0rii1TX+BDAnB9eL3IvNk= +cel.dev/cel-go v0.32.0/go.mod h1:DnVip7tpJSsgZymwfT+m1tnEVy3ivAjSMXPx12YrMkU= cel.dev/expr v0.25.3 h1:A2jO8jwOugrrovveCWfj0KEZOfqiLgAcwjpHPhzIGw0= cel.dev/expr v0.25.3/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= connectrpc.com/connect v1.20.0 h1:6TNDAB+WeNd2uolWNlYczB5E0KNNaVMNUEx8JEUsPmQ= @@ -18,14 +20,12 @@ github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63Y github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/cel-go v0.31.0 h1:H0bhpFTqOvmHrBGrWKp7ZlhBm5Hh8PYUEXnwxT1LL7A= -github.com/google/cel-go v0.31.0/go.mod h1:X0bD6iVNR8pkROSOoHVdgTkzmRcosof7WQqCD6wcMc8= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/klauspost/compress v1.19.2 h1:hMRETovs/pu/dVWN7zIT1PGG8t509MwT6bO7XSi26R8= -github.com/klauspost/compress v1.19.2/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= +github.com/klauspost/compress v1.20.0 h1:a3C1ke2ohxFymNlb2HWAHjDeKCI90scRskErZkR0ezA= +github.com/klauspost/compress v1.20.0/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI= github.com/klauspost/connect-compress/v2 v2.1.1 h1:ycZNp4rWOZBodVE2Ls5AzK4aHkyK+GteEfzRZgKNs+c= github.com/klauspost/connect-compress/v2 v2.1.1/go.mod h1:9oilsPHJMzGKkjafSBk9J7iVo4mO+dw0G0KSdVpnlVE= github.com/minio/minlz v1.2.0 h1:6IOBuiHg04QxvbFfgFLT/9sMaO/UhL7S+ApW1mK8q5A= @@ -44,10 +44,10 @@ golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= -google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5 h1:izFU9hz7aeLI/Mi1J0991ae+xcwRLr7hTqWnB/9aIIU= -google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5/go.mod h1:3LhxRw4YYkf+ylAfgaY9JlVLFKhokkCV8duhLLe7+t0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 h1:1VUiZAXyC+zmiFYi+WLtBzr68Cj8wOofHjjrA/kkizc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA= +google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a h1:i3TAXhpKc7TUP1VAPiBBrv45kamjoizCC3rOC0cAbOs= +google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:CvYJHpbzPlT0fb/PsgtAamdwru/GVxUsomFdXTpOTI8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a h1:3Dnd1cDaZlB68lziofO+bJXpjOy8UfRv8Unt+yH8tQ4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA= google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU= google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= diff --git a/js/buf/validate/validate_pb.d.ts b/js/buf/validate/validate_pb.d.ts index 8b4d2efb..910c2fde 100644 --- a/js/buf/validate/validate_pb.d.ts +++ b/js/buf/validate/validate_pb.d.ts @@ -9,7 +9,7 @@ export declare const file_buf_validate_validate: GenFile; * `Rule` represents a validation rule written in the Common Expression * Language (CEL) syntax. Each Rule includes a unique identifier, an * optional error message, and the CEL expression to evaluate. For more - * information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * information, [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message Foo { @@ -71,7 +71,7 @@ export type MessageRules = Message<"buf.validate.MessageRules"> & { * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will * be same as the `expression`. * - * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * For more information, [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message MyMessage { @@ -89,7 +89,7 @@ export type MessageRules = Message<"buf.validate.MessageRules"> & { /** * `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message. * These rules are written in Common Expression Language (CEL) syntax. For more information, - * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * * ```proto @@ -225,7 +225,7 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & { * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will * be same as the `expression`. * - * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * For more information, [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message MyMessage { @@ -240,7 +240,7 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & { /** * `cel` is a repeated field used to represent a textual expression * in the Common Expression Language (CEL) syntax. For more information, - * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message MyMessage { @@ -495,7 +495,7 @@ export type PredefinedRules = Message<"buf.validate.PredefinedRules"> & { /** * `cel` is a repeated field used to represent a textual expression * in the Common Expression Language (CEL) syntax. For more information, - * [see our documentation](https://buf.build/docs/protovalidate/schemas/predefined-rules/). + * [see our documentation](https://protovalidate.com/schemas/predefined-rules/). * * ```proto * message MyMessage { diff --git a/js/buf/validate/validate_pb.ts b/js/buf/validate/validate_pb.ts index 641c80e6..fa726a2f 100644 --- a/js/buf/validate/validate_pb.ts +++ b/js/buf/validate/validate_pb.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file buf/validate/validate.proto (package buf.validate, syntax proto2) /* eslint-disable */ @@ -42,7 +42,7 @@ // [Go](https://github.com/bufbuild/protovalidate-go), // [JavaScript/TypeScript](https://github.com/bufbuild/protovalidate-es), // [Java](https://github.com/bufbuild/protovalidate-java), -// [Python](https://github.com/bufbuild/protovalidate-python), +// [Python](https://github.com/bufbuild/protovalidate-py), // or [C++](https://github.com/bufbuild/protovalidate-cc). import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; @@ -61,7 +61,7 @@ export const file_buf_validate_validate: GenFile = /*@__PURE__*/ * `Rule` represents a validation rule written in the Common Expression * Language (CEL) syntax. Each Rule includes a unique identifier, an * optional error message, and the CEL expression to evaluate. For more - * information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * information, [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message Foo { @@ -128,7 +128,7 @@ export type MessageRules = Message<"buf.validate.MessageRules"> & { * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will * be same as the `expression`. * - * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * For more information, [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message MyMessage { @@ -147,7 +147,7 @@ export type MessageRules = Message<"buf.validate.MessageRules"> & { /** * `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message. * These rules are written in Common Expression Language (CEL) syntax. For more information, - * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * * ```proto @@ -294,7 +294,7 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & { * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will * be same as the `expression`. * - * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * For more information, [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message MyMessage { @@ -310,7 +310,7 @@ export type FieldRules = Message<"buf.validate.FieldRules"> & { /** * `cel` is a repeated field used to represent a textual expression * in the Common Expression Language (CEL) syntax. For more information, - * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + * [see our documentation](https://protovalidate.com/schemas/custom-rules/). * * ```proto * message MyMessage { @@ -568,7 +568,7 @@ export type PredefinedRules = Message<"buf.validate.PredefinedRules"> & { /** * `cel` is a repeated field used to represent a textual expression * in the Common Expression Language (CEL) syntax. For more information, - * [see our documentation](https://buf.build/docs/protovalidate/schemas/predefined-rules/). + * [see our documentation](https://protovalidate.com/schemas/predefined-rules/). * * ```proto * message MyMessage { diff --git a/js/metalstack/admin/v2/audit_pb.js b/js/metalstack/admin/v2/audit_pb.js index 03de8736..c9e91546 100644 --- a/js/metalstack/admin/v2/audit_pb.js +++ b/js/metalstack/admin/v2/audit_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/audit.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/audit_pb.ts b/js/metalstack/admin/v2/audit_pb.ts index 626feff0..1f042517 100644 --- a/js/metalstack/admin/v2/audit_pb.ts +++ b/js/metalstack/admin/v2/audit_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/audit.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/component_pb.js b/js/metalstack/admin/v2/component_pb.js index 432d58d0..0464335e 100644 --- a/js/metalstack/admin/v2/component_pb.js +++ b/js/metalstack/admin/v2/component_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/component.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/component_pb.ts b/js/metalstack/admin/v2/component_pb.ts index 8dc35dd7..c40c982b 100644 --- a/js/metalstack/admin/v2/component_pb.ts +++ b/js/metalstack/admin/v2/component_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/component.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/filesystem_pb.js b/js/metalstack/admin/v2/filesystem_pb.js index 0fac9c3c..5a287c85 100644 --- a/js/metalstack/admin/v2/filesystem_pb.js +++ b/js/metalstack/admin/v2/filesystem_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/filesystem.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/filesystem_pb.ts b/js/metalstack/admin/v2/filesystem_pb.ts index caef7736..2b63c9f9 100644 --- a/js/metalstack/admin/v2/filesystem_pb.ts +++ b/js/metalstack/admin/v2/filesystem_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/filesystem.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/image_pb.js b/js/metalstack/admin/v2/image_pb.js index cfaa178f..d93843ba 100644 --- a/js/metalstack/admin/v2/image_pb.js +++ b/js/metalstack/admin/v2/image_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/image.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/image_pb.ts b/js/metalstack/admin/v2/image_pb.ts index 7639865c..16813c73 100644 --- a/js/metalstack/admin/v2/image_pb.ts +++ b/js/metalstack/admin/v2/image_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/image.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/ip_pb.js b/js/metalstack/admin/v2/ip_pb.js index 7d09ffc1..918b1be3 100644 --- a/js/metalstack/admin/v2/ip_pb.js +++ b/js/metalstack/admin/v2/ip_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/ip.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/ip_pb.ts b/js/metalstack/admin/v2/ip_pb.ts index 0ac709fa..8feb0286 100644 --- a/js/metalstack/admin/v2/ip_pb.ts +++ b/js/metalstack/admin/v2/ip_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/ip.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/machine_pb.js b/js/metalstack/admin/v2/machine_pb.js index cf8c0539..da4dc168 100644 --- a/js/metalstack/admin/v2/machine_pb.js +++ b/js/metalstack/admin/v2/machine_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/machine.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/machine_pb.ts b/js/metalstack/admin/v2/machine_pb.ts index 557bac81..47271fc4 100644 --- a/js/metalstack/admin/v2/machine_pb.ts +++ b/js/metalstack/admin/v2/machine_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/machine.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/network_pb.js b/js/metalstack/admin/v2/network_pb.js index c2d64f4a..c23310bd 100644 --- a/js/metalstack/admin/v2/network_pb.js +++ b/js/metalstack/admin/v2/network_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/network.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/network_pb.ts b/js/metalstack/admin/v2/network_pb.ts index c0e747e6..53b816ed 100644 --- a/js/metalstack/admin/v2/network_pb.ts +++ b/js/metalstack/admin/v2/network_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/network.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/partition_pb.js b/js/metalstack/admin/v2/partition_pb.js index 8c66094b..7b1347bd 100644 --- a/js/metalstack/admin/v2/partition_pb.js +++ b/js/metalstack/admin/v2/partition_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/partition.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/partition_pb.ts b/js/metalstack/admin/v2/partition_pb.ts index c8c0317c..f796f935 100644 --- a/js/metalstack/admin/v2/partition_pb.ts +++ b/js/metalstack/admin/v2/partition_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/partition.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/project_pb.js b/js/metalstack/admin/v2/project_pb.js index 06c77820..93d57d0b 100644 --- a/js/metalstack/admin/v2/project_pb.js +++ b/js/metalstack/admin/v2/project_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/project.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/project_pb.ts b/js/metalstack/admin/v2/project_pb.ts index 74ba6af0..591b3a13 100644 --- a/js/metalstack/admin/v2/project_pb.ts +++ b/js/metalstack/admin/v2/project_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/project.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/size_imageconstraint_pb.js b/js/metalstack/admin/v2/size_imageconstraint_pb.js index e19ed395..c5000adf 100644 --- a/js/metalstack/admin/v2/size_imageconstraint_pb.js +++ b/js/metalstack/admin/v2/size_imageconstraint_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/size_imageconstraint.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/size_imageconstraint_pb.ts b/js/metalstack/admin/v2/size_imageconstraint_pb.ts index 7aca6411..0923e381 100644 --- a/js/metalstack/admin/v2/size_imageconstraint_pb.ts +++ b/js/metalstack/admin/v2/size_imageconstraint_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/size_imageconstraint.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/size_pb.js b/js/metalstack/admin/v2/size_pb.js index ef58043d..bc4a5270 100644 --- a/js/metalstack/admin/v2/size_pb.js +++ b/js/metalstack/admin/v2/size_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/size.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/size_pb.ts b/js/metalstack/admin/v2/size_pb.ts index c8d9c68a..aecbc126 100644 --- a/js/metalstack/admin/v2/size_pb.ts +++ b/js/metalstack/admin/v2/size_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/size.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/size_reservation_pb.js b/js/metalstack/admin/v2/size_reservation_pb.js index 348dbfb1..b3b89069 100644 --- a/js/metalstack/admin/v2/size_reservation_pb.js +++ b/js/metalstack/admin/v2/size_reservation_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/size_reservation.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/size_reservation_pb.ts b/js/metalstack/admin/v2/size_reservation_pb.ts index f24e8987..5c8517ba 100644 --- a/js/metalstack/admin/v2/size_reservation_pb.ts +++ b/js/metalstack/admin/v2/size_reservation_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/size_reservation.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/switch_pb.js b/js/metalstack/admin/v2/switch_pb.js index 4634e4f4..142370b6 100644 --- a/js/metalstack/admin/v2/switch_pb.js +++ b/js/metalstack/admin/v2/switch_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/switch.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/switch_pb.ts b/js/metalstack/admin/v2/switch_pb.ts index fe85ffdf..4948faa9 100644 --- a/js/metalstack/admin/v2/switch_pb.ts +++ b/js/metalstack/admin/v2/switch_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/switch.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/task_pb.js b/js/metalstack/admin/v2/task_pb.js index 4569731f..f01e9bc2 100644 --- a/js/metalstack/admin/v2/task_pb.js +++ b/js/metalstack/admin/v2/task_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/task.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/task_pb.ts b/js/metalstack/admin/v2/task_pb.ts index 65ae5753..9a04971b 100644 --- a/js/metalstack/admin/v2/task_pb.ts +++ b/js/metalstack/admin/v2/task_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/task.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/tenant_pb.js b/js/metalstack/admin/v2/tenant_pb.js index 7f7d9f7b..2590df81 100644 --- a/js/metalstack/admin/v2/tenant_pb.js +++ b/js/metalstack/admin/v2/tenant_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/tenant.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/tenant_pb.ts b/js/metalstack/admin/v2/tenant_pb.ts index 2fcb29b0..ce08a058 100644 --- a/js/metalstack/admin/v2/tenant_pb.ts +++ b/js/metalstack/admin/v2/tenant_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/tenant.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/token_pb.js b/js/metalstack/admin/v2/token_pb.js index 1270e31e..076bf756 100644 --- a/js/metalstack/admin/v2/token_pb.js +++ b/js/metalstack/admin/v2/token_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/token.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/token_pb.ts b/js/metalstack/admin/v2/token_pb.ts index 45aca58d..83b21623 100644 --- a/js/metalstack/admin/v2/token_pb.ts +++ b/js/metalstack/admin/v2/token_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/token.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/admin/v2/vpn_pb.js b/js/metalstack/admin/v2/vpn_pb.js index e418a5c7..72c9d9f6 100644 --- a/js/metalstack/admin/v2/vpn_pb.js +++ b/js/metalstack/admin/v2/vpn_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/vpn.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/admin/v2/vpn_pb.ts b/js/metalstack/admin/v2/vpn_pb.ts index 114ff7df..2d62a566 100644 --- a/js/metalstack/admin/v2/vpn_pb.ts +++ b/js/metalstack/admin/v2/vpn_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/admin/v2/vpn.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/audit_pb.js b/js/metalstack/api/v2/audit_pb.js index 9aa955e3..60b36974 100644 --- a/js/metalstack/api/v2/audit_pb.js +++ b/js/metalstack/api/v2/audit_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/audit.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/audit_pb.ts b/js/metalstack/api/v2/audit_pb.ts index 88ff724e..7653c268 100644 --- a/js/metalstack/api/v2/audit_pb.ts +++ b/js/metalstack/api/v2/audit_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/audit.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/common_pb.js b/js/metalstack/api/v2/common_pb.js index 31969083..afcf19ff 100644 --- a/js/metalstack/api/v2/common_pb.js +++ b/js/metalstack/api/v2/common_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/common.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/common_pb.ts b/js/metalstack/api/v2/common_pb.ts index c88dea7b..288a08e8 100644 --- a/js/metalstack/api/v2/common_pb.ts +++ b/js/metalstack/api/v2/common_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/common.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/component_pb.js b/js/metalstack/api/v2/component_pb.js index 28df322a..530412cd 100644 --- a/js/metalstack/api/v2/component_pb.js +++ b/js/metalstack/api/v2/component_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/component.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/component_pb.ts b/js/metalstack/api/v2/component_pb.ts index 59740cd7..bff7ae97 100644 --- a/js/metalstack/api/v2/component_pb.ts +++ b/js/metalstack/api/v2/component_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/component.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/filesystem_pb.js b/js/metalstack/api/v2/filesystem_pb.js index c52cf18e..5b0d72aa 100644 --- a/js/metalstack/api/v2/filesystem_pb.js +++ b/js/metalstack/api/v2/filesystem_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/filesystem.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/filesystem_pb.ts b/js/metalstack/api/v2/filesystem_pb.ts index 55f3d1fd..ee8d5dc0 100644 --- a/js/metalstack/api/v2/filesystem_pb.ts +++ b/js/metalstack/api/v2/filesystem_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/filesystem.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/health_pb.js b/js/metalstack/api/v2/health_pb.js index 489904d5..d16f210c 100644 --- a/js/metalstack/api/v2/health_pb.js +++ b/js/metalstack/api/v2/health_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/health.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/health_pb.ts b/js/metalstack/api/v2/health_pb.ts index 9f0e01f3..8335d90d 100644 --- a/js/metalstack/api/v2/health_pb.ts +++ b/js/metalstack/api/v2/health_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/health.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/image_pb.js b/js/metalstack/api/v2/image_pb.js index 254ce7d9..50e5b332 100644 --- a/js/metalstack/api/v2/image_pb.js +++ b/js/metalstack/api/v2/image_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/image.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/image_pb.ts b/js/metalstack/api/v2/image_pb.ts index f54017c7..cd7b582c 100644 --- a/js/metalstack/api/v2/image_pb.ts +++ b/js/metalstack/api/v2/image_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/image.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/ip_pb.js b/js/metalstack/api/v2/ip_pb.js index aadb1095..6841f190 100644 --- a/js/metalstack/api/v2/ip_pb.js +++ b/js/metalstack/api/v2/ip_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/ip.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/ip_pb.ts b/js/metalstack/api/v2/ip_pb.ts index 7172d8d3..488514c3 100644 --- a/js/metalstack/api/v2/ip_pb.ts +++ b/js/metalstack/api/v2/ip_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/ip.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/machine_pb.js b/js/metalstack/api/v2/machine_pb.js index fb5524c1..b1574288 100644 --- a/js/metalstack/api/v2/machine_pb.js +++ b/js/metalstack/api/v2/machine_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/machine.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/machine_pb.ts b/js/metalstack/api/v2/machine_pb.ts index d423dc9d..381e4756 100644 --- a/js/metalstack/api/v2/machine_pb.ts +++ b/js/metalstack/api/v2/machine_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/machine.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/method_pb.js b/js/metalstack/api/v2/method_pb.js index a404f858..02033d7f 100644 --- a/js/metalstack/api/v2/method_pb.js +++ b/js/metalstack/api/v2/method_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/method.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/method_pb.ts b/js/metalstack/api/v2/method_pb.ts index 5edd69df..95376198 100644 --- a/js/metalstack/api/v2/method_pb.ts +++ b/js/metalstack/api/v2/method_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/method.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/network_pb.js b/js/metalstack/api/v2/network_pb.js index 370cc131..655a4824 100644 --- a/js/metalstack/api/v2/network_pb.js +++ b/js/metalstack/api/v2/network_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/network.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/network_pb.ts b/js/metalstack/api/v2/network_pb.ts index 6cb29371..e7e10ae9 100644 --- a/js/metalstack/api/v2/network_pb.ts +++ b/js/metalstack/api/v2/network_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/network.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/partition_pb.js b/js/metalstack/api/v2/partition_pb.js index 03bf3a8d..d64c3540 100644 --- a/js/metalstack/api/v2/partition_pb.js +++ b/js/metalstack/api/v2/partition_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/partition.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/partition_pb.ts b/js/metalstack/api/v2/partition_pb.ts index 2ccc6730..a4f33fbc 100644 --- a/js/metalstack/api/v2/partition_pb.ts +++ b/js/metalstack/api/v2/partition_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/partition.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/predefined_rules_pb.js b/js/metalstack/api/v2/predefined_rules_pb.js index f61e91f6..af216e0e 100644 --- a/js/metalstack/api/v2/predefined_rules_pb.js +++ b/js/metalstack/api/v2/predefined_rules_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/predefined_rules.proto (package metalstack.api.v2, syntax proto2) /* eslint-disable */ import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/predefined_rules_pb.ts b/js/metalstack/api/v2/predefined_rules_pb.ts index c9fa8549..28aa7599 100644 --- a/js/metalstack/api/v2/predefined_rules_pb.ts +++ b/js/metalstack/api/v2/predefined_rules_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/predefined_rules.proto (package metalstack.api.v2, syntax proto2) /* eslint-disable */ diff --git a/js/metalstack/api/v2/project_pb.js b/js/metalstack/api/v2/project_pb.js index 2f64d9c0..64caf325 100644 --- a/js/metalstack/api/v2/project_pb.js +++ b/js/metalstack/api/v2/project_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/project.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/project_pb.ts b/js/metalstack/api/v2/project_pb.ts index c2f45483..2a5d5daf 100644 --- a/js/metalstack/api/v2/project_pb.ts +++ b/js/metalstack/api/v2/project_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/project.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/size_imageconstraint_pb.js b/js/metalstack/api/v2/size_imageconstraint_pb.js index 5105ac0d..0849e642 100644 --- a/js/metalstack/api/v2/size_imageconstraint_pb.js +++ b/js/metalstack/api/v2/size_imageconstraint_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/size_imageconstraint.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/size_imageconstraint_pb.ts b/js/metalstack/api/v2/size_imageconstraint_pb.ts index d2d41b3f..d447b677 100644 --- a/js/metalstack/api/v2/size_imageconstraint_pb.ts +++ b/js/metalstack/api/v2/size_imageconstraint_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/size_imageconstraint.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/size_pb.js b/js/metalstack/api/v2/size_pb.js index d21c23cf..70eacc39 100644 --- a/js/metalstack/api/v2/size_pb.js +++ b/js/metalstack/api/v2/size_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/size.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/size_pb.ts b/js/metalstack/api/v2/size_pb.ts index 4c166b9d..878f7740 100644 --- a/js/metalstack/api/v2/size_pb.ts +++ b/js/metalstack/api/v2/size_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/size.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/size_reservation_pb.js b/js/metalstack/api/v2/size_reservation_pb.js index 834404e6..abdf88ef 100644 --- a/js/metalstack/api/v2/size_reservation_pb.js +++ b/js/metalstack/api/v2/size_reservation_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/size_reservation.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/size_reservation_pb.ts b/js/metalstack/api/v2/size_reservation_pb.ts index c86c4caa..cd9fa4ec 100644 --- a/js/metalstack/api/v2/size_reservation_pb.ts +++ b/js/metalstack/api/v2/size_reservation_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/size_reservation.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/switch_pb.js b/js/metalstack/api/v2/switch_pb.js index 56db191a..ae76fb8c 100644 --- a/js/metalstack/api/v2/switch_pb.js +++ b/js/metalstack/api/v2/switch_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/switch.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/switch_pb.ts b/js/metalstack/api/v2/switch_pb.ts index 9a1cadf3..e821ad27 100644 --- a/js/metalstack/api/v2/switch_pb.ts +++ b/js/metalstack/api/v2/switch_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/switch.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/tenant_pb.js b/js/metalstack/api/v2/tenant_pb.js index 55e969ad..9eb270b6 100644 --- a/js/metalstack/api/v2/tenant_pb.js +++ b/js/metalstack/api/v2/tenant_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/tenant.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/tenant_pb.ts b/js/metalstack/api/v2/tenant_pb.ts index dfdaa8af..e327cdbc 100644 --- a/js/metalstack/api/v2/tenant_pb.ts +++ b/js/metalstack/api/v2/tenant_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/tenant.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/token_pb.js b/js/metalstack/api/v2/token_pb.js index bb380d4a..582a0bc9 100644 --- a/js/metalstack/api/v2/token_pb.js +++ b/js/metalstack/api/v2/token_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/token.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/token_pb.ts b/js/metalstack/api/v2/token_pb.ts index f921fae5..3ac5d0f7 100644 --- a/js/metalstack/api/v2/token_pb.ts +++ b/js/metalstack/api/v2/token_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/token.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/user_pb.js b/js/metalstack/api/v2/user_pb.js index 43fdb6ba..1d2dcca1 100644 --- a/js/metalstack/api/v2/user_pb.js +++ b/js/metalstack/api/v2/user_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/user.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/user_pb.ts b/js/metalstack/api/v2/user_pb.ts index 3f79cdd6..8a6f058f 100644 --- a/js/metalstack/api/v2/user_pb.ts +++ b/js/metalstack/api/v2/user_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/user.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/version_pb.js b/js/metalstack/api/v2/version_pb.js index c9b8f231..f47345fd 100644 --- a/js/metalstack/api/v2/version_pb.js +++ b/js/metalstack/api/v2/version_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/version.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/version_pb.ts b/js/metalstack/api/v2/version_pb.ts index ec83a702..90cbda37 100644 --- a/js/metalstack/api/v2/version_pb.ts +++ b/js/metalstack/api/v2/version_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/version.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/api/v2/vpn_pb.js b/js/metalstack/api/v2/vpn_pb.js index 53effe5b..7842b8fa 100644 --- a/js/metalstack/api/v2/vpn_pb.js +++ b/js/metalstack/api/v2/vpn_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/vpn.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/api/v2/vpn_pb.ts b/js/metalstack/api/v2/vpn_pb.ts index a56cc427..82f6d091 100644 --- a/js/metalstack/api/v2/vpn_pb.ts +++ b/js/metalstack/api/v2/vpn_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/api/v2/vpn.proto (package metalstack.api.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/infra/v2/bmc_pb.js b/js/metalstack/infra/v2/bmc_pb.js index e72a8872..15bf449b 100644 --- a/js/metalstack/infra/v2/bmc_pb.js +++ b/js/metalstack/infra/v2/bmc_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/bmc.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/infra/v2/bmc_pb.ts b/js/metalstack/infra/v2/bmc_pb.ts index 06a66061..9c482918 100644 --- a/js/metalstack/infra/v2/bmc_pb.ts +++ b/js/metalstack/infra/v2/bmc_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/bmc.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/infra/v2/boot_pb.js b/js/metalstack/infra/v2/boot_pb.js index 7a31932b..d9827645 100644 --- a/js/metalstack/infra/v2/boot_pb.js +++ b/js/metalstack/infra/v2/boot_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/boot.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/infra/v2/boot_pb.ts b/js/metalstack/infra/v2/boot_pb.ts index 4506e262..08b1c60e 100644 --- a/js/metalstack/infra/v2/boot_pb.ts +++ b/js/metalstack/infra/v2/boot_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/boot.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/infra/v2/component_pb.js b/js/metalstack/infra/v2/component_pb.js index c83040c8..ec844cbd 100644 --- a/js/metalstack/infra/v2/component_pb.js +++ b/js/metalstack/infra/v2/component_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/component.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/infra/v2/component_pb.ts b/js/metalstack/infra/v2/component_pb.ts index 884cf2e5..b39e214b 100644 --- a/js/metalstack/infra/v2/component_pb.ts +++ b/js/metalstack/infra/v2/component_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/component.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/infra/v2/event_pb.js b/js/metalstack/infra/v2/event_pb.js index 1774543f..dceebc5f 100644 --- a/js/metalstack/infra/v2/event_pb.js +++ b/js/metalstack/infra/v2/event_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/event.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/infra/v2/event_pb.ts b/js/metalstack/infra/v2/event_pb.ts index 366d112e..ce12e45f 100644 --- a/js/metalstack/infra/v2/event_pb.ts +++ b/js/metalstack/infra/v2/event_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/event.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ diff --git a/js/metalstack/infra/v2/switch_pb.js b/js/metalstack/infra/v2/switch_pb.js index 593954ab..582c3eff 100644 --- a/js/metalstack/infra/v2/switch_pb.js +++ b/js/metalstack/infra/v2/switch_pb.js @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/switch.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; diff --git a/js/metalstack/infra/v2/switch_pb.ts b/js/metalstack/infra/v2/switch_pb.ts index 5c8b824e..5f325834 100644 --- a/js/metalstack/infra/v2/switch_pb.ts +++ b/js/metalstack/infra/v2/switch_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v2.14.0 with parameter "target=ts" +// @generated by protoc-gen-es v2.14.1 with parameter "target=ts" // @generated from file metalstack/infra/v2/switch.proto (package metalstack.infra.v2, syntax proto3) /* eslint-disable */ diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml index 31431956..30502aa3 100644 --- a/proto/buf.gen.yaml +++ b/proto/buf.gen.yaml @@ -20,15 +20,15 @@ plugins: out: ../go opt: paths=source_relative,simple # python - - remote: buf.build/protocolbuffers/python:v36.0 + - remote: buf.build/protocolbuffers/python:v36.1 out: ../python include_imports: True - - remote: buf.build/protocolbuffers/pyi:v36.0 + - remote: buf.build/protocolbuffers/pyi:v36.1 out: ../python - remote: buf.build/connectrpc/python:v0.10.1 out: ../python # js - - remote: buf.build/bufbuild/es:v2.14.0 + - remote: buf.build/bufbuild/es:v2.14.1 include_imports: true out: ../js opt: target=ts diff --git a/proto/buf.lock b/proto/buf.lock index 7b474667..eca92dc8 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -2,5 +2,5 @@ version: v2 deps: - name: buf.build/bufbuild/protovalidate - commit: 435963d1631043e694e56e6bcc3c79c3 - digest: b5:f4ea07ad2dd94bd7243562f9908b9fb104feef8076040c89d9f7c1dedc074de4d4ce2b997686ef4400f3eccb765a7cfc20ed4acdd70b9a3699351245c61dba97 + commit: 511051f7f4374c3ca873b53ae68a9288 + digest: b5:a4a2d4d808a25984cced60769c822c5d496ef0b740f56ac0c9e6b97aaa25b86a9332a00ffd74e0cd202be29e91bd3edfb0bf2ba4dacfe48ff2d8217f9986e3c8 diff --git a/python/buf/validate/validate_pb2.py b/python/buf/validate/validate_pb2.py index 5a262b36..f4353e37 100644 --- a/python/buf/validate/validate_pb2.py +++ b/python/buf/validate/validate_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/validate.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'buf/validate/validate.proto' ) diff --git a/python/metalstack/admin/v2/audit_pb2.py b/python/metalstack/admin/v2/audit_pb2.py index 76f979cd..91c1f0e1 100644 --- a/python/metalstack/admin/v2/audit_pb2.py +++ b/python/metalstack/admin/v2/audit_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/audit.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/audit.proto' ) diff --git a/python/metalstack/admin/v2/component_pb2.py b/python/metalstack/admin/v2/component_pb2.py index dc782b00..7bb9f75e 100644 --- a/python/metalstack/admin/v2/component_pb2.py +++ b/python/metalstack/admin/v2/component_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/component.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/component.proto' ) diff --git a/python/metalstack/admin/v2/filesystem_pb2.py b/python/metalstack/admin/v2/filesystem_pb2.py index dde90598..27e78b50 100644 --- a/python/metalstack/admin/v2/filesystem_pb2.py +++ b/python/metalstack/admin/v2/filesystem_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/filesystem.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/filesystem.proto' ) diff --git a/python/metalstack/admin/v2/image_pb2.py b/python/metalstack/admin/v2/image_pb2.py index 040b3206..31efebe4 100644 --- a/python/metalstack/admin/v2/image_pb2.py +++ b/python/metalstack/admin/v2/image_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/image.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/image.proto' ) diff --git a/python/metalstack/admin/v2/ip_pb2.py b/python/metalstack/admin/v2/ip_pb2.py index b4c52b44..ed890348 100644 --- a/python/metalstack/admin/v2/ip_pb2.py +++ b/python/metalstack/admin/v2/ip_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/ip.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/ip.proto' ) diff --git a/python/metalstack/admin/v2/machine_pb2.py b/python/metalstack/admin/v2/machine_pb2.py index 8f5a5483..a7b651a2 100644 --- a/python/metalstack/admin/v2/machine_pb2.py +++ b/python/metalstack/admin/v2/machine_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/machine.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/machine.proto' ) diff --git a/python/metalstack/admin/v2/network_pb2.py b/python/metalstack/admin/v2/network_pb2.py index b3dcfa1a..26ce531d 100644 --- a/python/metalstack/admin/v2/network_pb2.py +++ b/python/metalstack/admin/v2/network_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/network.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/network.proto' ) diff --git a/python/metalstack/admin/v2/partition_pb2.py b/python/metalstack/admin/v2/partition_pb2.py index 833f8b46..5c54e097 100644 --- a/python/metalstack/admin/v2/partition_pb2.py +++ b/python/metalstack/admin/v2/partition_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/partition.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/partition.proto' ) diff --git a/python/metalstack/admin/v2/project_pb2.py b/python/metalstack/admin/v2/project_pb2.py index 725fe454..5fcc5c18 100644 --- a/python/metalstack/admin/v2/project_pb2.py +++ b/python/metalstack/admin/v2/project_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/project.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/project.proto' ) diff --git a/python/metalstack/admin/v2/size_imageconstraint_pb2.py b/python/metalstack/admin/v2/size_imageconstraint_pb2.py index ec60ba03..bc39a68d 100644 --- a/python/metalstack/admin/v2/size_imageconstraint_pb2.py +++ b/python/metalstack/admin/v2/size_imageconstraint_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/size_imageconstraint.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/size_imageconstraint.proto' ) diff --git a/python/metalstack/admin/v2/size_pb2.py b/python/metalstack/admin/v2/size_pb2.py index 9901cd21..39417f8b 100644 --- a/python/metalstack/admin/v2/size_pb2.py +++ b/python/metalstack/admin/v2/size_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/size.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/size.proto' ) diff --git a/python/metalstack/admin/v2/size_reservation_pb2.py b/python/metalstack/admin/v2/size_reservation_pb2.py index fa543f7d..f92a266a 100644 --- a/python/metalstack/admin/v2/size_reservation_pb2.py +++ b/python/metalstack/admin/v2/size_reservation_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/size_reservation.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/size_reservation.proto' ) diff --git a/python/metalstack/admin/v2/switch_pb2.py b/python/metalstack/admin/v2/switch_pb2.py index f5da3f80..36f51994 100644 --- a/python/metalstack/admin/v2/switch_pb2.py +++ b/python/metalstack/admin/v2/switch_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/switch.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/switch.proto' ) diff --git a/python/metalstack/admin/v2/task_pb2.py b/python/metalstack/admin/v2/task_pb2.py index b578b7da..3cc67593 100644 --- a/python/metalstack/admin/v2/task_pb2.py +++ b/python/metalstack/admin/v2/task_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/task.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/task.proto' ) diff --git a/python/metalstack/admin/v2/tenant_pb2.py b/python/metalstack/admin/v2/tenant_pb2.py index 15abe4d9..16d5a779 100644 --- a/python/metalstack/admin/v2/tenant_pb2.py +++ b/python/metalstack/admin/v2/tenant_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/tenant.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/tenant.proto' ) diff --git a/python/metalstack/admin/v2/token_pb2.py b/python/metalstack/admin/v2/token_pb2.py index 126ab5a4..ae369e4e 100644 --- a/python/metalstack/admin/v2/token_pb2.py +++ b/python/metalstack/admin/v2/token_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/token.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/token.proto' ) diff --git a/python/metalstack/admin/v2/vpn_pb2.py b/python/metalstack/admin/v2/vpn_pb2.py index 683ea17b..1e318cfd 100644 --- a/python/metalstack/admin/v2/vpn_pb2.py +++ b/python/metalstack/admin/v2/vpn_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/admin/v2/vpn.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/admin/v2/vpn.proto' ) diff --git a/python/metalstack/api/v2/audit_pb2.py b/python/metalstack/api/v2/audit_pb2.py index 9da80591..8839f825 100644 --- a/python/metalstack/api/v2/audit_pb2.py +++ b/python/metalstack/api/v2/audit_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/audit.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/audit.proto' ) diff --git a/python/metalstack/api/v2/common_pb2.py b/python/metalstack/api/v2/common_pb2.py index b93c25b8..d8f09a99 100644 --- a/python/metalstack/api/v2/common_pb2.py +++ b/python/metalstack/api/v2/common_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/common.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/common.proto' ) diff --git a/python/metalstack/api/v2/component_pb2.py b/python/metalstack/api/v2/component_pb2.py index cf9a7170..5da00c0a 100644 --- a/python/metalstack/api/v2/component_pb2.py +++ b/python/metalstack/api/v2/component_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/component.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/component.proto' ) diff --git a/python/metalstack/api/v2/filesystem_pb2.py b/python/metalstack/api/v2/filesystem_pb2.py index a88b8250..c1841fc4 100644 --- a/python/metalstack/api/v2/filesystem_pb2.py +++ b/python/metalstack/api/v2/filesystem_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/filesystem.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/filesystem.proto' ) diff --git a/python/metalstack/api/v2/health_pb2.py b/python/metalstack/api/v2/health_pb2.py index dfa2b805..3d5bb501 100644 --- a/python/metalstack/api/v2/health_pb2.py +++ b/python/metalstack/api/v2/health_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/health.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/health.proto' ) diff --git a/python/metalstack/api/v2/image_pb2.py b/python/metalstack/api/v2/image_pb2.py index 2ab98c8c..8296d4a9 100644 --- a/python/metalstack/api/v2/image_pb2.py +++ b/python/metalstack/api/v2/image_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/image.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/image.proto' ) diff --git a/python/metalstack/api/v2/ip_pb2.py b/python/metalstack/api/v2/ip_pb2.py index 40373862..5083261c 100644 --- a/python/metalstack/api/v2/ip_pb2.py +++ b/python/metalstack/api/v2/ip_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/ip.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/ip.proto' ) diff --git a/python/metalstack/api/v2/machine_pb2.py b/python/metalstack/api/v2/machine_pb2.py index 3c0f8483..348c9ef7 100644 --- a/python/metalstack/api/v2/machine_pb2.py +++ b/python/metalstack/api/v2/machine_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/machine.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/machine.proto' ) diff --git a/python/metalstack/api/v2/method_pb2.py b/python/metalstack/api/v2/method_pb2.py index 80863f4b..bc4b5ca1 100644 --- a/python/metalstack/api/v2/method_pb2.py +++ b/python/metalstack/api/v2/method_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/method.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/method.proto' ) diff --git a/python/metalstack/api/v2/network_pb2.py b/python/metalstack/api/v2/network_pb2.py index c601e049..598ae26e 100644 --- a/python/metalstack/api/v2/network_pb2.py +++ b/python/metalstack/api/v2/network_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/network.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/network.proto' ) diff --git a/python/metalstack/api/v2/partition_pb2.py b/python/metalstack/api/v2/partition_pb2.py index dfb50c84..609b8db8 100644 --- a/python/metalstack/api/v2/partition_pb2.py +++ b/python/metalstack/api/v2/partition_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/partition.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/partition.proto' ) diff --git a/python/metalstack/api/v2/predefined_rules_pb2.py b/python/metalstack/api/v2/predefined_rules_pb2.py index d345b572..45ea6c91 100644 --- a/python/metalstack/api/v2/predefined_rules_pb2.py +++ b/python/metalstack/api/v2/predefined_rules_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/predefined_rules.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/predefined_rules.proto' ) diff --git a/python/metalstack/api/v2/project_pb2.py b/python/metalstack/api/v2/project_pb2.py index 28e3adcb..618b4ecb 100644 --- a/python/metalstack/api/v2/project_pb2.py +++ b/python/metalstack/api/v2/project_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/project.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/project.proto' ) diff --git a/python/metalstack/api/v2/size_imageconstraint_pb2.py b/python/metalstack/api/v2/size_imageconstraint_pb2.py index ddc45e62..2353fb55 100644 --- a/python/metalstack/api/v2/size_imageconstraint_pb2.py +++ b/python/metalstack/api/v2/size_imageconstraint_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/size_imageconstraint.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/size_imageconstraint.proto' ) diff --git a/python/metalstack/api/v2/size_pb2.py b/python/metalstack/api/v2/size_pb2.py index 92da1790..c805b76f 100644 --- a/python/metalstack/api/v2/size_pb2.py +++ b/python/metalstack/api/v2/size_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/size.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/size.proto' ) diff --git a/python/metalstack/api/v2/size_reservation_pb2.py b/python/metalstack/api/v2/size_reservation_pb2.py index 2c22d4c5..6059da65 100644 --- a/python/metalstack/api/v2/size_reservation_pb2.py +++ b/python/metalstack/api/v2/size_reservation_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/size_reservation.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/size_reservation.proto' ) diff --git a/python/metalstack/api/v2/switch_pb2.py b/python/metalstack/api/v2/switch_pb2.py index 01f7e882..d690c3e8 100644 --- a/python/metalstack/api/v2/switch_pb2.py +++ b/python/metalstack/api/v2/switch_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/switch.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/switch.proto' ) diff --git a/python/metalstack/api/v2/tenant_pb2.py b/python/metalstack/api/v2/tenant_pb2.py index a02f29cb..abe73ae6 100644 --- a/python/metalstack/api/v2/tenant_pb2.py +++ b/python/metalstack/api/v2/tenant_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/tenant.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/tenant.proto' ) diff --git a/python/metalstack/api/v2/token_pb2.py b/python/metalstack/api/v2/token_pb2.py index a4ef4d66..4d709a87 100644 --- a/python/metalstack/api/v2/token_pb2.py +++ b/python/metalstack/api/v2/token_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/token.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/token.proto' ) diff --git a/python/metalstack/api/v2/user_pb2.py b/python/metalstack/api/v2/user_pb2.py index 3ea1f144..d9556014 100644 --- a/python/metalstack/api/v2/user_pb2.py +++ b/python/metalstack/api/v2/user_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/user.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/user.proto' ) diff --git a/python/metalstack/api/v2/version_pb2.py b/python/metalstack/api/v2/version_pb2.py index c8d1f9e7..2cf1e30b 100644 --- a/python/metalstack/api/v2/version_pb2.py +++ b/python/metalstack/api/v2/version_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/version.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/version.proto' ) diff --git a/python/metalstack/api/v2/vpn_pb2.py b/python/metalstack/api/v2/vpn_pb2.py index 5b861541..70575874 100644 --- a/python/metalstack/api/v2/vpn_pb2.py +++ b/python/metalstack/api/v2/vpn_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/api/v2/vpn.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/api/v2/vpn.proto' ) diff --git a/python/metalstack/infra/v2/bmc_pb2.py b/python/metalstack/infra/v2/bmc_pb2.py index 5a98293f..54126fda 100644 --- a/python/metalstack/infra/v2/bmc_pb2.py +++ b/python/metalstack/infra/v2/bmc_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/infra/v2/bmc.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/infra/v2/bmc.proto' ) diff --git a/python/metalstack/infra/v2/boot_pb2.py b/python/metalstack/infra/v2/boot_pb2.py index 3298a250..0b03a88e 100644 --- a/python/metalstack/infra/v2/boot_pb2.py +++ b/python/metalstack/infra/v2/boot_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/infra/v2/boot.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/infra/v2/boot.proto' ) diff --git a/python/metalstack/infra/v2/component_pb2.py b/python/metalstack/infra/v2/component_pb2.py index 77e5823c..e68f651c 100644 --- a/python/metalstack/infra/v2/component_pb2.py +++ b/python/metalstack/infra/v2/component_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/infra/v2/component.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/infra/v2/component.proto' ) diff --git a/python/metalstack/infra/v2/event_pb2.py b/python/metalstack/infra/v2/event_pb2.py index 03329caf..80e22276 100644 --- a/python/metalstack/infra/v2/event_pb2.py +++ b/python/metalstack/infra/v2/event_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/infra/v2/event.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/infra/v2/event.proto' ) diff --git a/python/metalstack/infra/v2/switch_pb2.py b/python/metalstack/infra/v2/switch_pb2.py index 2b28371b..74cf5922 100644 --- a/python/metalstack/infra/v2/switch_pb2.py +++ b/python/metalstack/infra/v2/switch_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: metalstack/infra/v2/switch.proto -# Protobuf Python Version: 7.36.0 +# Protobuf Python Version: 7.36.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 7, 36, - 0, + 1, '', 'metalstack/infra/v2/switch.proto' ) From 30bdfe14ab5356d953b3386dfb499c57014cb448 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Wed, 4 Nov 2026 17:52:25 +0100 Subject: [PATCH 2/4] Add machine housekeeping action --- doc/index.html | 109 ++++++ go.mod | 10 +- go.sum | 24 +- .../v2/adminv2connect/machine.connect.go | 35 ++ go/metalstack/admin/v2/machine.pb.go | 310 ++++++++++++++---- go/permissions/servicepermissions.go | 4 + js/metalstack/admin/v2/machine_pb.d.ts | 89 ++++- js/metalstack/admin/v2/machine_pb.js | 50 ++- js/metalstack/admin/v2/machine_pb.ts | 106 +++++- proto/Makefile | 2 +- proto/metalstack/admin/v2/machine.proto | 31 ++ python/metalstack/admin/v2/machine_connect.py | 65 ++++ python/metalstack/admin/v2/machine_pb2.py | 20 +- python/metalstack/admin/v2/machine_pb2.pyi | 26 ++ 14 files changed, 789 insertions(+), 92 deletions(-) diff --git a/doc/index.html b/doc/index.html index 8c1cf7ff..42b2450d 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1528,6 +1528,14 @@

Table of Contents

MMachineServiceGetResponse +
  • + MMachineServiceHousekeepingRequest +
  • + +
  • + MMachineServiceHousekeepingResponse +
  • +
  • MMachineServiceIssuesRequest
  • @@ -1561,6 +1569,10 @@

    Table of Contents

    +
  • + EMachineHousekeepingAction +
  • +
  • @@ -13538,6 +13550,61 @@

    MachineServiceGetResponse +

    MachineServiceHousekeepingRequest

    +

    MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request.

    + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    actionMachineHousekeepingAction

    Housekeeping Action to perform.

    + + + + + +

    MachineServiceHousekeepingResponse

    +

    MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request.

    + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    actionMachineHousekeepingAction

    Housekeeping Action which was performed.

    modified_machine_idsstringrepeated

    Modified Machine IDs modified during this housekeeping action.

    + + + + +

    MachineServiceIssuesRequest

    MachineServiceIssuesRequest is the request payload for a machine issues request.

    @@ -13747,6 +13814,41 @@

    MachineServiceSetSta +

    MachineHousekeepingAction

    +

    HousekeepingAction defines which housekeeping action should be triggered.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameNumberDescription
    MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED0

    MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined.

    MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED1

    MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not.

    MACHINE_HOUSEKEEPING_ACTION_LIVELINESS2

    MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines.

    MACHINE_HOUSEKEEPING_ACTION_RESURRECT3

    MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines.

    + @@ -13822,6 +13924,13 @@

    MachineService

    Issues allows to query issues of machines.

    + + Housekeeping + MachineServiceHousekeepingRequest + MachineServiceHousekeepingResponse +

    Housekeeping

    + + diff --git a/go.mod b/go.mod index ec73f24b..ad968943 100644 --- a/go.mod +++ b/go.mod @@ -13,20 +13,20 @@ require ( github.com/google/uuid v1.6.0 github.com/klauspost/connect-compress/v2 v2.1.1 github.com/stretchr/testify v1.12.1 - google.golang.org/grpc v1.84.0 + google.golang.org/grpc v1.85.0 google.golang.org/protobuf v1.36.12 ) require ( - cel.dev/cel-go v0.32.0 // indirect + cel.dev/cel-go v0.33.2 // indirect cel.dev/expr v0.25.3 // indirect github.com/antlr4-go/antlr/v4 v4.13.1 // indirect github.com/klauspost/compress v1.20.3 // indirect github.com/minio/minlz v1.2.3 // indirect - go.yaml.in/yaml/v3 v3.0.5 // indirect + go.yaml.in/yaml/v3 v3.0.6 // indirect golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e // indirect golang.org/x/sys v0.49.0 // indirect golang.org/x/text v0.43.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20261019180522-ce908d29299b // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20261019180522-ce908d29299b // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20261026165753-2ffab32bce7e // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20261026165753-2ffab32bce7e // indirect ) diff --git a/go.sum b/go.sum index 1914c4dd..64b6ed27 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-202608252041 buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.2/go.mod h1:TCt1lluMFnctISJXvkIQ4x3ABrPuUKCWKyjKdkJNBpw= buf.build/go/protovalidate v1.4.0 h1:UjLrYbt5VX7+TMOs2+pG5FhZhIG1mSfK4EIopbb4LcM= buf.build/go/protovalidate v1.4.0/go.mod h1:8vJfzNT6NIG2qm3uFsJDXMlRmG+bQJzbcIn1Aa0vPGs= -cel.dev/cel-go v0.32.0 h1:irvpFKr5EuGPyxeME03ERh0rii1TX+BDAnB9eL3IvNk= -cel.dev/cel-go v0.32.0/go.mod h1:DnVip7tpJSsgZymwfT+m1tnEVy3ivAjSMXPx12YrMkU= +cel.dev/cel-go v0.33.2 h1:eAcEdBguc6AFrGbPOyE0g168Uey4kKFW9J6qsBLSeMU= +cel.dev/cel-go v0.33.2/go.mod h1:DnVip7tpJSsgZymwfT+m1tnEVy3ivAjSMXPx12YrMkU= cel.dev/expr v0.25.3 h1:A2jO8jwOugrrovveCWfj0KEZOfqiLgAcwjpHPhzIGw0= cel.dev/expr v0.25.3/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= connectrpc.com/connect v1.21.1 h1:h2kacdlzXpZU2OQFSv98xkjYXNUSr/ptxmGVbS/+CRM= @@ -34,21 +34,21 @@ github.com/rodaine/protogofakeit v0.1.1 h1:ZKouljuRM3A+TArppfBqnH8tGZHOwM/pjvtXe github.com/rodaine/protogofakeit v0.1.1/go.mod h1:pXn/AstBYMaSfc1/RqH3N82pBuxtWgejz1AlYpY1mI0= github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= -go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= -go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= +go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM= +go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e h1:HgI6W1OolKK6tcV74is+rl9SMT0njsHlp0TbQiGXI/A= golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e/go.mod h1:DBoxwWhjaW8DJJw/YeM4zpeOKMC1FMXSblsYy+1mFSw= -golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE= -golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= -google.golang.org/genproto/googleapis/api v0.0.0-20261019180522-ce908d29299b h1:nB3spRIaSPtxJpxb0k41yljROvm2Jrwfs2pSNdKS5y8= -google.golang.org/genproto/googleapis/api v0.0.0-20261019180522-ce908d29299b/go.mod h1:9N4vtjEwvgQKEdlFVQO0M44ErhecQ9DCSQfGoZ51M6w= -google.golang.org/genproto/googleapis/rpc v0.0.0-20261019180522-ce908d29299b h1:6WNWHZk91dp4gZ25642OALkuG1UVNZbwENJD19DnB8k= -google.golang.org/genproto/googleapis/rpc v0.0.0-20261019180522-ce908d29299b/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= -google.golang.org/grpc v1.84.0 h1:soMyaPJ8pAak5PIQ0DGBUir0XRo2fRoMqhNWMLlLxO0= -google.golang.org/grpc v1.84.0/go.mod h1:ljCht0DrxQrXBDRTZp52Qxh3Ffk8CdYm2sj4O2QN2C0= +google.golang.org/genproto/googleapis/api v0.0.0-20261026165753-2ffab32bce7e h1:e789sLZjeTdc02ZCQGTSzHOu0fR73+dwPQVKUp67Z88= +google.golang.org/genproto/googleapis/api v0.0.0-20261026165753-2ffab32bce7e/go.mod h1:vHV3wJM9WZyfV7GyB+OQGq5dWVrFwCDxapPK4WlRD88= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261026165753-2ffab32bce7e h1:w3fy/G8OrJHYexn+u5y7hFyc8YRRIr7DCevtIOwAcGY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261026165753-2ffab32bce7e/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= +google.golang.org/grpc v1.85.0 h1:BPBCfuVRQ1qvBhKDOq9uvQllMvO59rKsYhXpp7Dd8vw= +google.golang.org/grpc v1.85.0/go.mod h1:0rQrOD58yjal/0EaVbGBANindixsCZNQPDV3VKtaKuQ= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= diff --git a/go/metalstack/admin/v2/adminv2connect/machine.connect.go b/go/metalstack/admin/v2/adminv2connect/machine.connect.go index bcccad43..b31be02e 100644 --- a/go/metalstack/admin/v2/adminv2connect/machine.connect.go +++ b/go/metalstack/admin/v2/adminv2connect/machine.connect.go @@ -53,6 +53,9 @@ const ( MachineServiceSetStateProcedure = "/metalstack.admin.v2.MachineService/SetState" // MachineServiceIssuesProcedure is the fully-qualified name of the MachineService's Issues RPC. MachineServiceIssuesProcedure = "/metalstack.admin.v2.MachineService/Issues" + // MachineServiceHousekeepingProcedure is the fully-qualified name of the MachineService's + // Housekeeping RPC. + MachineServiceHousekeepingProcedure = "/metalstack.admin.v2.MachineService/Housekeeping" ) // MachineServiceClient is a client for the metalstack.admin.v2.MachineService service. @@ -75,6 +78,8 @@ type MachineServiceClient interface { SetState(context.Context, *v2.MachineServiceSetStateRequest) (*v2.MachineServiceSetStateResponse, error) // Issues allows to query issues of machines. Issues(context.Context, *v2.MachineServiceIssuesRequest) (*v2.MachineServiceIssuesResponse, error) + // Housekeeping + Housekeeping(context.Context, *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) } // NewMachineServiceClient constructs a client for the metalstack.admin.v2.MachineService service. @@ -142,6 +147,12 @@ func NewMachineServiceClient(httpClient connect.HTTPClient, baseURL string, opts connect.WithSchema(machineServiceMethods.ByName("Issues")), connect.WithClientOptions(opts...), ), + housekeeping: connect.NewClient[v2.MachineServiceHousekeepingRequest, v2.MachineServiceHousekeepingResponse]( + httpClient, + baseURL+MachineServiceHousekeepingProcedure, + connect.WithSchema(machineServiceMethods.ByName("Housekeeping")), + connect.WithClientOptions(opts...), + ), } } @@ -156,6 +167,7 @@ type machineServiceClient struct { consolePassword *connect.Client[v2.MachineServiceConsolePasswordRequest, v2.MachineServiceConsolePasswordResponse] setState *connect.Client[v2.MachineServiceSetStateRequest, v2.MachineServiceSetStateResponse] issues *connect.Client[v2.MachineServiceIssuesRequest, v2.MachineServiceIssuesResponse] + housekeeping *connect.Client[v2.MachineServiceHousekeepingRequest, v2.MachineServiceHousekeepingResponse] } // Get calls metalstack.admin.v2.MachineService.Get. @@ -239,6 +251,15 @@ func (c *machineServiceClient) Issues(ctx context.Context, req *v2.MachineServic return nil, err } +// Housekeeping calls metalstack.admin.v2.MachineService.Housekeeping. +func (c *machineServiceClient) Housekeeping(ctx context.Context, req *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) { + response, err := c.housekeeping.CallUnary(ctx, connect.NewRequest(req)) + if response != nil { + return response.Msg, err + } + return nil, err +} + // MachineServiceHandler is an implementation of the metalstack.admin.v2.MachineService service. type MachineServiceHandler interface { // Returns the machine with the specified UUID. @@ -259,6 +280,8 @@ type MachineServiceHandler interface { SetState(context.Context, *v2.MachineServiceSetStateRequest) (*v2.MachineServiceSetStateResponse, error) // Issues allows to query issues of machines. Issues(context.Context, *v2.MachineServiceIssuesRequest) (*v2.MachineServiceIssuesResponse, error) + // Housekeeping + Housekeeping(context.Context, *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) } // NewMachineServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -322,6 +345,12 @@ func NewMachineServiceHandler(svc MachineServiceHandler, opts ...connect.Handler connect.WithSchema(machineServiceMethods.ByName("Issues")), connect.WithHandlerOptions(opts...), ) + machineServiceHousekeepingHandler := connect.NewUnaryHandlerSimple( + MachineServiceHousekeepingProcedure, + svc.Housekeeping, + connect.WithSchema(machineServiceMethods.ByName("Housekeeping")), + connect.WithHandlerOptions(opts...), + ) return "/metalstack.admin.v2.MachineService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case MachineServiceGetProcedure: @@ -342,6 +371,8 @@ func NewMachineServiceHandler(svc MachineServiceHandler, opts ...connect.Handler machineServiceSetStateHandler.ServeHTTP(w, r) case MachineServiceIssuesProcedure: machineServiceIssuesHandler.ServeHTTP(w, r) + case MachineServiceHousekeepingProcedure: + machineServiceHousekeepingHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -386,3 +417,7 @@ func (UnimplementedMachineServiceHandler) SetState(context.Context, *v2.MachineS func (UnimplementedMachineServiceHandler) Issues(context.Context, *v2.MachineServiceIssuesRequest) (*v2.MachineServiceIssuesResponse, error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.MachineService.Issues is not implemented")) } + +func (UnimplementedMachineServiceHandler) Housekeeping(context.Context, *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.MachineService.Housekeeping is not implemented")) +} diff --git a/go/metalstack/admin/v2/machine.pb.go b/go/metalstack/admin/v2/machine.pb.go index fd1e08ac..29b86ced 100644 --- a/go/metalstack/admin/v2/machine.pb.go +++ b/go/metalstack/admin/v2/machine.pb.go @@ -23,6 +23,63 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// HousekeepingAction defines which housekeeping action should be triggered. +type MachineHousekeepingAction int32 + +const ( + // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED MachineHousekeepingAction = 0 + // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED MachineHousekeepingAction = 1 + // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_LIVELINESS MachineHousekeepingAction = 2 + // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_RESURRECT MachineHousekeepingAction = 3 +) + +// Enum value maps for MachineHousekeepingAction. +var ( + MachineHousekeepingAction_name = map[int32]string{ + 0: "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED", + 1: "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED", + 2: "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS", + 3: "MACHINE_HOUSEKEEPING_ACTION_RESURRECT", + } + MachineHousekeepingAction_value = map[string]int32{ + "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED": 0, + "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED": 1, + "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS": 2, + "MACHINE_HOUSEKEEPING_ACTION_RESURRECT": 3, + } +) + +func (x MachineHousekeepingAction) Enum() *MachineHousekeepingAction { + p := new(MachineHousekeepingAction) + *p = x + return p +} + +func (x MachineHousekeepingAction) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MachineHousekeepingAction) Descriptor() protoreflect.EnumDescriptor { + return file_metalstack_admin_v2_machine_proto_enumTypes[0].Descriptor() +} + +func (MachineHousekeepingAction) Type() protoreflect.EnumType { + return &file_metalstack_admin_v2_machine_proto_enumTypes[0] +} + +func (x MachineHousekeepingAction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MachineHousekeepingAction.Descriptor instead. +func (MachineHousekeepingAction) EnumDescriptor() ([]byte, []int) { + return file_metalstack_admin_v2_machine_proto_rawDescGZIP(), []int{0} +} + // MachineServiceGetRequest is the request payload for a machine get request. type MachineServiceGetRequest struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -898,6 +955,107 @@ func (x *MachineServiceIssuesResponse) GetIssues() []*v2.MachineIssues { return nil } +// MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. +type MachineServiceHousekeepingRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Housekeeping Action to perform. + Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MachineServiceHousekeepingRequest) Reset() { + *x = MachineServiceHousekeepingRequest{} + mi := &file_metalstack_admin_v2_machine_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineServiceHousekeepingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MachineServiceHousekeepingRequest) ProtoMessage() {} + +func (x *MachineServiceHousekeepingRequest) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_machine_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MachineServiceHousekeepingRequest.ProtoReflect.Descriptor instead. +func (*MachineServiceHousekeepingRequest) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_machine_proto_rawDescGZIP(), []int{18} +} + +func (x *MachineServiceHousekeepingRequest) GetAction() MachineHousekeepingAction { + if x != nil { + return x.Action + } + return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED +} + +// MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. +type MachineServiceHousekeepingResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Housekeeping Action which was performed. + Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` + // Modified Machine IDs modified during this housekeeping action. + ModifiedMachineIds []string `protobuf:"bytes,2,rep,name=modified_machine_ids,json=modifiedMachineIds,proto3" json:"modified_machine_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MachineServiceHousekeepingResponse) Reset() { + *x = MachineServiceHousekeepingResponse{} + mi := &file_metalstack_admin_v2_machine_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MachineServiceHousekeepingResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MachineServiceHousekeepingResponse) ProtoMessage() {} + +func (x *MachineServiceHousekeepingResponse) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_machine_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MachineServiceHousekeepingResponse.ProtoReflect.Descriptor instead. +func (*MachineServiceHousekeepingResponse) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_machine_proto_rawDescGZIP(), []int{19} +} + +func (x *MachineServiceHousekeepingResponse) GetAction() MachineHousekeepingAction { + if x != nil { + return x.Action + } + return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED +} + +func (x *MachineServiceHousekeepingResponse) GetModifiedMachineIds() []string { + if x != nil { + return x.ModifiedMachineIds + } + return nil +} + var File_metalstack_admin_v2_machine_proto protoreflect.FileDescriptor const file_metalstack_admin_v2_machine_proto_rawDesc = "" + @@ -947,7 +1105,19 @@ const file_metalstack_admin_v2_machine_proto_rawDesc = "" + "\x1bMachineServiceIssuesRequest\x12;\n" + "\x05query\x18\x01 \x01(\v2%.metalstack.api.v2.MachineIssuesQueryR\x05query\"X\n" + "\x1cMachineServiceIssuesResponse\x128\n" + - "\x06issues\x18\x01 \x03(\v2 .metalstack.api.v2.MachineIssuesR\x06issues2\x83\t\n" + + "\x06issues\x18\x01 \x03(\v2 .metalstack.api.v2.MachineIssuesR\x06issues\"k\n" + + "!MachineServiceHousekeepingRequest\x12F\n" + + "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionR\x06action\"\x9e\x01\n" + + "\"MachineServiceHousekeepingResponse\x12F\n" + + "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionR\x06action\x120\n" + + "\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n" + + "\x19MachineHousekeepingAction\x12+\n" + + "'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n" + + ")MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n" + + "&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\n" + + "liveliness\x128\n" + + "%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x90\n" + + "\n" + "\x0eMachineService\x12p\n" + "\x03Get\x12-.metalstack.admin.v2.MachineServiceGetRequest\x1a..metalstack.admin.v2.MachineServiceGetResponse\"\n" + "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12s\n" + @@ -964,7 +1134,8 @@ const file_metalstack_admin_v2_machine_proto_rawDesc = "" + "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n" + "\bSetState\x122.metalstack.admin.v2.MachineServiceSetStateRequest\x1a3.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n" + "\x06Issues\x120.metalstack.admin.v2.MachineServiceIssuesRequest\x1a1.metalstack.admin.v2.MachineServiceIssuesResponse\"\n" + - "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02B\xd0\x01\n" + + "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12\x8a\x01\n" + + "\fHousekeeping\x126.metalstack.admin.v2.MachineServiceHousekeepingRequest\x1a7.metalstack.admin.v2.MachineServiceHousekeepingResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01B\xd0\x01\n" + "\x17com.metalstack.admin.v2B\fMachineProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3" var ( @@ -979,70 +1150,78 @@ func file_metalstack_admin_v2_machine_proto_rawDescGZIP() []byte { return file_metalstack_admin_v2_machine_proto_rawDescData } -var file_metalstack_admin_v2_machine_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_metalstack_admin_v2_machine_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_metalstack_admin_v2_machine_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_metalstack_admin_v2_machine_proto_goTypes = []any{ - (*MachineServiceGetRequest)(nil), // 0: metalstack.admin.v2.MachineServiceGetRequest - (*MachineServiceGetResponse)(nil), // 1: metalstack.admin.v2.MachineServiceGetResponse - (*MachineServiceListRequest)(nil), // 2: metalstack.admin.v2.MachineServiceListRequest - (*MachineServiceListResponse)(nil), // 3: metalstack.admin.v2.MachineServiceListResponse - (*MachineServiceDeleteRequest)(nil), // 4: metalstack.admin.v2.MachineServiceDeleteRequest - (*MachineServiceDeleteResponse)(nil), // 5: metalstack.admin.v2.MachineServiceDeleteResponse - (*MachineServiceBMCCommandRequest)(nil), // 6: metalstack.admin.v2.MachineServiceBMCCommandRequest - (*MachineServiceBMCCommandResponse)(nil), // 7: metalstack.admin.v2.MachineServiceBMCCommandResponse - (*MachineServiceGetBMCRequest)(nil), // 8: metalstack.admin.v2.MachineServiceGetBMCRequest - (*MachineServiceGetBMCResponse)(nil), // 9: metalstack.admin.v2.MachineServiceGetBMCResponse - (*MachineServiceListBMCRequest)(nil), // 10: metalstack.admin.v2.MachineServiceListBMCRequest - (*MachineServiceListBMCResponse)(nil), // 11: metalstack.admin.v2.MachineServiceListBMCResponse - (*MachineServiceConsolePasswordRequest)(nil), // 12: metalstack.admin.v2.MachineServiceConsolePasswordRequest - (*MachineServiceConsolePasswordResponse)(nil), // 13: metalstack.admin.v2.MachineServiceConsolePasswordResponse - (*MachineServiceSetStateRequest)(nil), // 14: metalstack.admin.v2.MachineServiceSetStateRequest - (*MachineServiceSetStateResponse)(nil), // 15: metalstack.admin.v2.MachineServiceSetStateResponse - (*MachineServiceIssuesRequest)(nil), // 16: metalstack.admin.v2.MachineServiceIssuesRequest - (*MachineServiceIssuesResponse)(nil), // 17: metalstack.admin.v2.MachineServiceIssuesResponse - (*v2.Machine)(nil), // 18: metalstack.api.v2.Machine - (*v2.MachineQuery)(nil), // 19: metalstack.api.v2.MachineQuery - (v2.MachineBMCCommand)(0), // 20: metalstack.api.v2.MachineBMCCommand - (*v2.MachineBMCDetails)(nil), // 21: metalstack.api.v2.MachineBMCDetails - (v2.MachineState)(0), // 22: metalstack.api.v2.MachineState - (*v2.MachineIssuesQuery)(nil), // 23: metalstack.api.v2.MachineIssuesQuery - (*v2.MachineIssues)(nil), // 24: metalstack.api.v2.MachineIssues + (MachineHousekeepingAction)(0), // 0: metalstack.admin.v2.MachineHousekeepingAction + (*MachineServiceGetRequest)(nil), // 1: metalstack.admin.v2.MachineServiceGetRequest + (*MachineServiceGetResponse)(nil), // 2: metalstack.admin.v2.MachineServiceGetResponse + (*MachineServiceListRequest)(nil), // 3: metalstack.admin.v2.MachineServiceListRequest + (*MachineServiceListResponse)(nil), // 4: metalstack.admin.v2.MachineServiceListResponse + (*MachineServiceDeleteRequest)(nil), // 5: metalstack.admin.v2.MachineServiceDeleteRequest + (*MachineServiceDeleteResponse)(nil), // 6: metalstack.admin.v2.MachineServiceDeleteResponse + (*MachineServiceBMCCommandRequest)(nil), // 7: metalstack.admin.v2.MachineServiceBMCCommandRequest + (*MachineServiceBMCCommandResponse)(nil), // 8: metalstack.admin.v2.MachineServiceBMCCommandResponse + (*MachineServiceGetBMCRequest)(nil), // 9: metalstack.admin.v2.MachineServiceGetBMCRequest + (*MachineServiceGetBMCResponse)(nil), // 10: metalstack.admin.v2.MachineServiceGetBMCResponse + (*MachineServiceListBMCRequest)(nil), // 11: metalstack.admin.v2.MachineServiceListBMCRequest + (*MachineServiceListBMCResponse)(nil), // 12: metalstack.admin.v2.MachineServiceListBMCResponse + (*MachineServiceConsolePasswordRequest)(nil), // 13: metalstack.admin.v2.MachineServiceConsolePasswordRequest + (*MachineServiceConsolePasswordResponse)(nil), // 14: metalstack.admin.v2.MachineServiceConsolePasswordResponse + (*MachineServiceSetStateRequest)(nil), // 15: metalstack.admin.v2.MachineServiceSetStateRequest + (*MachineServiceSetStateResponse)(nil), // 16: metalstack.admin.v2.MachineServiceSetStateResponse + (*MachineServiceIssuesRequest)(nil), // 17: metalstack.admin.v2.MachineServiceIssuesRequest + (*MachineServiceIssuesResponse)(nil), // 18: metalstack.admin.v2.MachineServiceIssuesResponse + (*MachineServiceHousekeepingRequest)(nil), // 19: metalstack.admin.v2.MachineServiceHousekeepingRequest + (*MachineServiceHousekeepingResponse)(nil), // 20: metalstack.admin.v2.MachineServiceHousekeepingResponse + (*v2.Machine)(nil), // 21: metalstack.api.v2.Machine + (*v2.MachineQuery)(nil), // 22: metalstack.api.v2.MachineQuery + (v2.MachineBMCCommand)(0), // 23: metalstack.api.v2.MachineBMCCommand + (*v2.MachineBMCDetails)(nil), // 24: metalstack.api.v2.MachineBMCDetails + (v2.MachineState)(0), // 25: metalstack.api.v2.MachineState + (*v2.MachineIssuesQuery)(nil), // 26: metalstack.api.v2.MachineIssuesQuery + (*v2.MachineIssues)(nil), // 27: metalstack.api.v2.MachineIssues } var file_metalstack_admin_v2_machine_proto_depIdxs = []int32{ - 18, // 0: metalstack.admin.v2.MachineServiceGetResponse.machine:type_name -> metalstack.api.v2.Machine - 19, // 1: metalstack.admin.v2.MachineServiceListRequest.query:type_name -> metalstack.api.v2.MachineQuery - 18, // 2: metalstack.admin.v2.MachineServiceListResponse.machines:type_name -> metalstack.api.v2.Machine - 18, // 3: metalstack.admin.v2.MachineServiceDeleteResponse.machine:type_name -> metalstack.api.v2.Machine - 20, // 4: metalstack.admin.v2.MachineServiceBMCCommandRequest.command:type_name -> metalstack.api.v2.MachineBMCCommand - 21, // 5: metalstack.admin.v2.MachineServiceGetBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails - 19, // 6: metalstack.admin.v2.MachineServiceListBMCRequest.query:type_name -> metalstack.api.v2.MachineQuery - 21, // 7: metalstack.admin.v2.MachineServiceListBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails - 22, // 8: metalstack.admin.v2.MachineServiceSetStateRequest.state:type_name -> metalstack.api.v2.MachineState - 18, // 9: metalstack.admin.v2.MachineServiceSetStateResponse.machine:type_name -> metalstack.api.v2.Machine - 23, // 10: metalstack.admin.v2.MachineServiceIssuesRequest.query:type_name -> metalstack.api.v2.MachineIssuesQuery - 24, // 11: metalstack.admin.v2.MachineServiceIssuesResponse.issues:type_name -> metalstack.api.v2.MachineIssues - 0, // 12: metalstack.admin.v2.MachineService.Get:input_type -> metalstack.admin.v2.MachineServiceGetRequest - 2, // 13: metalstack.admin.v2.MachineService.List:input_type -> metalstack.admin.v2.MachineServiceListRequest - 4, // 14: metalstack.admin.v2.MachineService.Delete:input_type -> metalstack.admin.v2.MachineServiceDeleteRequest - 6, // 15: metalstack.admin.v2.MachineService.BMCCommand:input_type -> metalstack.admin.v2.MachineServiceBMCCommandRequest - 8, // 16: metalstack.admin.v2.MachineService.GetBMC:input_type -> metalstack.admin.v2.MachineServiceGetBMCRequest - 10, // 17: metalstack.admin.v2.MachineService.ListBMC:input_type -> metalstack.admin.v2.MachineServiceListBMCRequest - 12, // 18: metalstack.admin.v2.MachineService.ConsolePassword:input_type -> metalstack.admin.v2.MachineServiceConsolePasswordRequest - 14, // 19: metalstack.admin.v2.MachineService.SetState:input_type -> metalstack.admin.v2.MachineServiceSetStateRequest - 16, // 20: metalstack.admin.v2.MachineService.Issues:input_type -> metalstack.admin.v2.MachineServiceIssuesRequest - 1, // 21: metalstack.admin.v2.MachineService.Get:output_type -> metalstack.admin.v2.MachineServiceGetResponse - 3, // 22: metalstack.admin.v2.MachineService.List:output_type -> metalstack.admin.v2.MachineServiceListResponse - 5, // 23: metalstack.admin.v2.MachineService.Delete:output_type -> metalstack.admin.v2.MachineServiceDeleteResponse - 7, // 24: metalstack.admin.v2.MachineService.BMCCommand:output_type -> metalstack.admin.v2.MachineServiceBMCCommandResponse - 9, // 25: metalstack.admin.v2.MachineService.GetBMC:output_type -> metalstack.admin.v2.MachineServiceGetBMCResponse - 11, // 26: metalstack.admin.v2.MachineService.ListBMC:output_type -> metalstack.admin.v2.MachineServiceListBMCResponse - 13, // 27: metalstack.admin.v2.MachineService.ConsolePassword:output_type -> metalstack.admin.v2.MachineServiceConsolePasswordResponse - 15, // 28: metalstack.admin.v2.MachineService.SetState:output_type -> metalstack.admin.v2.MachineServiceSetStateResponse - 17, // 29: metalstack.admin.v2.MachineService.Issues:output_type -> metalstack.admin.v2.MachineServiceIssuesResponse - 21, // [21:30] is the sub-list for method output_type - 12, // [12:21] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 21, // 0: metalstack.admin.v2.MachineServiceGetResponse.machine:type_name -> metalstack.api.v2.Machine + 22, // 1: metalstack.admin.v2.MachineServiceListRequest.query:type_name -> metalstack.api.v2.MachineQuery + 21, // 2: metalstack.admin.v2.MachineServiceListResponse.machines:type_name -> metalstack.api.v2.Machine + 21, // 3: metalstack.admin.v2.MachineServiceDeleteResponse.machine:type_name -> metalstack.api.v2.Machine + 23, // 4: metalstack.admin.v2.MachineServiceBMCCommandRequest.command:type_name -> metalstack.api.v2.MachineBMCCommand + 24, // 5: metalstack.admin.v2.MachineServiceGetBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails + 22, // 6: metalstack.admin.v2.MachineServiceListBMCRequest.query:type_name -> metalstack.api.v2.MachineQuery + 24, // 7: metalstack.admin.v2.MachineServiceListBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails + 25, // 8: metalstack.admin.v2.MachineServiceSetStateRequest.state:type_name -> metalstack.api.v2.MachineState + 21, // 9: metalstack.admin.v2.MachineServiceSetStateResponse.machine:type_name -> metalstack.api.v2.Machine + 26, // 10: metalstack.admin.v2.MachineServiceIssuesRequest.query:type_name -> metalstack.api.v2.MachineIssuesQuery + 27, // 11: metalstack.admin.v2.MachineServiceIssuesResponse.issues:type_name -> metalstack.api.v2.MachineIssues + 0, // 12: metalstack.admin.v2.MachineServiceHousekeepingRequest.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction + 0, // 13: metalstack.admin.v2.MachineServiceHousekeepingResponse.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction + 1, // 14: metalstack.admin.v2.MachineService.Get:input_type -> metalstack.admin.v2.MachineServiceGetRequest + 3, // 15: metalstack.admin.v2.MachineService.List:input_type -> metalstack.admin.v2.MachineServiceListRequest + 5, // 16: metalstack.admin.v2.MachineService.Delete:input_type -> metalstack.admin.v2.MachineServiceDeleteRequest + 7, // 17: metalstack.admin.v2.MachineService.BMCCommand:input_type -> metalstack.admin.v2.MachineServiceBMCCommandRequest + 9, // 18: metalstack.admin.v2.MachineService.GetBMC:input_type -> metalstack.admin.v2.MachineServiceGetBMCRequest + 11, // 19: metalstack.admin.v2.MachineService.ListBMC:input_type -> metalstack.admin.v2.MachineServiceListBMCRequest + 13, // 20: metalstack.admin.v2.MachineService.ConsolePassword:input_type -> metalstack.admin.v2.MachineServiceConsolePasswordRequest + 15, // 21: metalstack.admin.v2.MachineService.SetState:input_type -> metalstack.admin.v2.MachineServiceSetStateRequest + 17, // 22: metalstack.admin.v2.MachineService.Issues:input_type -> metalstack.admin.v2.MachineServiceIssuesRequest + 19, // 23: metalstack.admin.v2.MachineService.Housekeeping:input_type -> metalstack.admin.v2.MachineServiceHousekeepingRequest + 2, // 24: metalstack.admin.v2.MachineService.Get:output_type -> metalstack.admin.v2.MachineServiceGetResponse + 4, // 25: metalstack.admin.v2.MachineService.List:output_type -> metalstack.admin.v2.MachineServiceListResponse + 6, // 26: metalstack.admin.v2.MachineService.Delete:output_type -> metalstack.admin.v2.MachineServiceDeleteResponse + 8, // 27: metalstack.admin.v2.MachineService.BMCCommand:output_type -> metalstack.admin.v2.MachineServiceBMCCommandResponse + 10, // 28: metalstack.admin.v2.MachineService.GetBMC:output_type -> metalstack.admin.v2.MachineServiceGetBMCResponse + 12, // 29: metalstack.admin.v2.MachineService.ListBMC:output_type -> metalstack.admin.v2.MachineServiceListBMCResponse + 14, // 30: metalstack.admin.v2.MachineService.ConsolePassword:output_type -> metalstack.admin.v2.MachineServiceConsolePasswordResponse + 16, // 31: metalstack.admin.v2.MachineService.SetState:output_type -> metalstack.admin.v2.MachineServiceSetStateResponse + 18, // 32: metalstack.admin.v2.MachineService.Issues:output_type -> metalstack.admin.v2.MachineServiceIssuesResponse + 20, // 33: metalstack.admin.v2.MachineService.Housekeeping:output_type -> metalstack.admin.v2.MachineServiceHousekeepingResponse + 24, // [24:34] is the sub-list for method output_type + 14, // [14:24] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_metalstack_admin_v2_machine_proto_init() } @@ -1055,13 +1234,14 @@ func file_metalstack_admin_v2_machine_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_metalstack_admin_v2_machine_proto_rawDesc), len(file_metalstack_admin_v2_machine_proto_rawDesc)), - NumEnums: 0, - NumMessages: 18, + NumEnums: 1, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, GoTypes: file_metalstack_admin_v2_machine_proto_goTypes, DependencyIndexes: file_metalstack_admin_v2_machine_proto_depIdxs, + EnumInfos: file_metalstack_admin_v2_machine_proto_enumTypes, MessageInfos: file_metalstack_admin_v2_machine_proto_msgTypes, }.Build() File_metalstack_admin_v2_machine_proto = out.File diff --git a/go/permissions/servicepermissions.go b/go/permissions/servicepermissions.go index 0d1f9680..762f8c45 100755 --- a/go/permissions/servicepermissions.go +++ b/go/permissions/servicepermissions.go @@ -76,6 +76,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": {}, "/metalstack.admin.v2.MachineService/Get": {}, "/metalstack.admin.v2.MachineService/GetBMC": {}, + "/metalstack.admin.v2.MachineService/Housekeeping": {}, "/metalstack.admin.v2.MachineService/Issues": {}, "/metalstack.admin.v2.MachineService/List": {}, "/metalstack.admin.v2.MachineService/ListBMC": {}, @@ -315,6 +316,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": {}, "/metalstack.admin.v2.MachineService/Get": {}, "/metalstack.admin.v2.MachineService/GetBMC": {}, + "/metalstack.admin.v2.MachineService/Housekeeping": {}, "/metalstack.admin.v2.MachineService/Issues": {}, "/metalstack.admin.v2.MachineService/List": {}, "/metalstack.admin.v2.MachineService/ListBMC": {}, @@ -509,6 +511,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": true, "/metalstack.admin.v2.MachineService/Get": true, "/metalstack.admin.v2.MachineService/GetBMC": true, + "/metalstack.admin.v2.MachineService/Housekeeping": true, "/metalstack.admin.v2.MachineService/Issues": true, "/metalstack.admin.v2.MachineService/List": true, "/metalstack.admin.v2.MachineService/ListBMC": true, @@ -645,6 +648,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": true, "/metalstack.admin.v2.MachineService/Get": false, "/metalstack.admin.v2.MachineService/GetBMC": true, + "/metalstack.admin.v2.MachineService/Housekeeping": true, "/metalstack.admin.v2.MachineService/Issues": false, "/metalstack.admin.v2.MachineService/List": false, "/metalstack.admin.v2.MachineService/ListBMC": true, diff --git a/js/metalstack/admin/v2/machine_pb.d.ts b/js/metalstack/admin/v2/machine_pb.d.ts index ae1a0cea..72cf413b 100644 --- a/js/metalstack/admin/v2/machine_pb.d.ts +++ b/js/metalstack/admin/v2/machine_pb.d.ts @@ -1,4 +1,4 @@ -import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Machine, MachineBMCCommand, MachineBMCDetails, MachineIssues, MachineIssuesQuery, MachineQuery, MachineState } from "../../api/v2/machine_pb"; import type { Message } from "@bufbuild/protobuf"; /** @@ -361,6 +361,83 @@ export type MachineServiceIssuesResponse = Message<"metalstack.admin.v2.MachineS * Use `create(MachineServiceIssuesResponseSchema)` to create a new message. */ export declare const MachineServiceIssuesResponseSchema: GenMessage; +/** + * MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.MachineServiceHousekeepingRequest + */ +export type MachineServiceHousekeepingRequest = Message<"metalstack.admin.v2.MachineServiceHousekeepingRequest"> & { + /** + * Housekeeping Action to perform. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; +}; +/** + * Describes the message metalstack.admin.v2.MachineServiceHousekeepingRequest. + * Use `create(MachineServiceHousekeepingRequestSchema)` to create a new message. + */ +export declare const MachineServiceHousekeepingRequestSchema: GenMessage; +/** + * MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.MachineServiceHousekeepingResponse + */ +export type MachineServiceHousekeepingResponse = Message<"metalstack.admin.v2.MachineServiceHousekeepingResponse"> & { + /** + * Housekeeping Action which was performed. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; + /** + * Modified Machine IDs modified during this housekeeping action. + * + * @generated from field: repeated string modified_machine_ids = 2; + */ + modifiedMachineIds: string[]; +}; +/** + * Describes the message metalstack.admin.v2.MachineServiceHousekeepingResponse. + * Use `create(MachineServiceHousekeepingResponseSchema)` to create a new message. + */ +export declare const MachineServiceHousekeepingResponseSchema: GenMessage; +/** + * HousekeepingAction defines which housekeeping action should be triggered. + * + * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + */ +export declare enum MachineHousekeepingAction { + /** + * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + /** + * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; + */ + VPN_CONNECTED = 1, + /** + * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + */ + LIVELINESS = 2, + /** + * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + */ + RESURRECT = 3 +} +/** + * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + */ +export declare const MachineHousekeepingActionSchema: GenEnum; /** * MachineService provides machine lifecycle management operations. * @@ -457,4 +534,14 @@ export declare const MachineService: GenService<{ input: typeof MachineServiceIssuesRequestSchema; output: typeof MachineServiceIssuesResponseSchema; }; + /** + * Housekeeping + * + * @generated from rpc metalstack.admin.v2.MachineService.Housekeeping + */ + housekeeping: { + methodKind: "unary"; + input: typeof MachineServiceHousekeepingRequestSchema; + output: typeof MachineServiceHousekeepingResponseSchema; + }; }>; diff --git a/js/metalstack/admin/v2/machine_pb.js b/js/metalstack/admin/v2/machine_pb.js index 2173c213..e69e41d1 100644 --- a/js/metalstack/admin/v2/machine_pb.js +++ b/js/metalstack/admin/v2/machine_pb.js @@ -1,7 +1,7 @@ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts" // @generated from file metalstack/admin/v2/machine.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ -import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb"; @@ -9,7 +9,7 @@ import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined /** * Describes the file metalstack/admin/v2/machine.proto. */ -export const file_metalstack_admin_v2_machine = /*@__PURE__*/ fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21hY2hpbmUucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoYTWFjaGluZVNlcnZpY2VHZXRSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIkgKGU1hY2hpbmVTZXJ2aWNlR2V0UmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiSwoZTWFjaGluZVNlcnZpY2VMaXN0UmVxdWVzdBIuCgVxdWVyeRgBIAEoCzIfLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmVRdWVyeSJKChpNYWNoaW5lU2VydmljZUxpc3RSZXNwb25zZRIsCghtYWNoaW5lcxgBIAMoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiNQobTWFjaGluZVNlcnZpY2VEZWxldGVSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIksKHE1hY2hpbmVTZXJ2aWNlRGVsZXRlUmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiegofTWFjaGluZVNlcnZpY2VCTUNDb21tYW5kUmVxdWVzdBIWCgR1dWlkGAEgASgJQgi6SAVyA7ABARI/Cgdjb21tYW5kGAIgASgOMiQubWV0YWxzdGFjay5hcGkudjIuTWFjaGluZUJNQ0NvbW1hbmRCCLpIBYIBAhABIjMKIE1hY2hpbmVTZXJ2aWNlQk1DQ29tbWFuZFJlc3B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NQ1JlcXVlc3QaMi5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlTGlzdEJNQ1Jlc3BvbnNlIgrS8xgCAQLg8xgBEpQBCg9Db25zb2xlUGFzc3dvcmQSOS5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlQ29uc29sZVBhc3N3b3JkUmVxdWVzdBo6Lm1ldGFsc3RhY2suYWRtaW4udjIuTWFjaGluZVNlcnZpY2VDb25zb2xlUGFzc3dvcmRSZXNwb25zZSIK0vMYAgEC4PMYARJ+CghTZXRTdGF0ZRIyLm1ldGFsc3RhY2suYWRtaW4udjIuTWFjaGluZVNlcnZpY2VTZXRTdGF0ZVJlcXVlc3QaMy5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlU2V0U3RhdGVSZXNwb25zZSIJ0vMYAQHg8xgBEnkKBklzc3VlcxIwLm1ldGFsc3RhY2suYWRtaW4udjIuTWFjaGluZVNlcnZpY2VJc3N1ZXNSZXF1ZXN0GjEubWV0YWxzdGFjay5hZG1pbi52Mi5NYWNoaW5lU2VydmljZUlzc3Vlc1Jlc3BvbnNlIgrS8xgCAQLg8xgCQtABChdjb20ubWV0YWxzdGFjay5hZG1pbi52MkIMTWFjaGluZVByb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]); +export const file_metalstack_admin_v2_machine = /*@__PURE__*/ fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21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Fjay5hZG1pbi52Mi5NYWNoaW5lU2VydmljZUhvdXNla2VlcGluZ1JlcXVlc3QaNy5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlSG91c2VrZWVwaW5nUmVzcG9uc2UiCdLzGAEB4PMYAULQAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCDE1hY2hpbmVQcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]); /** * Describes the message metalstack.admin.v2.MachineServiceGetRequest. * Use `create(MachineServiceGetRequestSchema)` to create a new message. @@ -100,6 +100,52 @@ export const MachineServiceIssuesRequestSchema = /*@__PURE__*/ messageDesc(file_ * Use `create(MachineServiceIssuesResponseSchema)` to create a new message. */ export const MachineServiceIssuesResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 17); +/** + * Describes the message metalstack.admin.v2.MachineServiceHousekeepingRequest. + * Use `create(MachineServiceHousekeepingRequestSchema)` to create a new message. + */ +export const MachineServiceHousekeepingRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 18); +/** + * Describes the message metalstack.admin.v2.MachineServiceHousekeepingResponse. + * Use `create(MachineServiceHousekeepingResponseSchema)` to create a new message. + */ +export const MachineServiceHousekeepingResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 19); +/** + * HousekeepingAction defines which housekeeping action should be triggered. + * + * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + */ +export var MachineHousekeepingAction; +(function (MachineHousekeepingAction) { + /** + * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + */ + MachineHousekeepingAction[MachineHousekeepingAction["UNSPECIFIED"] = 0] = "UNSPECIFIED"; + /** + * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; + */ + MachineHousekeepingAction[MachineHousekeepingAction["VPN_CONNECTED"] = 1] = "VPN_CONNECTED"; + /** + * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + */ + MachineHousekeepingAction[MachineHousekeepingAction["LIVELINESS"] = 2] = "LIVELINESS"; + /** + * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + */ + MachineHousekeepingAction[MachineHousekeepingAction["RESURRECT"] = 3] = "RESURRECT"; +})(MachineHousekeepingAction || (MachineHousekeepingAction = {})); +/** + * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + */ +export const MachineHousekeepingActionSchema = /*@__PURE__*/ enumDesc(file_metalstack_admin_v2_machine, 0); /** * MachineService provides machine lifecycle management operations. * diff --git a/js/metalstack/admin/v2/machine_pb.ts b/js/metalstack/admin/v2/machine_pb.ts index feae06af..e65a3994 100644 --- a/js/metalstack/admin/v2/machine_pb.ts +++ b/js/metalstack/admin/v2/machine_pb.ts @@ -2,8 +2,8 @@ // @generated from file metalstack/admin/v2/machine.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ -import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; -import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; import type { Machine, MachineBMCCommand, MachineBMCDetails, MachineIssues, MachineIssuesQuery, MachineQuery, MachineState } from "../../api/v2/machine_pb"; @@ -15,7 +15,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file metalstack/admin/v2/machine.proto. */ export const file_metalstack_admin_v2_machine: GenFile = /*@__PURE__*/ - fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21hY2hpbmUucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoYTWFjaGluZVNlcnZpY2VHZXRSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIkgKGU1hY2hpbmVTZXJ2aWNlR2V0UmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiSwoZTWFjaGluZVNlcnZpY2VMaXN0UmVxdWVzdBIuCgVxdWVyeRgBIAEoCzIfLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmVRdWVyeSJKChpNYWNoaW5lU2VydmljZUxpc3RSZXNwb25zZRIsCghtYWNoaW5lcxgBIAMoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiNQobTWFjaGluZVNlcnZpY2VEZWxldGVSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIksKHE1hY2hpbmVTZXJ2aWNlRGVsZXRlUmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiegofTWFjaGluZVNlcnZpY2VCTUNDb21tYW5kUmVxdWVzdBIWCgR1dWlkGAEgASgJQgi6SAVyA7ABARI/Cgdjb21tYW5kGAIgASgOMiQubWV0YWxzdGFj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SZXNwb25zZSIK0vMYAgEC4PMYAhKKAQoMSG91c2VrZWVwaW5nEjYubWV0YWxzdGFjay5hZG1pbi52Mi5NYWNoaW5lU2VydmljZUhvdXNla2VlcGluZ1JlcXVlc3QaNy5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlSG91c2VrZWVwaW5nUmVzcG9uc2UiCdLzGAEB4PMYAULQAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCDE1hY2hpbmVQcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]); /** * MachineServiceGetRequest is the request payload for a machine get request. @@ -432,6 +432,96 @@ export type MachineServiceIssuesResponse = Message<"metalstack.admin.v2.MachineS export const MachineServiceIssuesResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 17); +/** + * MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.MachineServiceHousekeepingRequest + */ +export type MachineServiceHousekeepingRequest = Message<"metalstack.admin.v2.MachineServiceHousekeepingRequest"> & { + /** + * Housekeeping Action to perform. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; +}; + +/** + * Describes the message metalstack.admin.v2.MachineServiceHousekeepingRequest. + * Use `create(MachineServiceHousekeepingRequestSchema)` to create a new message. + */ +export const MachineServiceHousekeepingRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_machine, 18); + +/** + * MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.MachineServiceHousekeepingResponse + */ +export type MachineServiceHousekeepingResponse = Message<"metalstack.admin.v2.MachineServiceHousekeepingResponse"> & { + /** + * Housekeeping Action which was performed. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; + + /** + * Modified Machine IDs modified during this housekeeping action. + * + * @generated from field: repeated string modified_machine_ids = 2; + */ + modifiedMachineIds: string[]; +}; + +/** + * Describes the message metalstack.admin.v2.MachineServiceHousekeepingResponse. + * Use `create(MachineServiceHousekeepingResponseSchema)` to create a new message. + */ +export const MachineServiceHousekeepingResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_machine, 19); + +/** + * HousekeepingAction defines which housekeeping action should be triggered. + * + * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + */ +export enum MachineHousekeepingAction { + /** + * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; + */ + VPN_CONNECTED = 1, + + /** + * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + */ + LIVELINESS = 2, + + /** + * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + */ + RESURRECT = 3, +} + +/** + * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + */ +export const MachineHousekeepingActionSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_metalstack_admin_v2_machine, 0); + /** * MachineService provides machine lifecycle management operations. * @@ -528,6 +618,16 @@ export const MachineService: GenService<{ input: typeof MachineServiceIssuesRequestSchema; output: typeof MachineServiceIssuesResponseSchema; }, + /** + * Housekeeping + * + * @generated from rpc metalstack.admin.v2.MachineService.Housekeeping + */ + housekeeping: { + methodKind: "unary"; + input: typeof MachineServiceHousekeepingRequestSchema; + output: typeof MachineServiceHousekeepingResponseSchema; + }, }> = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_machine, 0); diff --git a/proto/Makefile b/proto/Makefile index e04529e7..3bada879 100644 --- a/proto/Makefile +++ b/proto/Makefile @@ -1,5 +1,5 @@ MAKEFLAGS += --no-print-directory -BUF_VERSION := 1.74.0 +BUF_VERSION := 1.75.0 _buf: docker run --rm \ diff --git a/proto/metalstack/admin/v2/machine.proto b/proto/metalstack/admin/v2/machine.proto index edd916b4..137a43b3 100644 --- a/proto/metalstack/admin/v2/machine.proto +++ b/proto/metalstack/admin/v2/machine.proto @@ -60,6 +60,11 @@ service MachineService { option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_VIEWER; option (metalstack.api.v2.auditing) = AUDITING_EXCLUDED; } + // Housekeeping + rpc Housekeeping(MachineServiceHousekeepingRequest) returns (MachineServiceHousekeepingResponse) { + option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; + option (metalstack.api.v2.auditing) = AUDITING_INCLUDED; + } } // ------------------------ Service Messages ---------------------------------- @@ -186,3 +191,29 @@ message MachineServiceIssuesResponse { // Issues is the result of the issues query. repeated metalstack.api.v2.MachineIssues issues = 1; } + +// MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. +message MachineServiceHousekeepingRequest { + // Housekeeping Action to perform. + MachineHousekeepingAction action = 1; +} + +// MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. +message MachineServiceHousekeepingResponse { + // Housekeeping Action which was performed. + MachineHousekeepingAction action = 1; + // Modified Machine IDs modified during this housekeeping action. + repeated string modified_machine_ids = 2; +} + +// HousekeepingAction defines which housekeeping action should be triggered. +enum MachineHousekeepingAction { + // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1 [(metalstack.api.v2.enum_string_value) = "vpn-connected"]; + // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2 [(metalstack.api.v2.enum_string_value) = "liveliness"]; + // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3 [(metalstack.api.v2.enum_string_value) = "resurrect"]; +} diff --git a/python/metalstack/admin/v2/machine_connect.py b/python/metalstack/admin/v2/machine_connect.py index 80933712..6d91b6fe 100644 --- a/python/metalstack/admin/v2/machine_connect.py +++ b/python/metalstack/admin/v2/machine_connect.py @@ -45,6 +45,9 @@ async def set_state(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2. async def issues(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesResponse: raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + async def housekeeping(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + class MachineServiceASGIApplication(ConnectASGIApplication[MachineService]): def __init__(self, service: MachineService | AsyncGenerator[MachineService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None: @@ -141,6 +144,16 @@ def __init__(self, service: MachineService | AsyncGenerator[MachineService], *, ), function=svc.issues, ), + "/metalstack.admin.v2.MachineService/Housekeeping": Endpoint.unary( + method=MethodInfo( + name="Housekeeping", + service_name="metalstack.admin.v2.MachineService", + input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, + output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=svc.housekeeping, + ), }, interceptors=interceptors, read_max_bytes=read_max_bytes, @@ -335,6 +348,26 @@ async def issues( timeout_ms=timeout_ms, ) + async def housekeeping( + self, + request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: + return await self.execute_unary( + request=request, + method=MethodInfo( + name="Housekeeping", + service_name="metalstack.admin.v2.MachineService", + input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, + output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + @@ -358,6 +391,8 @@ def set_state(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.Machin raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") def issues(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesResponse: raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + def housekeeping(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") class MachineServiceWSGIApplication(ConnectWSGIApplication): @@ -454,6 +489,16 @@ def __init__(self, service: MachineServiceSync, interceptors: Iterable[Intercept ), function=service.issues, ), + "/metalstack.admin.v2.MachineService/Housekeeping": EndpointSync.unary( + method=MethodInfo( + name="Housekeeping", + service_name="metalstack.admin.v2.MachineService", + input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, + output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=service.housekeeping, + ), }, interceptors=interceptors, read_max_bytes=read_max_bytes, @@ -648,4 +693,24 @@ def issues( timeout_ms=timeout_ms, ) + def housekeeping( + self, + request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: + return self.execute_unary( + request=request, + method=MethodInfo( + name="Housekeeping", + service_name="metalstack.admin.v2.MachineService", + input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, + output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + diff --git a/python/metalstack/admin/v2/machine_pb2.py b/python/metalstack/admin/v2/machine_pb2.py index 5bdd2f57..29817e00 100644 --- a/python/metalstack/admin/v2/machine_pb2.py +++ b/python/metalstack/admin/v2/machine_pb2.py @@ -28,7 +28,7 @@ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/machine.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/machine.proto\x1a(metalstack/api/v2/predefined_rules.proto\"8\n\x18MachineServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"Q\n\x19MachineServiceGetResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"R\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"T\n\x1aMachineServiceListResponse\x12\x36\n\x08machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x08machines\";\n\x1bMachineServiceDeleteRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"T\n\x1cMachineServiceDeleteResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"\x89\x01\n\x1fMachineServiceBMCCommandRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12H\n\x07\x63ommand\x18\x02 \x01(\x0e\x32$.metalstack.api.v2.MachineBMCCommandB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07\x63ommand\";\n MachineServiceBMCCommandResponse\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\";\n\x1bMachineServiceGetBMCRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"e\n\x1cMachineServiceGetBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x01(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"U\n\x1cMachineServiceListBMCRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"f\n\x1dMachineServiceListBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x03(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"h\n$MachineServiceConsolePasswordRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\"\n\x06reason\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\n\x18\x80\x04R\x06reason\"a\n%MachineServiceConsolePasswordResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1a\n\x08password\x18\x02 \x01(\tR\x08password\"\xad\x01\n\x1dMachineServiceSetStateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12?\n\x05state\x18\x02 \x01(\x0e\x32\x1f.metalstack.api.v2.MachineStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x05state\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\"V\n\x1eMachineServiceSetStateResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"Z\n\x1bMachineServiceIssuesRequest\x12;\n\x05query\x18\x01 \x01(\x0b\x32%.metalstack.api.v2.MachineIssuesQueryR\x05query\"X\n\x1cMachineServiceIssuesResponse\x12\x38\n\x06issues\x18\x01 \x03(\x0b\x32 .metalstack.api.v2.MachineIssuesR\x06issues2\x83\t\n\x0eMachineService\x12p\n\x03Get\x12-.metalstack.admin.v2.MachineServiceGetRequest\x1a..metalstack.admin.v2.MachineServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12s\n\x04List\x12..metalstack.admin.v2.MachineServiceListRequest\x1a/.metalstack.admin.v2.MachineServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.MachineServiceDeleteRequest\x1a\x31.metalstack.admin.v2.MachineServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x84\x01\n\nBMCCommand\x12\x34.metalstack.admin.v2.MachineServiceBMCCommandRequest\x1a\x35.metalstack.admin.v2.MachineServiceBMCCommandResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06GetBMC\x12\x30.metalstack.admin.v2.MachineServiceGetBMCRequest\x1a\x31.metalstack.admin.v2.MachineServiceGetBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12|\n\x07ListBMC\x12\x31.metalstack.admin.v2.MachineServiceListBMCRequest\x1a\x32.metalstack.admin.v2.MachineServiceListBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12\x94\x01\n\x0f\x43onsolePassword\x12\x39.metalstack.admin.v2.MachineServiceConsolePasswordRequest\x1a:.metalstack.admin.v2.MachineServiceConsolePasswordResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n\x08SetState\x12\x32.metalstack.admin.v2.MachineServiceSetStateRequest\x1a\x33.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06Issues\x12\x30.metalstack.admin.v2.MachineServiceIssuesRequest\x1a\x31.metalstack.admin.v2.MachineServiceIssuesResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cMachineProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/machine.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/machine.proto\x1a(metalstack/api/v2/predefined_rules.proto\"8\n\x18MachineServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"Q\n\x19MachineServiceGetResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"R\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"T\n\x1aMachineServiceListResponse\x12\x36\n\x08machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x08machines\";\n\x1bMachineServiceDeleteRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"T\n\x1cMachineServiceDeleteResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"\x89\x01\n\x1fMachineServiceBMCCommandRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12H\n\x07\x63ommand\x18\x02 \x01(\x0e\x32$.metalstack.api.v2.MachineBMCCommandB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07\x63ommand\";\n MachineServiceBMCCommandResponse\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\";\n\x1bMachineServiceGetBMCRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"e\n\x1cMachineServiceGetBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x01(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"U\n\x1cMachineServiceListBMCRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"f\n\x1dMachineServiceListBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x03(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"h\n$MachineServiceConsolePasswordRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\"\n\x06reason\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\n\x18\x80\x04R\x06reason\"a\n%MachineServiceConsolePasswordResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1a\n\x08password\x18\x02 \x01(\tR\x08password\"\xad\x01\n\x1dMachineServiceSetStateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12?\n\x05state\x18\x02 \x01(\x0e\x32\x1f.metalstack.api.v2.MachineStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x05state\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\"V\n\x1eMachineServiceSetStateResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"Z\n\x1bMachineServiceIssuesRequest\x12;\n\x05query\x18\x01 \x01(\x0b\x32%.metalstack.api.v2.MachineIssuesQueryR\x05query\"X\n\x1cMachineServiceIssuesResponse\x12\x38\n\x06issues\x18\x01 \x03(\x0b\x32 .metalstack.api.v2.MachineIssuesR\x06issues\"k\n!MachineServiceHousekeepingRequest\x12\x46\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionR\x06\x61\x63tion\"\x9e\x01\n\"MachineServiceHousekeepingResponse\x12\x46\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionR\x06\x61\x63tion\x12\x30\n\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n\x19MachineHousekeepingAction\x12+\n\'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n)MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\nliveliness\x12\x38\n%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x90\n\n\x0eMachineService\x12p\n\x03Get\x12-.metalstack.admin.v2.MachineServiceGetRequest\x1a..metalstack.admin.v2.MachineServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12s\n\x04List\x12..metalstack.admin.v2.MachineServiceListRequest\x1a/.metalstack.admin.v2.MachineServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.MachineServiceDeleteRequest\x1a\x31.metalstack.admin.v2.MachineServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x84\x01\n\nBMCCommand\x12\x34.metalstack.admin.v2.MachineServiceBMCCommandRequest\x1a\x35.metalstack.admin.v2.MachineServiceBMCCommandResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06GetBMC\x12\x30.metalstack.admin.v2.MachineServiceGetBMCRequest\x1a\x31.metalstack.admin.v2.MachineServiceGetBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12|\n\x07ListBMC\x12\x31.metalstack.admin.v2.MachineServiceListBMCRequest\x1a\x32.metalstack.admin.v2.MachineServiceListBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12\x94\x01\n\x0f\x43onsolePassword\x12\x39.metalstack.admin.v2.MachineServiceConsolePasswordRequest\x1a:.metalstack.admin.v2.MachineServiceConsolePasswordResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n\x08SetState\x12\x32.metalstack.admin.v2.MachineServiceSetStateRequest\x1a\x33.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06Issues\x12\x30.metalstack.admin.v2.MachineServiceIssuesRequest\x1a\x31.metalstack.admin.v2.MachineServiceIssuesResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12\x8a\x01\n\x0cHousekeeping\x12\x36.metalstack.admin.v2.MachineServiceHousekeepingRequest\x1a\x37.metalstack.admin.v2.MachineServiceHousekeepingResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cMachineProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -36,6 +36,12 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\014MachineProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2' + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._loaded_options = None + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._serialized_options = b'\202\262\031\rvpn-connected' + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._loaded_options = None + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._serialized_options = b'\202\262\031\nliveliness' + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._loaded_options = None + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._serialized_options = b'\202\262\031\tresurrect' _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._loaded_options = None _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001' _globals['_MACHINESERVICEDELETEREQUEST'].fields_by_name['uuid']._loaded_options = None @@ -76,6 +82,10 @@ _globals['_MACHINESERVICE'].methods_by_name['SetState']._serialized_options = b'\322\363\030\001\001\340\363\030\001' _globals['_MACHINESERVICE'].methods_by_name['Issues']._loaded_options = None _globals['_MACHINESERVICE'].methods_by_name['Issues']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002' + _globals['_MACHINESERVICE'].methods_by_name['Housekeeping']._loaded_options = None + _globals['_MACHINESERVICE'].methods_by_name['Housekeeping']._serialized_options = b'\322\363\030\001\001\340\363\030\001' + _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_start=2130 + _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_end=2386 _globals['_MACHINESERVICEGETREQUEST']._serialized_start=194 _globals['_MACHINESERVICEGETREQUEST']._serialized_end=250 _globals['_MACHINESERVICEGETRESPONSE']._serialized_start=252 @@ -112,6 +122,10 @@ _globals['_MACHINESERVICEISSUESREQUEST']._serialized_end=1767 _globals['_MACHINESERVICEISSUESRESPONSE']._serialized_start=1769 _globals['_MACHINESERVICEISSUESRESPONSE']._serialized_end=1857 - _globals['_MACHINESERVICE']._serialized_start=1860 - _globals['_MACHINESERVICE']._serialized_end=3015 + _globals['_MACHINESERVICEHOUSEKEEPINGREQUEST']._serialized_start=1859 + _globals['_MACHINESERVICEHOUSEKEEPINGREQUEST']._serialized_end=1966 + _globals['_MACHINESERVICEHOUSEKEEPINGRESPONSE']._serialized_start=1969 + _globals['_MACHINESERVICEHOUSEKEEPINGRESPONSE']._serialized_end=2127 + _globals['_MACHINESERVICE']._serialized_start=2389 + _globals['_MACHINESERVICE']._serialized_end=3685 # @@protoc_insertion_point(module_scope) diff --git a/python/metalstack/admin/v2/machine_pb2.pyi b/python/metalstack/admin/v2/machine_pb2.pyi index a5e0f3d5..c23ce5ba 100644 --- a/python/metalstack/admin/v2/machine_pb2.pyi +++ b/python/metalstack/admin/v2/machine_pb2.pyi @@ -3,6 +3,7 @@ from metalstack.api.v2 import common_pb2 as _common_pb2 from metalstack.api.v2 import machine_pb2 as _machine_pb2 from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2 from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from collections.abc import Iterable as _Iterable, Mapping as _Mapping @@ -10,6 +11,17 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor +class MachineHousekeepingAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: _ClassVar[MachineHousekeepingAction] + MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: _ClassVar[MachineHousekeepingAction] + MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: _ClassVar[MachineHousekeepingAction] + MACHINE_HOUSEKEEPING_ACTION_RESURRECT: _ClassVar[MachineHousekeepingAction] +MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: MachineHousekeepingAction +MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: MachineHousekeepingAction +MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: MachineHousekeepingAction +MACHINE_HOUSEKEEPING_ACTION_RESURRECT: MachineHousekeepingAction + class MachineServiceGetRequest(_message.Message): __slots__ = ("uuid",) UUID_FIELD_NUMBER: _ClassVar[int] @@ -127,3 +139,17 @@ class MachineServiceIssuesResponse(_message.Message): ISSUES_FIELD_NUMBER: _ClassVar[int] issues: _containers.RepeatedCompositeFieldContainer[_machine_pb2.MachineIssues] def __init__(self, issues: _Optional[_Iterable[_Union[_machine_pb2.MachineIssues, _Mapping]]] = ...) -> None: ... + +class MachineServiceHousekeepingRequest(_message.Message): + __slots__ = ("action",) + ACTION_FIELD_NUMBER: _ClassVar[int] + action: MachineHousekeepingAction + def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ...) -> None: ... + +class MachineServiceHousekeepingResponse(_message.Message): + __slots__ = ("action", "modified_machine_ids") + ACTION_FIELD_NUMBER: _ClassVar[int] + MODIFIED_MACHINE_IDS_FIELD_NUMBER: _ClassVar[int] + action: MachineHousekeepingAction + modified_machine_ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ..., modified_machine_ids: _Optional[_Iterable[str]] = ...) -> None: ... From c057a14048cbae70f842678ff0b4e772000e2a36 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Thu, 5 Nov 2026 09:30:43 +0100 Subject: [PATCH 3/4] Dedicated service --- doc/index.html | 259 +++++++++------ go.mod | 4 +- go.sum | 8 +- go/client/client.go | 11 + .../v2/adminv2connect/housekeeping.connect.go | 116 +++++++ .../v2/adminv2connect/machine.connect.go | 35 -- go/metalstack/admin/v2/housekeeping.pb.go | 258 +++++++++++++++ go/metalstack/admin/v2/machine.pb.go | 310 ++++-------------- go/permissions/servicepermissions.go | 9 +- js/client.d.ts | 2 + js/client.js | 7 + js/client.ts | 13 + js/metalstack/admin/v2/housekeeping_pb.d.ts | 100 ++++++ js/metalstack/admin/v2/housekeeping_pb.js | 62 ++++ js/metalstack/admin/v2/housekeeping_pb.ts | 125 +++++++ js/metalstack/admin/v2/machine_pb.d.ts | 89 +---- js/metalstack/admin/v2/machine_pb.js | 50 +-- js/metalstack/admin/v2/machine_pb.ts | 106 +----- proto/metalstack/admin/v2/housekeeping.proto | 41 +++ proto/metalstack/admin/v2/machine.proto | 31 -- .../admin/v2/housekeeping_connect.py | 131 ++++++++ .../metalstack/admin/v2/housekeeping_pb2.py | 55 ++++ .../metalstack/admin/v2/housekeeping_pb2.pyi | 35 ++ python/metalstack/admin/v2/machine_connect.py | 65 ---- python/metalstack/admin/v2/machine_pb2.py | 20 +- python/metalstack/admin/v2/machine_pb2.pyi | 26 -- python/metalstack/client/client.py | 4 + 27 files changed, 1195 insertions(+), 777 deletions(-) create mode 100644 go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go create mode 100644 go/metalstack/admin/v2/housekeeping.pb.go create mode 100644 js/metalstack/admin/v2/housekeeping_pb.d.ts create mode 100644 js/metalstack/admin/v2/housekeeping_pb.js create mode 100644 js/metalstack/admin/v2/housekeeping_pb.ts create mode 100644 proto/metalstack/admin/v2/housekeeping.proto create mode 100644 python/metalstack/admin/v2/housekeeping_connect.py create mode 100644 python/metalstack/admin/v2/housekeeping_pb2.py create mode 100644 python/metalstack/admin/v2/housekeeping_pb2.pyi diff --git a/doc/index.html b/doc/index.html index 42b2450d..03055bcc 100644 --- a/doc/index.html +++ b/doc/index.html @@ -836,6 +836,33 @@

    Table of Contents

  • +
  • + metalstack/admin/v2/housekeeping.proto + +
  • + +
  • metalstack/api/v2/image.proto
      @@ -1528,14 +1555,6 @@

      Table of Contents

      MMachineServiceGetResponse -
    • - MMachineServiceHousekeepingRequest -
    • - -
    • - MMachineServiceHousekeepingResponse -
    • -
    • MMachineServiceIssuesRequest
    • @@ -1569,10 +1588,6 @@

      Table of Contents

      -
    • - EMachineHousekeepingAction -
    • -
    • @@ -7088,6 +7103,129 @@

      FilesystemService

      +
      +

      metalstack/admin/v2/housekeeping.proto

      Top +
      +

      + + +

      HousekeepingServiceMachineRequest

      +

      HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request.

      + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      actionMachineHousekeepingAction

      Housekeeping Action to perform.

      + + + + + +

      HousekeepingServiceMachineResponse

      +

      HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request.

      + + + + + + + + + + + + + + + + + + + + + + + +
      FieldTypeLabelDescription
      actionMachineHousekeepingAction

      Housekeeping Action which was performed.

      modified_machine_idsstringrepeated

      Modified Machine IDs modified during this housekeeping action.

      + + + + + + + +

      MachineHousekeepingAction

      +

      HousekeepingAction defines which housekeeping action should be triggered.

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      NameNumberDescription
      MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED0

      MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined.

      MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED1

      MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not.

      MACHINE_HOUSEKEEPING_ACTION_LIVELINESS2

      MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines.

      MACHINE_HOUSEKEEPING_ACTION_RESURRECT3

      MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines.

      + + + + + +

      HousekeepingService

      +

      HousekeepingService provides housekeeping operations.

      + + + + + + + + + + + + + + +
      Method NameRequest TypeResponse TypeDescription
      MachineHousekeepingServiceMachineRequestHousekeepingServiceMachineResponse

      Machine housekeeping

      + + + +

      metalstack/api/v2/image.proto

      Top
      @@ -13550,61 +13688,6 @@

      MachineServiceGetResponse -

      MachineServiceHousekeepingRequest

      -

      MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request.

      - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      actionMachineHousekeepingAction

      Housekeeping Action to perform.

      - - - - - -

      MachineServiceHousekeepingResponse

      -

      MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request.

      - - - - - - - - - - - - - - - - - - - - - - - -
      FieldTypeLabelDescription
      actionMachineHousekeepingAction

      Housekeeping Action which was performed.

      modified_machine_idsstringrepeated

      Modified Machine IDs modified during this housekeeping action.

      - - - - -

      MachineServiceIssuesRequest

      MachineServiceIssuesRequest is the request payload for a machine issues request.

      @@ -13814,41 +13897,6 @@

      MachineServiceSetSta -

      MachineHousekeepingAction

      -

      HousekeepingAction defines which housekeeping action should be triggered.

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      NameNumberDescription
      MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED0

      MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined.

      MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED1

      MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not.

      MACHINE_HOUSEKEEPING_ACTION_LIVELINESS2

      MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines.

      MACHINE_HOUSEKEEPING_ACTION_RESURRECT3

      MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines.

      - @@ -13924,13 +13972,6 @@

      MachineService

      Issues allows to query issues of machines.

      - - Housekeeping - MachineServiceHousekeepingRequest - MachineServiceHousekeepingResponse -

      Housekeeping

      - - diff --git a/go.mod b/go.mod index ad968943..13acdb72 100644 --- a/go.mod +++ b/go.mod @@ -27,6 +27,6 @@ require ( golang.org/x/exp v0.0.0-20261014143641-f0251eb4aa3e // indirect golang.org/x/sys v0.49.0 // indirect golang.org/x/text v0.43.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20261026165753-2ffab32bce7e // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20261026165753-2ffab32bce7e // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20261104224025-d1e00e9f33ab // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20261104224025-d1e00e9f33ab // indirect ) diff --git a/go.sum b/go.sum index 64b6ed27..50b0dc35 100644 --- a/go.sum +++ b/go.sum @@ -44,10 +44,10 @@ golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= -google.golang.org/genproto/googleapis/api v0.0.0-20261026165753-2ffab32bce7e h1:e789sLZjeTdc02ZCQGTSzHOu0fR73+dwPQVKUp67Z88= -google.golang.org/genproto/googleapis/api v0.0.0-20261026165753-2ffab32bce7e/go.mod h1:vHV3wJM9WZyfV7GyB+OQGq5dWVrFwCDxapPK4WlRD88= -google.golang.org/genproto/googleapis/rpc v0.0.0-20261026165753-2ffab32bce7e h1:w3fy/G8OrJHYexn+u5y7hFyc8YRRIr7DCevtIOwAcGY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20261026165753-2ffab32bce7e/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= +google.golang.org/genproto/googleapis/api v0.0.0-20261104224025-d1e00e9f33ab h1:n6IDWZ1RzI/NberLoLLFNrjl1H45uhc4+WYsUf5lPPc= +google.golang.org/genproto/googleapis/api v0.0.0-20261104224025-d1e00e9f33ab/go.mod h1:vHV3wJM9WZyfV7GyB+OQGq5dWVrFwCDxapPK4WlRD88= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261104224025-d1e00e9f33ab h1:8sYjjefPfQ+FZEh1ZwBAqK/NifJVhOxut8nRh3SJzZM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20261104224025-d1e00e9f33ab/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= google.golang.org/grpc v1.85.0 h1:BPBCfuVRQ1qvBhKDOq9uvQllMvO59rKsYhXpp7Dd8vw= google.golang.org/grpc v1.85.0/go.mod h1:0rQrOD58yjal/0EaVbGBANindixsCZNQPDV3VKtaKuQ= google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= diff --git a/go/client/client.go b/go/client/client.go index 2f8fed2b..73e344c2 100755 --- a/go/client/client.go +++ b/go/client/client.go @@ -29,6 +29,7 @@ type ( Audit() adminv2connect.AuditServiceClient Component() adminv2connect.ComponentServiceClient Filesystem() adminv2connect.FilesystemServiceClient + Housekeeping() adminv2connect.HousekeepingServiceClient Image() adminv2connect.ImageServiceClient IP() adminv2connect.IPServiceClient Machine() adminv2connect.MachineServiceClient @@ -49,6 +50,7 @@ type ( auditservice adminv2connect.AuditServiceClient componentservice adminv2connect.ComponentServiceClient filesystemservice adminv2connect.FilesystemServiceClient + housekeepingservice adminv2connect.HousekeepingServiceClient imageservice adminv2connect.ImageServiceClient ipservice adminv2connect.IPServiceClient machineservice adminv2connect.MachineServiceClient @@ -146,6 +148,12 @@ func (c *client) Adminv2() Adminv2 { connect.WithInterceptors(c.interceptors...), compress.WithAll(compress.LevelBalanced), ), + housekeepingservice: adminv2connect.NewHousekeepingServiceClient( + c.config.HttpClient(), + c.config.BaseURL, + connect.WithInterceptors(c.interceptors...), + compress.WithAll(compress.LevelBalanced), + ), imageservice: adminv2connect.NewImageServiceClient( c.config.HttpClient(), c.config.BaseURL, @@ -243,6 +251,9 @@ func (c *adminv2) Component() adminv2connect.ComponentServiceClient { func (c *adminv2) Filesystem() adminv2connect.FilesystemServiceClient { return c.filesystemservice } +func (c *adminv2) Housekeeping() adminv2connect.HousekeepingServiceClient { + return c.housekeepingservice +} func (c *adminv2) Image() adminv2connect.ImageServiceClient { return c.imageservice } diff --git a/go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go b/go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go new file mode 100644 index 00000000..ae7ef685 --- /dev/null +++ b/go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go @@ -0,0 +1,116 @@ +// Code generated by protoc-gen-connect-go. DO NOT EDIT. +// +// Source: metalstack/admin/v2/housekeeping.proto + +package adminv2connect + +import ( + connect "connectrpc.com/connect" + context "context" + errors "errors" + v2 "github.com/metal-stack/api/go/metalstack/admin/v2" + http "net/http" + strings "strings" +) + +// This is a compile-time assertion to ensure that this generated file and the connect package are +// compatible. If you get a compiler error that this constant is not defined, this code was +// generated with a version of connect newer than the one compiled into your binary. You can fix the +// problem by either regenerating this code with an older version of connect or updating the connect +// version compiled into your binary. +const _ = connect.IsAtLeastVersion1_13_0 + +const ( + // HousekeepingServiceName is the fully-qualified name of the HousekeepingService service. + HousekeepingServiceName = "metalstack.admin.v2.HousekeepingService" +) + +// These constants are the fully-qualified names of the RPCs defined in this package. They're +// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. +// +// Note that these are different from the fully-qualified method names used by +// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to +// reflection-formatted method names, remove the leading slash and convert the remaining slash to a +// period. +const ( + // HousekeepingServiceMachineProcedure is the fully-qualified name of the HousekeepingService's + // Machine RPC. + HousekeepingServiceMachineProcedure = "/metalstack.admin.v2.HousekeepingService/Machine" +) + +// HousekeepingServiceClient is a client for the metalstack.admin.v2.HousekeepingService service. +type HousekeepingServiceClient interface { + // Machine housekeeping + Machine(context.Context, *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) +} + +// NewHousekeepingServiceClient constructs a client for the metalstack.admin.v2.HousekeepingService +// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for +// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply +// the connect.WithGRPC() or connect.WithGRPCWeb() options. +// +// The URL supplied here should be the base URL for the Connect or gRPC server (for example, +// http://api.acme.com or https://acme.com/grpc). +func NewHousekeepingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) HousekeepingServiceClient { + baseURL = strings.TrimRight(baseURL, "/") + housekeepingServiceMethods := v2.File_metalstack_admin_v2_housekeeping_proto.Services().ByName("HousekeepingService").Methods() + return &housekeepingServiceClient{ + machine: connect.NewClient[v2.HousekeepingServiceMachineRequest, v2.HousekeepingServiceMachineResponse]( + httpClient, + baseURL+HousekeepingServiceMachineProcedure, + connect.WithSchema(housekeepingServiceMethods.ByName("Machine")), + connect.WithClientOptions(opts...), + ), + } +} + +// housekeepingServiceClient implements HousekeepingServiceClient. +type housekeepingServiceClient struct { + machine *connect.Client[v2.HousekeepingServiceMachineRequest, v2.HousekeepingServiceMachineResponse] +} + +// Machine calls metalstack.admin.v2.HousekeepingService.Machine. +func (c *housekeepingServiceClient) Machine(ctx context.Context, req *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) { + response, err := c.machine.CallUnary(ctx, connect.NewRequest(req)) + if response != nil { + return response.Msg, err + } + return nil, err +} + +// HousekeepingServiceHandler is an implementation of the metalstack.admin.v2.HousekeepingService +// service. +type HousekeepingServiceHandler interface { + // Machine housekeeping + Machine(context.Context, *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) +} + +// NewHousekeepingServiceHandler builds an HTTP handler from the service implementation. It returns +// the path on which to mount the handler and the handler itself. +// +// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf +// and JSON codecs. They also support gzip compression. +func NewHousekeepingServiceHandler(svc HousekeepingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + housekeepingServiceMethods := v2.File_metalstack_admin_v2_housekeeping_proto.Services().ByName("HousekeepingService").Methods() + housekeepingServiceMachineHandler := connect.NewUnaryHandlerSimple( + HousekeepingServiceMachineProcedure, + svc.Machine, + connect.WithSchema(housekeepingServiceMethods.ByName("Machine")), + connect.WithHandlerOptions(opts...), + ) + return "/metalstack.admin.v2.HousekeepingService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + switch r.URL.Path { + case HousekeepingServiceMachineProcedure: + housekeepingServiceMachineHandler.ServeHTTP(w, r) + default: + http.NotFound(w, r) + } + }) +} + +// UnimplementedHousekeepingServiceHandler returns CodeUnimplemented from all methods. +type UnimplementedHousekeepingServiceHandler struct{} + +func (UnimplementedHousekeepingServiceHandler) Machine(context.Context, *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.HousekeepingService.Machine is not implemented")) +} diff --git a/go/metalstack/admin/v2/adminv2connect/machine.connect.go b/go/metalstack/admin/v2/adminv2connect/machine.connect.go index b31be02e..bcccad43 100644 --- a/go/metalstack/admin/v2/adminv2connect/machine.connect.go +++ b/go/metalstack/admin/v2/adminv2connect/machine.connect.go @@ -53,9 +53,6 @@ const ( MachineServiceSetStateProcedure = "/metalstack.admin.v2.MachineService/SetState" // MachineServiceIssuesProcedure is the fully-qualified name of the MachineService's Issues RPC. MachineServiceIssuesProcedure = "/metalstack.admin.v2.MachineService/Issues" - // MachineServiceHousekeepingProcedure is the fully-qualified name of the MachineService's - // Housekeeping RPC. - MachineServiceHousekeepingProcedure = "/metalstack.admin.v2.MachineService/Housekeeping" ) // MachineServiceClient is a client for the metalstack.admin.v2.MachineService service. @@ -78,8 +75,6 @@ type MachineServiceClient interface { SetState(context.Context, *v2.MachineServiceSetStateRequest) (*v2.MachineServiceSetStateResponse, error) // Issues allows to query issues of machines. Issues(context.Context, *v2.MachineServiceIssuesRequest) (*v2.MachineServiceIssuesResponse, error) - // Housekeeping - Housekeeping(context.Context, *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) } // NewMachineServiceClient constructs a client for the metalstack.admin.v2.MachineService service. @@ -147,12 +142,6 @@ func NewMachineServiceClient(httpClient connect.HTTPClient, baseURL string, opts connect.WithSchema(machineServiceMethods.ByName("Issues")), connect.WithClientOptions(opts...), ), - housekeeping: connect.NewClient[v2.MachineServiceHousekeepingRequest, v2.MachineServiceHousekeepingResponse]( - httpClient, - baseURL+MachineServiceHousekeepingProcedure, - connect.WithSchema(machineServiceMethods.ByName("Housekeeping")), - connect.WithClientOptions(opts...), - ), } } @@ -167,7 +156,6 @@ type machineServiceClient struct { consolePassword *connect.Client[v2.MachineServiceConsolePasswordRequest, v2.MachineServiceConsolePasswordResponse] setState *connect.Client[v2.MachineServiceSetStateRequest, v2.MachineServiceSetStateResponse] issues *connect.Client[v2.MachineServiceIssuesRequest, v2.MachineServiceIssuesResponse] - housekeeping *connect.Client[v2.MachineServiceHousekeepingRequest, v2.MachineServiceHousekeepingResponse] } // Get calls metalstack.admin.v2.MachineService.Get. @@ -251,15 +239,6 @@ func (c *machineServiceClient) Issues(ctx context.Context, req *v2.MachineServic return nil, err } -// Housekeeping calls metalstack.admin.v2.MachineService.Housekeeping. -func (c *machineServiceClient) Housekeeping(ctx context.Context, req *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) { - response, err := c.housekeeping.CallUnary(ctx, connect.NewRequest(req)) - if response != nil { - return response.Msg, err - } - return nil, err -} - // MachineServiceHandler is an implementation of the metalstack.admin.v2.MachineService service. type MachineServiceHandler interface { // Returns the machine with the specified UUID. @@ -280,8 +259,6 @@ type MachineServiceHandler interface { SetState(context.Context, *v2.MachineServiceSetStateRequest) (*v2.MachineServiceSetStateResponse, error) // Issues allows to query issues of machines. Issues(context.Context, *v2.MachineServiceIssuesRequest) (*v2.MachineServiceIssuesResponse, error) - // Housekeeping - Housekeeping(context.Context, *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) } // NewMachineServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -345,12 +322,6 @@ func NewMachineServiceHandler(svc MachineServiceHandler, opts ...connect.Handler connect.WithSchema(machineServiceMethods.ByName("Issues")), connect.WithHandlerOptions(opts...), ) - machineServiceHousekeepingHandler := connect.NewUnaryHandlerSimple( - MachineServiceHousekeepingProcedure, - svc.Housekeeping, - connect.WithSchema(machineServiceMethods.ByName("Housekeeping")), - connect.WithHandlerOptions(opts...), - ) return "/metalstack.admin.v2.MachineService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case MachineServiceGetProcedure: @@ -371,8 +342,6 @@ func NewMachineServiceHandler(svc MachineServiceHandler, opts ...connect.Handler machineServiceSetStateHandler.ServeHTTP(w, r) case MachineServiceIssuesProcedure: machineServiceIssuesHandler.ServeHTTP(w, r) - case MachineServiceHousekeepingProcedure: - machineServiceHousekeepingHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -417,7 +386,3 @@ func (UnimplementedMachineServiceHandler) SetState(context.Context, *v2.MachineS func (UnimplementedMachineServiceHandler) Issues(context.Context, *v2.MachineServiceIssuesRequest) (*v2.MachineServiceIssuesResponse, error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.MachineService.Issues is not implemented")) } - -func (UnimplementedMachineServiceHandler) Housekeeping(context.Context, *v2.MachineServiceHousekeepingRequest) (*v2.MachineServiceHousekeepingResponse, error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.MachineService.Housekeeping is not implemented")) -} diff --git a/go/metalstack/admin/v2/housekeeping.pb.go b/go/metalstack/admin/v2/housekeeping.pb.go new file mode 100644 index 00000000..bb1892da --- /dev/null +++ b/go/metalstack/admin/v2/housekeeping.pb.go @@ -0,0 +1,258 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.12 +// protoc (unknown) +// source: metalstack/admin/v2/housekeeping.proto + +package adminv2 + +import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" + _ "github.com/metal-stack/api/go/metalstack/api/v2" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// HousekeepingAction defines which housekeeping action should be triggered. +type MachineHousekeepingAction int32 + +const ( + // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED MachineHousekeepingAction = 0 + // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED MachineHousekeepingAction = 1 + // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_LIVELINESS MachineHousekeepingAction = 2 + // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_RESURRECT MachineHousekeepingAction = 3 +) + +// Enum value maps for MachineHousekeepingAction. +var ( + MachineHousekeepingAction_name = map[int32]string{ + 0: "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED", + 1: "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED", + 2: "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS", + 3: "MACHINE_HOUSEKEEPING_ACTION_RESURRECT", + } + MachineHousekeepingAction_value = map[string]int32{ + "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED": 0, + "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED": 1, + "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS": 2, + "MACHINE_HOUSEKEEPING_ACTION_RESURRECT": 3, + } +) + +func (x MachineHousekeepingAction) Enum() *MachineHousekeepingAction { + p := new(MachineHousekeepingAction) + *p = x + return p +} + +func (x MachineHousekeepingAction) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MachineHousekeepingAction) Descriptor() protoreflect.EnumDescriptor { + return file_metalstack_admin_v2_housekeeping_proto_enumTypes[0].Descriptor() +} + +func (MachineHousekeepingAction) Type() protoreflect.EnumType { + return &file_metalstack_admin_v2_housekeeping_proto_enumTypes[0] +} + +func (x MachineHousekeepingAction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MachineHousekeepingAction.Descriptor instead. +func (MachineHousekeepingAction) EnumDescriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{0} +} + +// HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request. +type HousekeepingServiceMachineRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Housekeeping Action to perform. + Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HousekeepingServiceMachineRequest) Reset() { + *x = HousekeepingServiceMachineRequest{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HousekeepingServiceMachineRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HousekeepingServiceMachineRequest) ProtoMessage() {} + +func (x *HousekeepingServiceMachineRequest) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HousekeepingServiceMachineRequest.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineRequest) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{0} +} + +func (x *HousekeepingServiceMachineRequest) GetAction() MachineHousekeepingAction { + if x != nil { + return x.Action + } + return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED +} + +// HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. +type HousekeepingServiceMachineResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Housekeeping Action which was performed. + Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` + // Modified Machine IDs modified during this housekeeping action. + ModifiedMachineIds []string `protobuf:"bytes,2,rep,name=modified_machine_ids,json=modifiedMachineIds,proto3" json:"modified_machine_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HousekeepingServiceMachineResponse) Reset() { + *x = HousekeepingServiceMachineResponse{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HousekeepingServiceMachineResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HousekeepingServiceMachineResponse) ProtoMessage() {} + +func (x *HousekeepingServiceMachineResponse) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HousekeepingServiceMachineResponse.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineResponse) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{1} +} + +func (x *HousekeepingServiceMachineResponse) GetAction() MachineHousekeepingAction { + if x != nil { + return x.Action + } + return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED +} + +func (x *HousekeepingServiceMachineResponse) GetModifiedMachineIds() []string { + if x != nil { + return x.ModifiedMachineIds + } + return nil +} + +var File_metalstack_admin_v2_housekeeping_proto protoreflect.FileDescriptor + +const file_metalstack_admin_v2_housekeeping_proto_rawDesc = "" + + "\n" + + "&metalstack/admin/v2/housekeeping.proto\x12\x13metalstack.admin.v2\x1a\x1bbuf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\"u\n" + + "!HousekeepingServiceMachineRequest\x12P\n" + + "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionB\b\xbaH\x05\x82\x01\x02\x10\x01R\x06action\"\x9e\x01\n" + + "\"HousekeepingServiceMachineResponse\x12F\n" + + "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionR\x06action\x120\n" + + "\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n" + + "\x19MachineHousekeepingAction\x12+\n" + + "'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n" + + ")MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n" + + "&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\n" + + "liveliness\x128\n" + + "%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x9d\x01\n" + + "\x13HousekeepingService\x12\x85\x01\n" + + "\aMachine\x126.metalstack.admin.v2.HousekeepingServiceMachineRequest\x1a7.metalstack.admin.v2.HousekeepingServiceMachineResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01B\xd5\x01\n" + + "\x17com.metalstack.admin.v2B\x11HousekeepingProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3" + +var ( + file_metalstack_admin_v2_housekeeping_proto_rawDescOnce sync.Once + file_metalstack_admin_v2_housekeeping_proto_rawDescData []byte +) + +func file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP() []byte { + file_metalstack_admin_v2_housekeeping_proto_rawDescOnce.Do(func() { + file_metalstack_admin_v2_housekeeping_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_metalstack_admin_v2_housekeeping_proto_rawDesc), len(file_metalstack_admin_v2_housekeeping_proto_rawDesc))) + }) + return file_metalstack_admin_v2_housekeeping_proto_rawDescData +} + +var file_metalstack_admin_v2_housekeeping_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_metalstack_admin_v2_housekeeping_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_metalstack_admin_v2_housekeeping_proto_goTypes = []any{ + (MachineHousekeepingAction)(0), // 0: metalstack.admin.v2.MachineHousekeepingAction + (*HousekeepingServiceMachineRequest)(nil), // 1: metalstack.admin.v2.HousekeepingServiceMachineRequest + (*HousekeepingServiceMachineResponse)(nil), // 2: metalstack.admin.v2.HousekeepingServiceMachineResponse +} +var file_metalstack_admin_v2_housekeeping_proto_depIdxs = []int32{ + 0, // 0: metalstack.admin.v2.HousekeepingServiceMachineRequest.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction + 0, // 1: metalstack.admin.v2.HousekeepingServiceMachineResponse.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction + 1, // 2: metalstack.admin.v2.HousekeepingService.Machine:input_type -> metalstack.admin.v2.HousekeepingServiceMachineRequest + 2, // 3: metalstack.admin.v2.HousekeepingService.Machine:output_type -> metalstack.admin.v2.HousekeepingServiceMachineResponse + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_metalstack_admin_v2_housekeeping_proto_init() } +func file_metalstack_admin_v2_housekeeping_proto_init() { + if File_metalstack_admin_v2_housekeeping_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_metalstack_admin_v2_housekeeping_proto_rawDesc), len(file_metalstack_admin_v2_housekeeping_proto_rawDesc)), + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_metalstack_admin_v2_housekeeping_proto_goTypes, + DependencyIndexes: file_metalstack_admin_v2_housekeeping_proto_depIdxs, + EnumInfos: file_metalstack_admin_v2_housekeeping_proto_enumTypes, + MessageInfos: file_metalstack_admin_v2_housekeeping_proto_msgTypes, + }.Build() + File_metalstack_admin_v2_housekeeping_proto = out.File + file_metalstack_admin_v2_housekeeping_proto_goTypes = nil + file_metalstack_admin_v2_housekeeping_proto_depIdxs = nil +} diff --git a/go/metalstack/admin/v2/machine.pb.go b/go/metalstack/admin/v2/machine.pb.go index 29b86ced..fd1e08ac 100644 --- a/go/metalstack/admin/v2/machine.pb.go +++ b/go/metalstack/admin/v2/machine.pb.go @@ -23,63 +23,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// HousekeepingAction defines which housekeeping action should be triggered. -type MachineHousekeepingAction int32 - -const ( - // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED MachineHousekeepingAction = 0 - // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED MachineHousekeepingAction = 1 - // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_LIVELINESS MachineHousekeepingAction = 2 - // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_RESURRECT MachineHousekeepingAction = 3 -) - -// Enum value maps for MachineHousekeepingAction. -var ( - MachineHousekeepingAction_name = map[int32]string{ - 0: "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED", - 1: "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED", - 2: "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS", - 3: "MACHINE_HOUSEKEEPING_ACTION_RESURRECT", - } - MachineHousekeepingAction_value = map[string]int32{ - "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED": 0, - "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED": 1, - "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS": 2, - "MACHINE_HOUSEKEEPING_ACTION_RESURRECT": 3, - } -) - -func (x MachineHousekeepingAction) Enum() *MachineHousekeepingAction { - p := new(MachineHousekeepingAction) - *p = x - return p -} - -func (x MachineHousekeepingAction) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MachineHousekeepingAction) Descriptor() protoreflect.EnumDescriptor { - return file_metalstack_admin_v2_machine_proto_enumTypes[0].Descriptor() -} - -func (MachineHousekeepingAction) Type() protoreflect.EnumType { - return &file_metalstack_admin_v2_machine_proto_enumTypes[0] -} - -func (x MachineHousekeepingAction) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MachineHousekeepingAction.Descriptor instead. -func (MachineHousekeepingAction) EnumDescriptor() ([]byte, []int) { - return file_metalstack_admin_v2_machine_proto_rawDescGZIP(), []int{0} -} - // MachineServiceGetRequest is the request payload for a machine get request. type MachineServiceGetRequest struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -955,107 +898,6 @@ func (x *MachineServiceIssuesResponse) GetIssues() []*v2.MachineIssues { return nil } -// MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. -type MachineServiceHousekeepingRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Housekeeping Action to perform. - Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MachineServiceHousekeepingRequest) Reset() { - *x = MachineServiceHousekeepingRequest{} - mi := &file_metalstack_admin_v2_machine_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MachineServiceHousekeepingRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MachineServiceHousekeepingRequest) ProtoMessage() {} - -func (x *MachineServiceHousekeepingRequest) ProtoReflect() protoreflect.Message { - mi := &file_metalstack_admin_v2_machine_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MachineServiceHousekeepingRequest.ProtoReflect.Descriptor instead. -func (*MachineServiceHousekeepingRequest) Descriptor() ([]byte, []int) { - return file_metalstack_admin_v2_machine_proto_rawDescGZIP(), []int{18} -} - -func (x *MachineServiceHousekeepingRequest) GetAction() MachineHousekeepingAction { - if x != nil { - return x.Action - } - return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED -} - -// MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. -type MachineServiceHousekeepingResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Housekeeping Action which was performed. - Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` - // Modified Machine IDs modified during this housekeeping action. - ModifiedMachineIds []string `protobuf:"bytes,2,rep,name=modified_machine_ids,json=modifiedMachineIds,proto3" json:"modified_machine_ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *MachineServiceHousekeepingResponse) Reset() { - *x = MachineServiceHousekeepingResponse{} - mi := &file_metalstack_admin_v2_machine_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *MachineServiceHousekeepingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MachineServiceHousekeepingResponse) ProtoMessage() {} - -func (x *MachineServiceHousekeepingResponse) ProtoReflect() protoreflect.Message { - mi := &file_metalstack_admin_v2_machine_proto_msgTypes[19] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MachineServiceHousekeepingResponse.ProtoReflect.Descriptor instead. -func (*MachineServiceHousekeepingResponse) Descriptor() ([]byte, []int) { - return file_metalstack_admin_v2_machine_proto_rawDescGZIP(), []int{19} -} - -func (x *MachineServiceHousekeepingResponse) GetAction() MachineHousekeepingAction { - if x != nil { - return x.Action - } - return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED -} - -func (x *MachineServiceHousekeepingResponse) GetModifiedMachineIds() []string { - if x != nil { - return x.ModifiedMachineIds - } - return nil -} - var File_metalstack_admin_v2_machine_proto protoreflect.FileDescriptor const file_metalstack_admin_v2_machine_proto_rawDesc = "" + @@ -1105,19 +947,7 @@ const file_metalstack_admin_v2_machine_proto_rawDesc = "" + "\x1bMachineServiceIssuesRequest\x12;\n" + "\x05query\x18\x01 \x01(\v2%.metalstack.api.v2.MachineIssuesQueryR\x05query\"X\n" + "\x1cMachineServiceIssuesResponse\x128\n" + - "\x06issues\x18\x01 \x03(\v2 .metalstack.api.v2.MachineIssuesR\x06issues\"k\n" + - "!MachineServiceHousekeepingRequest\x12F\n" + - "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionR\x06action\"\x9e\x01\n" + - "\"MachineServiceHousekeepingResponse\x12F\n" + - "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionR\x06action\x120\n" + - "\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n" + - "\x19MachineHousekeepingAction\x12+\n" + - "'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n" + - ")MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n" + - "&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\n" + - "liveliness\x128\n" + - "%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x90\n" + - "\n" + + "\x06issues\x18\x01 \x03(\v2 .metalstack.api.v2.MachineIssuesR\x06issues2\x83\t\n" + "\x0eMachineService\x12p\n" + "\x03Get\x12-.metalstack.admin.v2.MachineServiceGetRequest\x1a..metalstack.admin.v2.MachineServiceGetResponse\"\n" + "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12s\n" + @@ -1134,8 +964,7 @@ const file_metalstack_admin_v2_machine_proto_rawDesc = "" + "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n" + "\bSetState\x122.metalstack.admin.v2.MachineServiceSetStateRequest\x1a3.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n" + "\x06Issues\x120.metalstack.admin.v2.MachineServiceIssuesRequest\x1a1.metalstack.admin.v2.MachineServiceIssuesResponse\"\n" + - "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12\x8a\x01\n" + - "\fHousekeeping\x126.metalstack.admin.v2.MachineServiceHousekeepingRequest\x1a7.metalstack.admin.v2.MachineServiceHousekeepingResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01B\xd0\x01\n" + + "\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02B\xd0\x01\n" + "\x17com.metalstack.admin.v2B\fMachineProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3" var ( @@ -1150,78 +979,70 @@ func file_metalstack_admin_v2_machine_proto_rawDescGZIP() []byte { return file_metalstack_admin_v2_machine_proto_rawDescData } -var file_metalstack_admin_v2_machine_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_metalstack_admin_v2_machine_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_metalstack_admin_v2_machine_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_metalstack_admin_v2_machine_proto_goTypes = []any{ - (MachineHousekeepingAction)(0), // 0: metalstack.admin.v2.MachineHousekeepingAction - (*MachineServiceGetRequest)(nil), // 1: metalstack.admin.v2.MachineServiceGetRequest - (*MachineServiceGetResponse)(nil), // 2: metalstack.admin.v2.MachineServiceGetResponse - (*MachineServiceListRequest)(nil), // 3: metalstack.admin.v2.MachineServiceListRequest - (*MachineServiceListResponse)(nil), // 4: metalstack.admin.v2.MachineServiceListResponse - (*MachineServiceDeleteRequest)(nil), // 5: metalstack.admin.v2.MachineServiceDeleteRequest - (*MachineServiceDeleteResponse)(nil), // 6: metalstack.admin.v2.MachineServiceDeleteResponse - (*MachineServiceBMCCommandRequest)(nil), // 7: metalstack.admin.v2.MachineServiceBMCCommandRequest - (*MachineServiceBMCCommandResponse)(nil), // 8: metalstack.admin.v2.MachineServiceBMCCommandResponse - (*MachineServiceGetBMCRequest)(nil), // 9: metalstack.admin.v2.MachineServiceGetBMCRequest - (*MachineServiceGetBMCResponse)(nil), // 10: metalstack.admin.v2.MachineServiceGetBMCResponse - (*MachineServiceListBMCRequest)(nil), // 11: metalstack.admin.v2.MachineServiceListBMCRequest - (*MachineServiceListBMCResponse)(nil), // 12: metalstack.admin.v2.MachineServiceListBMCResponse - (*MachineServiceConsolePasswordRequest)(nil), // 13: metalstack.admin.v2.MachineServiceConsolePasswordRequest - (*MachineServiceConsolePasswordResponse)(nil), // 14: metalstack.admin.v2.MachineServiceConsolePasswordResponse - (*MachineServiceSetStateRequest)(nil), // 15: metalstack.admin.v2.MachineServiceSetStateRequest - (*MachineServiceSetStateResponse)(nil), // 16: metalstack.admin.v2.MachineServiceSetStateResponse - (*MachineServiceIssuesRequest)(nil), // 17: metalstack.admin.v2.MachineServiceIssuesRequest - (*MachineServiceIssuesResponse)(nil), // 18: metalstack.admin.v2.MachineServiceIssuesResponse - (*MachineServiceHousekeepingRequest)(nil), // 19: metalstack.admin.v2.MachineServiceHousekeepingRequest - (*MachineServiceHousekeepingResponse)(nil), // 20: metalstack.admin.v2.MachineServiceHousekeepingResponse - (*v2.Machine)(nil), // 21: metalstack.api.v2.Machine - (*v2.MachineQuery)(nil), // 22: metalstack.api.v2.MachineQuery - (v2.MachineBMCCommand)(0), // 23: metalstack.api.v2.MachineBMCCommand - (*v2.MachineBMCDetails)(nil), // 24: metalstack.api.v2.MachineBMCDetails - (v2.MachineState)(0), // 25: metalstack.api.v2.MachineState - (*v2.MachineIssuesQuery)(nil), // 26: metalstack.api.v2.MachineIssuesQuery - (*v2.MachineIssues)(nil), // 27: metalstack.api.v2.MachineIssues + (*MachineServiceGetRequest)(nil), // 0: metalstack.admin.v2.MachineServiceGetRequest + (*MachineServiceGetResponse)(nil), // 1: metalstack.admin.v2.MachineServiceGetResponse + (*MachineServiceListRequest)(nil), // 2: metalstack.admin.v2.MachineServiceListRequest + (*MachineServiceListResponse)(nil), // 3: metalstack.admin.v2.MachineServiceListResponse + (*MachineServiceDeleteRequest)(nil), // 4: metalstack.admin.v2.MachineServiceDeleteRequest + (*MachineServiceDeleteResponse)(nil), // 5: metalstack.admin.v2.MachineServiceDeleteResponse + (*MachineServiceBMCCommandRequest)(nil), // 6: metalstack.admin.v2.MachineServiceBMCCommandRequest + (*MachineServiceBMCCommandResponse)(nil), // 7: metalstack.admin.v2.MachineServiceBMCCommandResponse + (*MachineServiceGetBMCRequest)(nil), // 8: metalstack.admin.v2.MachineServiceGetBMCRequest + (*MachineServiceGetBMCResponse)(nil), // 9: metalstack.admin.v2.MachineServiceGetBMCResponse + (*MachineServiceListBMCRequest)(nil), // 10: metalstack.admin.v2.MachineServiceListBMCRequest + (*MachineServiceListBMCResponse)(nil), // 11: metalstack.admin.v2.MachineServiceListBMCResponse + (*MachineServiceConsolePasswordRequest)(nil), // 12: metalstack.admin.v2.MachineServiceConsolePasswordRequest + (*MachineServiceConsolePasswordResponse)(nil), // 13: metalstack.admin.v2.MachineServiceConsolePasswordResponse + (*MachineServiceSetStateRequest)(nil), // 14: metalstack.admin.v2.MachineServiceSetStateRequest + (*MachineServiceSetStateResponse)(nil), // 15: metalstack.admin.v2.MachineServiceSetStateResponse + (*MachineServiceIssuesRequest)(nil), // 16: metalstack.admin.v2.MachineServiceIssuesRequest + (*MachineServiceIssuesResponse)(nil), // 17: metalstack.admin.v2.MachineServiceIssuesResponse + (*v2.Machine)(nil), // 18: metalstack.api.v2.Machine + (*v2.MachineQuery)(nil), // 19: metalstack.api.v2.MachineQuery + (v2.MachineBMCCommand)(0), // 20: metalstack.api.v2.MachineBMCCommand + (*v2.MachineBMCDetails)(nil), // 21: metalstack.api.v2.MachineBMCDetails + (v2.MachineState)(0), // 22: metalstack.api.v2.MachineState + (*v2.MachineIssuesQuery)(nil), // 23: metalstack.api.v2.MachineIssuesQuery + (*v2.MachineIssues)(nil), // 24: metalstack.api.v2.MachineIssues } var file_metalstack_admin_v2_machine_proto_depIdxs = []int32{ - 21, // 0: metalstack.admin.v2.MachineServiceGetResponse.machine:type_name -> metalstack.api.v2.Machine - 22, // 1: metalstack.admin.v2.MachineServiceListRequest.query:type_name -> metalstack.api.v2.MachineQuery - 21, // 2: metalstack.admin.v2.MachineServiceListResponse.machines:type_name -> metalstack.api.v2.Machine - 21, // 3: metalstack.admin.v2.MachineServiceDeleteResponse.machine:type_name -> metalstack.api.v2.Machine - 23, // 4: metalstack.admin.v2.MachineServiceBMCCommandRequest.command:type_name -> metalstack.api.v2.MachineBMCCommand - 24, // 5: metalstack.admin.v2.MachineServiceGetBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails - 22, // 6: metalstack.admin.v2.MachineServiceListBMCRequest.query:type_name -> metalstack.api.v2.MachineQuery - 24, // 7: metalstack.admin.v2.MachineServiceListBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails - 25, // 8: metalstack.admin.v2.MachineServiceSetStateRequest.state:type_name -> metalstack.api.v2.MachineState - 21, // 9: metalstack.admin.v2.MachineServiceSetStateResponse.machine:type_name -> metalstack.api.v2.Machine - 26, // 10: metalstack.admin.v2.MachineServiceIssuesRequest.query:type_name -> metalstack.api.v2.MachineIssuesQuery - 27, // 11: metalstack.admin.v2.MachineServiceIssuesResponse.issues:type_name -> metalstack.api.v2.MachineIssues - 0, // 12: metalstack.admin.v2.MachineServiceHousekeepingRequest.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction - 0, // 13: metalstack.admin.v2.MachineServiceHousekeepingResponse.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction - 1, // 14: metalstack.admin.v2.MachineService.Get:input_type -> metalstack.admin.v2.MachineServiceGetRequest - 3, // 15: metalstack.admin.v2.MachineService.List:input_type -> metalstack.admin.v2.MachineServiceListRequest - 5, // 16: metalstack.admin.v2.MachineService.Delete:input_type -> metalstack.admin.v2.MachineServiceDeleteRequest - 7, // 17: metalstack.admin.v2.MachineService.BMCCommand:input_type -> metalstack.admin.v2.MachineServiceBMCCommandRequest - 9, // 18: metalstack.admin.v2.MachineService.GetBMC:input_type -> metalstack.admin.v2.MachineServiceGetBMCRequest - 11, // 19: metalstack.admin.v2.MachineService.ListBMC:input_type -> metalstack.admin.v2.MachineServiceListBMCRequest - 13, // 20: metalstack.admin.v2.MachineService.ConsolePassword:input_type -> metalstack.admin.v2.MachineServiceConsolePasswordRequest - 15, // 21: metalstack.admin.v2.MachineService.SetState:input_type -> metalstack.admin.v2.MachineServiceSetStateRequest - 17, // 22: metalstack.admin.v2.MachineService.Issues:input_type -> metalstack.admin.v2.MachineServiceIssuesRequest - 19, // 23: metalstack.admin.v2.MachineService.Housekeeping:input_type -> metalstack.admin.v2.MachineServiceHousekeepingRequest - 2, // 24: metalstack.admin.v2.MachineService.Get:output_type -> metalstack.admin.v2.MachineServiceGetResponse - 4, // 25: metalstack.admin.v2.MachineService.List:output_type -> metalstack.admin.v2.MachineServiceListResponse - 6, // 26: metalstack.admin.v2.MachineService.Delete:output_type -> metalstack.admin.v2.MachineServiceDeleteResponse - 8, // 27: metalstack.admin.v2.MachineService.BMCCommand:output_type -> metalstack.admin.v2.MachineServiceBMCCommandResponse - 10, // 28: metalstack.admin.v2.MachineService.GetBMC:output_type -> metalstack.admin.v2.MachineServiceGetBMCResponse - 12, // 29: metalstack.admin.v2.MachineService.ListBMC:output_type -> metalstack.admin.v2.MachineServiceListBMCResponse - 14, // 30: metalstack.admin.v2.MachineService.ConsolePassword:output_type -> metalstack.admin.v2.MachineServiceConsolePasswordResponse - 16, // 31: metalstack.admin.v2.MachineService.SetState:output_type -> metalstack.admin.v2.MachineServiceSetStateResponse - 18, // 32: metalstack.admin.v2.MachineService.Issues:output_type -> metalstack.admin.v2.MachineServiceIssuesResponse - 20, // 33: metalstack.admin.v2.MachineService.Housekeeping:output_type -> metalstack.admin.v2.MachineServiceHousekeepingResponse - 24, // [24:34] is the sub-list for method output_type - 14, // [14:24] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 18, // 0: metalstack.admin.v2.MachineServiceGetResponse.machine:type_name -> metalstack.api.v2.Machine + 19, // 1: metalstack.admin.v2.MachineServiceListRequest.query:type_name -> metalstack.api.v2.MachineQuery + 18, // 2: metalstack.admin.v2.MachineServiceListResponse.machines:type_name -> metalstack.api.v2.Machine + 18, // 3: metalstack.admin.v2.MachineServiceDeleteResponse.machine:type_name -> metalstack.api.v2.Machine + 20, // 4: metalstack.admin.v2.MachineServiceBMCCommandRequest.command:type_name -> metalstack.api.v2.MachineBMCCommand + 21, // 5: metalstack.admin.v2.MachineServiceGetBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails + 19, // 6: metalstack.admin.v2.MachineServiceListBMCRequest.query:type_name -> metalstack.api.v2.MachineQuery + 21, // 7: metalstack.admin.v2.MachineServiceListBMCResponse.bmc_details:type_name -> metalstack.api.v2.MachineBMCDetails + 22, // 8: metalstack.admin.v2.MachineServiceSetStateRequest.state:type_name -> metalstack.api.v2.MachineState + 18, // 9: metalstack.admin.v2.MachineServiceSetStateResponse.machine:type_name -> metalstack.api.v2.Machine + 23, // 10: metalstack.admin.v2.MachineServiceIssuesRequest.query:type_name -> metalstack.api.v2.MachineIssuesQuery + 24, // 11: metalstack.admin.v2.MachineServiceIssuesResponse.issues:type_name -> metalstack.api.v2.MachineIssues + 0, // 12: metalstack.admin.v2.MachineService.Get:input_type -> metalstack.admin.v2.MachineServiceGetRequest + 2, // 13: metalstack.admin.v2.MachineService.List:input_type -> metalstack.admin.v2.MachineServiceListRequest + 4, // 14: metalstack.admin.v2.MachineService.Delete:input_type -> metalstack.admin.v2.MachineServiceDeleteRequest + 6, // 15: metalstack.admin.v2.MachineService.BMCCommand:input_type -> metalstack.admin.v2.MachineServiceBMCCommandRequest + 8, // 16: metalstack.admin.v2.MachineService.GetBMC:input_type -> metalstack.admin.v2.MachineServiceGetBMCRequest + 10, // 17: metalstack.admin.v2.MachineService.ListBMC:input_type -> metalstack.admin.v2.MachineServiceListBMCRequest + 12, // 18: metalstack.admin.v2.MachineService.ConsolePassword:input_type -> metalstack.admin.v2.MachineServiceConsolePasswordRequest + 14, // 19: metalstack.admin.v2.MachineService.SetState:input_type -> metalstack.admin.v2.MachineServiceSetStateRequest + 16, // 20: metalstack.admin.v2.MachineService.Issues:input_type -> metalstack.admin.v2.MachineServiceIssuesRequest + 1, // 21: metalstack.admin.v2.MachineService.Get:output_type -> metalstack.admin.v2.MachineServiceGetResponse + 3, // 22: metalstack.admin.v2.MachineService.List:output_type -> metalstack.admin.v2.MachineServiceListResponse + 5, // 23: metalstack.admin.v2.MachineService.Delete:output_type -> metalstack.admin.v2.MachineServiceDeleteResponse + 7, // 24: metalstack.admin.v2.MachineService.BMCCommand:output_type -> metalstack.admin.v2.MachineServiceBMCCommandResponse + 9, // 25: metalstack.admin.v2.MachineService.GetBMC:output_type -> metalstack.admin.v2.MachineServiceGetBMCResponse + 11, // 26: metalstack.admin.v2.MachineService.ListBMC:output_type -> metalstack.admin.v2.MachineServiceListBMCResponse + 13, // 27: metalstack.admin.v2.MachineService.ConsolePassword:output_type -> metalstack.admin.v2.MachineServiceConsolePasswordResponse + 15, // 28: metalstack.admin.v2.MachineService.SetState:output_type -> metalstack.admin.v2.MachineServiceSetStateResponse + 17, // 29: metalstack.admin.v2.MachineService.Issues:output_type -> metalstack.admin.v2.MachineServiceIssuesResponse + 21, // [21:30] is the sub-list for method output_type + 12, // [12:21] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_metalstack_admin_v2_machine_proto_init() } @@ -1234,14 +1055,13 @@ func file_metalstack_admin_v2_machine_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_metalstack_admin_v2_machine_proto_rawDesc), len(file_metalstack_admin_v2_machine_proto_rawDesc)), - NumEnums: 1, - NumMessages: 20, + NumEnums: 0, + NumMessages: 18, NumExtensions: 0, NumServices: 1, }, GoTypes: file_metalstack_admin_v2_machine_proto_goTypes, DependencyIndexes: file_metalstack_admin_v2_machine_proto_depIdxs, - EnumInfos: file_metalstack_admin_v2_machine_proto_enumTypes, MessageInfos: file_metalstack_admin_v2_machine_proto_msgTypes, }.Build() File_metalstack_admin_v2_machine_proto = out.File diff --git a/go/permissions/servicepermissions.go b/go/permissions/servicepermissions.go index 762f8c45..a1af931a 100755 --- a/go/permissions/servicepermissions.go +++ b/go/permissions/servicepermissions.go @@ -11,6 +11,7 @@ func GetServices() []string { "metalstack.admin.v2.AuditService", "metalstack.admin.v2.ComponentService", "metalstack.admin.v2.FilesystemService", + "metalstack.admin.v2.HousekeepingService", "metalstack.admin.v2.IPService", "metalstack.admin.v2.ImageService", "metalstack.admin.v2.MachineService", @@ -66,6 +67,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.FilesystemService/Delete": {}, "/metalstack.admin.v2.FilesystemService/Match": {}, "/metalstack.admin.v2.FilesystemService/Update": {}, + "/metalstack.admin.v2.HousekeepingService/Machine": {}, "/metalstack.admin.v2.IPService/List": {}, "/metalstack.admin.v2.ImageService/Create": {}, "/metalstack.admin.v2.ImageService/Delete": {}, @@ -76,7 +78,6 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": {}, "/metalstack.admin.v2.MachineService/Get": {}, "/metalstack.admin.v2.MachineService/GetBMC": {}, - "/metalstack.admin.v2.MachineService/Housekeeping": {}, "/metalstack.admin.v2.MachineService/Issues": {}, "/metalstack.admin.v2.MachineService/List": {}, "/metalstack.admin.v2.MachineService/ListBMC": {}, @@ -306,6 +307,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.FilesystemService/Delete": {}, "/metalstack.admin.v2.FilesystemService/Match": {}, "/metalstack.admin.v2.FilesystemService/Update": {}, + "/metalstack.admin.v2.HousekeepingService/Machine": {}, "/metalstack.admin.v2.IPService/List": {}, "/metalstack.admin.v2.ImageService/Create": {}, "/metalstack.admin.v2.ImageService/Delete": {}, @@ -316,7 +318,6 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": {}, "/metalstack.admin.v2.MachineService/Get": {}, "/metalstack.admin.v2.MachineService/GetBMC": {}, - "/metalstack.admin.v2.MachineService/Housekeeping": {}, "/metalstack.admin.v2.MachineService/Issues": {}, "/metalstack.admin.v2.MachineService/List": {}, "/metalstack.admin.v2.MachineService/ListBMC": {}, @@ -501,6 +502,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.FilesystemService/Delete": true, "/metalstack.admin.v2.FilesystemService/Match": true, "/metalstack.admin.v2.FilesystemService/Update": true, + "/metalstack.admin.v2.HousekeepingService/Machine": true, "/metalstack.admin.v2.IPService/List": true, "/metalstack.admin.v2.ImageService/Create": true, "/metalstack.admin.v2.ImageService/Delete": true, @@ -511,7 +513,6 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": true, "/metalstack.admin.v2.MachineService/Get": true, "/metalstack.admin.v2.MachineService/GetBMC": true, - "/metalstack.admin.v2.MachineService/Housekeeping": true, "/metalstack.admin.v2.MachineService/Issues": true, "/metalstack.admin.v2.MachineService/List": true, "/metalstack.admin.v2.MachineService/ListBMC": true, @@ -638,6 +639,7 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.FilesystemService/Delete": true, "/metalstack.admin.v2.FilesystemService/Match": false, "/metalstack.admin.v2.FilesystemService/Update": true, + "/metalstack.admin.v2.HousekeepingService/Machine": true, "/metalstack.admin.v2.IPService/List": false, "/metalstack.admin.v2.ImageService/Create": true, "/metalstack.admin.v2.ImageService/Delete": true, @@ -648,7 +650,6 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.MachineService/Delete": true, "/metalstack.admin.v2.MachineService/Get": false, "/metalstack.admin.v2.MachineService/GetBMC": true, - "/metalstack.admin.v2.MachineService/Housekeeping": true, "/metalstack.admin.v2.MachineService/Issues": false, "/metalstack.admin.v2.MachineService/List": false, "/metalstack.admin.v2.MachineService/ListBMC": true, diff --git a/js/client.d.ts b/js/client.d.ts index d0bfb698..9f77f4ea 100644 --- a/js/client.d.ts +++ b/js/client.d.ts @@ -3,6 +3,7 @@ import type { Client as ConnectClient } from "@connectrpc/connect"; import { AuditService as Adminv2AuditService } from "./metalstack/admin/v2/audit_pb"; import { ComponentService as Adminv2ComponentService } from "./metalstack/admin/v2/component_pb"; import { FilesystemService as Adminv2FilesystemService } from "./metalstack/admin/v2/filesystem_pb"; +import { HousekeepingService as Adminv2HousekeepingService } from "./metalstack/admin/v2/housekeeping_pb"; import { ImageService as Adminv2ImageService } from "./metalstack/admin/v2/image_pb"; import { IPService as Adminv2IPService } from "./metalstack/admin/v2/ip_pb"; import { MachineService as Adminv2MachineService } from "./metalstack/admin/v2/machine_pb"; @@ -55,6 +56,7 @@ export interface Adminv2 { audit(): ConnectClient; component(): ConnectClient; filesystem(): ConnectClient; + housekeeping(): ConnectClient; image(): ConnectClient; ip(): ConnectClient; machine(): ConnectClient; diff --git a/js/client.js b/js/client.js index 3bb94b3b..9e206145 100644 --- a/js/client.js +++ b/js/client.js @@ -13,6 +13,7 @@ import { createConnectTransport } from "@connectrpc/connect-web"; import { AuditService as Adminv2AuditService } from "./metalstack/admin/v2/audit_pb"; import { ComponentService as Adminv2ComponentService } from "./metalstack/admin/v2/component_pb"; import { FilesystemService as Adminv2FilesystemService } from "./metalstack/admin/v2/filesystem_pb"; +import { HousekeepingService as Adminv2HousekeepingService } from "./metalstack/admin/v2/housekeeping_pb"; import { ImageService as Adminv2ImageService } from "./metalstack/admin/v2/image_pb"; import { IPService as Adminv2IPService } from "./metalstack/admin/v2/ip_pb"; import { MachineService as Adminv2MachineService } from "./metalstack/admin/v2/machine_pb"; @@ -120,6 +121,12 @@ class Adminv2Impl { } return this._filesystem; } + housekeeping() { + if (!this._housekeeping) { + this._housekeeping = createClient(Adminv2HousekeepingService, this.transport); + } + return this._housekeeping; + } image() { if (!this._image) { this._image = createClient(Adminv2ImageService, this.transport); diff --git a/js/client.ts b/js/client.ts index 9a9f483f..d9e97ee9 100755 --- a/js/client.ts +++ b/js/client.ts @@ -11,6 +11,8 @@ import { ComponentService as Adminv2ComponentService } from "./metalstack/admin/ import { FilesystemService as Adminv2FilesystemService } from "./metalstack/admin/v2/filesystem_pb"; +import { HousekeepingService as Adminv2HousekeepingService } from "./metalstack/admin/v2/housekeeping_pb"; + import { ImageService as Adminv2ImageService } from "./metalstack/admin/v2/image_pb"; import { IPService as Adminv2IPService } from "./metalstack/admin/v2/ip_pb"; @@ -118,6 +120,8 @@ export interface Adminv2 { filesystem(): ConnectClient; + housekeeping(): ConnectClient; + image(): ConnectClient; ip(): ConnectClient; @@ -288,6 +292,8 @@ class Adminv2Impl implements Adminv2 { private _filesystem?: ConnectClient; + private _housekeeping?: ConnectClient; + private _image?: ConnectClient; private _ip?: ConnectClient; @@ -343,6 +349,13 @@ class Adminv2Impl implements Adminv2 { return this._filesystem; } + housekeeping(): ConnectClient { + if (!this._housekeeping) { + this._housekeeping = createClient(Adminv2HousekeepingService, this.transport); + } + return this._housekeeping; + } + image(): ConnectClient { if (!this._image) { this._image = createClient(Adminv2ImageService, this.transport); diff --git a/js/metalstack/admin/v2/housekeeping_pb.d.ts b/js/metalstack/admin/v2/housekeeping_pb.d.ts new file mode 100644 index 00000000..164b3e46 --- /dev/null +++ b/js/metalstack/admin/v2/housekeeping_pb.d.ts @@ -0,0 +1,100 @@ +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import type { Message } from "@bufbuild/protobuf"; +/** + * Describes the file metalstack/admin/v2/housekeeping.proto. + */ +export declare const file_metalstack_admin_v2_housekeeping: GenFile; +/** + * HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineRequest + */ +export type HousekeepingServiceMachineRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineRequest"> & { + /** + * Housekeeping Action to perform. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; +}; +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineRequest. + * Use `create(HousekeepingServiceMachineRequestSchema)` to create a new message. + */ +export declare const HousekeepingServiceMachineRequestSchema: GenMessage; +/** + * HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResponse + */ +export type HousekeepingServiceMachineResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineResponse"> & { + /** + * Housekeeping Action which was performed. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; + /** + * Modified Machine IDs modified during this housekeeping action. + * + * @generated from field: repeated string modified_machine_ids = 2; + */ + modifiedMachineIds: string[]; +}; +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResponse. + * Use `create(HousekeepingServiceMachineResponseSchema)` to create a new message. + */ +export declare const HousekeepingServiceMachineResponseSchema: GenMessage; +/** + * HousekeepingAction defines which housekeeping action should be triggered. + * + * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + */ +export declare enum MachineHousekeepingAction { + /** + * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + /** + * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; + */ + VPN_CONNECTED = 1, + /** + * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + */ + LIVELINESS = 2, + /** + * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + */ + RESURRECT = 3 +} +/** + * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + */ +export declare const MachineHousekeepingActionSchema: GenEnum; +/** + * HousekeepingService provides housekeeping operations. + * + * @generated from service metalstack.admin.v2.HousekeepingService + */ +export declare const HousekeepingService: GenService<{ + /** + * Machine housekeeping + * + * @generated from rpc metalstack.admin.v2.HousekeepingService.Machine + */ + machine: { + methodKind: "unary"; + input: typeof HousekeepingServiceMachineRequestSchema; + output: typeof HousekeepingServiceMachineResponseSchema; + }; +}>; diff --git a/js/metalstack/admin/v2/housekeeping_pb.js b/js/metalstack/admin/v2/housekeeping_pb.js new file mode 100644 index 00000000..ba37e14b --- /dev/null +++ b/js/metalstack/admin/v2/housekeeping_pb.js @@ -0,0 +1,62 @@ +// @generated by protoc-gen-es v2.16.0 with parameter "target=ts" +// @generated from file metalstack/admin/v2/housekeeping.proto (package metalstack.admin.v2, syntax proto3) +/* eslint-disable */ +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; +import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; +/** + * Describes the file metalstack/admin/v2/housekeeping.proto. + */ +export const file_metalstack_admin_v2_housekeeping = /*@__PURE__*/ fileDesc("CiZtZXRhbHN0YWNrL2FkbWluL3YyL2hvdXNla2VlcGluZy5wc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CE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common]); +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineRequest. + * Use `create(HousekeepingServiceMachineRequestSchema)` to create a new message. + */ +export const HousekeepingServiceMachineRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 0); +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResponse. + * Use `create(HousekeepingServiceMachineResponseSchema)` to create a new message. + */ +export const HousekeepingServiceMachineResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 1); +/** + * HousekeepingAction defines which housekeeping action should be triggered. + * + * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + */ +export var MachineHousekeepingAction; +(function (MachineHousekeepingAction) { + /** + * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + */ + MachineHousekeepingAction[MachineHousekeepingAction["UNSPECIFIED"] = 0] = "UNSPECIFIED"; + /** + * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; + */ + MachineHousekeepingAction[MachineHousekeepingAction["VPN_CONNECTED"] = 1] = "VPN_CONNECTED"; + /** + * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + */ + MachineHousekeepingAction[MachineHousekeepingAction["LIVELINESS"] = 2] = "LIVELINESS"; + /** + * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + */ + MachineHousekeepingAction[MachineHousekeepingAction["RESURRECT"] = 3] = "RESURRECT"; +})(MachineHousekeepingAction || (MachineHousekeepingAction = {})); +/** + * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + */ +export const MachineHousekeepingActionSchema = /*@__PURE__*/ enumDesc(file_metalstack_admin_v2_housekeeping, 0); +/** + * HousekeepingService provides housekeeping operations. + * + * @generated from service metalstack.admin.v2.HousekeepingService + */ +export const HousekeepingService = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_housekeeping, 0); diff --git a/js/metalstack/admin/v2/housekeeping_pb.ts b/js/metalstack/admin/v2/housekeeping_pb.ts new file mode 100644 index 00000000..165f9ffc --- /dev/null +++ b/js/metalstack/admin/v2/housekeeping_pb.ts @@ -0,0 +1,125 @@ +// @generated by protoc-gen-es v2.16.0 with parameter "target=ts" +// @generated from file metalstack/admin/v2/housekeeping.proto (package metalstack.admin.v2, syntax proto3) +/* eslint-disable */ + +import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; +import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file metalstack/admin/v2/housekeeping.proto. + */ +export const file_metalstack_admin_v2_housekeeping: GenFile = /*@__PURE__*/ + fileDesc("CiZtZXRhbHN0YWNrL2FkbWluL3YyL2hvdXNla2VlcGluZy5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiJtCiFIb3VzZWtlZXBpbmdTZXJ2aWNlTWFjaGluZVJlcXVlc3QSSAoGYWN0aW9uGAEgASgOMi4ubWV0YWxzdGFjay5hZG1pbi52Mi5NYWNoaW5lSG91c2VrZWVwaW5nQWN0aW9uQgi6SAWCAQIQASKCAQoiSG91c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achineRequest is the request payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineRequest + */ +export type HousekeepingServiceMachineRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineRequest"> & { + /** + * Housekeeping Action to perform. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; +}; + +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineRequest. + * Use `create(HousekeepingServiceMachineRequestSchema)` to create a new message. + */ +export const HousekeepingServiceMachineRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_housekeeping, 0); + +/** + * HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResponse + */ +export type HousekeepingServiceMachineResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineResponse"> & { + /** + * Housekeeping Action which was performed. + * + * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + */ + action: MachineHousekeepingAction; + + /** + * Modified Machine IDs modified during this housekeeping action. + * + * @generated from field: repeated string modified_machine_ids = 2; + */ + modifiedMachineIds: string[]; +}; + +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResponse. + * Use `create(HousekeepingServiceMachineResponseSchema)` to create a new message. + */ +export const HousekeepingServiceMachineResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_housekeeping, 1); + +/** + * HousekeepingAction defines which housekeeping action should be triggered. + * + * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + */ +export enum MachineHousekeepingAction { + /** + * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; + */ + VPN_CONNECTED = 1, + + /** + * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + */ + LIVELINESS = 2, + + /** + * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * + * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + */ + RESURRECT = 3, +} + +/** + * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + */ +export const MachineHousekeepingActionSchema: GenEnum = /*@__PURE__*/ + enumDesc(file_metalstack_admin_v2_housekeeping, 0); + +/** + * HousekeepingService provides housekeeping operations. + * + * @generated from service metalstack.admin.v2.HousekeepingService + */ +export const HousekeepingService: GenService<{ + /** + * Machine housekeeping + * + * @generated from rpc metalstack.admin.v2.HousekeepingService.Machine + */ + machine: { + methodKind: "unary"; + input: typeof HousekeepingServiceMachineRequestSchema; + output: typeof HousekeepingServiceMachineResponseSchema; + }, +}> = /*@__PURE__*/ + serviceDesc(file_metalstack_admin_v2_housekeeping, 0); + diff --git a/js/metalstack/admin/v2/machine_pb.d.ts b/js/metalstack/admin/v2/machine_pb.d.ts index 72cf413b..ae1a0cea 100644 --- a/js/metalstack/admin/v2/machine_pb.d.ts +++ b/js/metalstack/admin/v2/machine_pb.d.ts @@ -1,4 +1,4 @@ -import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Machine, MachineBMCCommand, MachineBMCDetails, MachineIssues, MachineIssuesQuery, MachineQuery, MachineState } from "../../api/v2/machine_pb"; import type { Message } from "@bufbuild/protobuf"; /** @@ -361,83 +361,6 @@ export type MachineServiceIssuesResponse = Message<"metalstack.admin.v2.MachineS * Use `create(MachineServiceIssuesResponseSchema)` to create a new message. */ export declare const MachineServiceIssuesResponseSchema: GenMessage; -/** - * MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. - * - * @generated from message metalstack.admin.v2.MachineServiceHousekeepingRequest - */ -export type MachineServiceHousekeepingRequest = Message<"metalstack.admin.v2.MachineServiceHousekeepingRequest"> & { - /** - * Housekeeping Action to perform. - * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; - */ - action: MachineHousekeepingAction; -}; -/** - * Describes the message metalstack.admin.v2.MachineServiceHousekeepingRequest. - * Use `create(MachineServiceHousekeepingRequestSchema)` to create a new message. - */ -export declare const MachineServiceHousekeepingRequestSchema: GenMessage; -/** - * MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. - * - * @generated from message metalstack.admin.v2.MachineServiceHousekeepingResponse - */ -export type MachineServiceHousekeepingResponse = Message<"metalstack.admin.v2.MachineServiceHousekeepingResponse"> & { - /** - * Housekeeping Action which was performed. - * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; - */ - action: MachineHousekeepingAction; - /** - * Modified Machine IDs modified during this housekeeping action. - * - * @generated from field: repeated string modified_machine_ids = 2; - */ - modifiedMachineIds: string[]; -}; -/** - * Describes the message metalstack.admin.v2.MachineServiceHousekeepingResponse. - * Use `create(MachineServiceHousekeepingResponseSchema)` to create a new message. - */ -export declare const MachineServiceHousekeepingResponseSchema: GenMessage; -/** - * HousekeepingAction defines which housekeeping action should be triggered. - * - * @generated from enum metalstack.admin.v2.MachineHousekeepingAction - */ -export declare enum MachineHousekeepingAction { - /** - * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - /** - * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; - */ - VPN_CONNECTED = 1, - /** - * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; - */ - LIVELINESS = 2, - /** - * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; - */ - RESURRECT = 3 -} -/** - * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. - */ -export declare const MachineHousekeepingActionSchema: GenEnum; /** * MachineService provides machine lifecycle management operations. * @@ -534,14 +457,4 @@ export declare const MachineService: GenService<{ input: typeof MachineServiceIssuesRequestSchema; output: typeof MachineServiceIssuesResponseSchema; }; - /** - * Housekeeping - * - * @generated from rpc metalstack.admin.v2.MachineService.Housekeeping - */ - housekeeping: { - methodKind: "unary"; - input: typeof MachineServiceHousekeepingRequestSchema; - output: typeof MachineServiceHousekeepingResponseSchema; - }; }>; diff --git a/js/metalstack/admin/v2/machine_pb.js b/js/metalstack/admin/v2/machine_pb.js index e69e41d1..2173c213 100644 --- a/js/metalstack/admin/v2/machine_pb.js +++ b/js/metalstack/admin/v2/machine_pb.js @@ -1,7 +1,7 @@ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts" // @generated from file metalstack/admin/v2/machine.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ -import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb"; @@ -9,7 +9,7 @@ import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined /** * Describes the file metalstack/admin/v2/machine.proto. */ -export const file_metalstack_admin_v2_machine = /*@__PURE__*/ fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21hY2hpbmUucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoY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Z1JlcXVlc3QaNy5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlSG91c2VrZWVwaW5nUmVzcG9uc2UiCdLzGAEB4PMYAULQAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCDE1hY2hpbmVQcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]); +export const file_metalstack_admin_v2_machine = /*@__PURE__*/ fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21hY2hpbmUucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoYTWFjaGluZVNlcnZpY2VHZXRSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIkgKGU1hY2hpbmVTZXJ2aWNlR2V0UmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiSwoZTWFjaGluZVNlcnZpY2VMaXN0UmVxdWVzdBIuCgVxdWVyeRgBIAEoCzIfLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmVRdWVyeSJKChpNYWNoaW5lU2VydmljZUxpc3RSZXNwb25zZRIsCghtYWNoaW5lcxgBIAMoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiNQobTWFjaGluZVNlcnZpY2VEZWxldGVSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIksKHE1hY2hpbmVTZXJ2aWNlRGVsZXRlUmVzcG9uc2USKwoHbWFjaGluZ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VjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]); /** * Describes the message metalstack.admin.v2.MachineServiceGetRequest. * Use `create(MachineServiceGetRequestSchema)` to create a new message. @@ -100,52 +100,6 @@ export const MachineServiceIssuesRequestSchema = /*@__PURE__*/ messageDesc(file_ * Use `create(MachineServiceIssuesResponseSchema)` to create a new message. */ export const MachineServiceIssuesResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 17); -/** - * Describes the message metalstack.admin.v2.MachineServiceHousekeepingRequest. - * Use `create(MachineServiceHousekeepingRequestSchema)` to create a new message. - */ -export const MachineServiceHousekeepingRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 18); -/** - * Describes the message metalstack.admin.v2.MachineServiceHousekeepingResponse. - * Use `create(MachineServiceHousekeepingResponseSchema)` to create a new message. - */ -export const MachineServiceHousekeepingResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 19); -/** - * HousekeepingAction defines which housekeeping action should be triggered. - * - * @generated from enum metalstack.admin.v2.MachineHousekeepingAction - */ -export var MachineHousekeepingAction; -(function (MachineHousekeepingAction) { - /** - * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; - */ - MachineHousekeepingAction[MachineHousekeepingAction["UNSPECIFIED"] = 0] = "UNSPECIFIED"; - /** - * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; - */ - MachineHousekeepingAction[MachineHousekeepingAction["VPN_CONNECTED"] = 1] = "VPN_CONNECTED"; - /** - * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; - */ - MachineHousekeepingAction[MachineHousekeepingAction["LIVELINESS"] = 2] = "LIVELINESS"; - /** - * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; - */ - MachineHousekeepingAction[MachineHousekeepingAction["RESURRECT"] = 3] = "RESURRECT"; -})(MachineHousekeepingAction || (MachineHousekeepingAction = {})); -/** - * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. - */ -export const MachineHousekeepingActionSchema = /*@__PURE__*/ enumDesc(file_metalstack_admin_v2_machine, 0); /** * MachineService provides machine lifecycle management operations. * diff --git a/js/metalstack/admin/v2/machine_pb.ts b/js/metalstack/admin/v2/machine_pb.ts index e65a3994..feae06af 100644 --- a/js/metalstack/admin/v2/machine_pb.ts +++ b/js/metalstack/admin/v2/machine_pb.ts @@ -2,8 +2,8 @@ // @generated from file metalstack/admin/v2/machine.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ -import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; -import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; import type { Machine, MachineBMCCommand, MachineBMCDetails, MachineIssues, MachineIssuesQuery, MachineQuery, MachineState } from "../../api/v2/machine_pb"; @@ -15,7 +15,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file metalstack/admin/v2/machine.proto. */ export const file_metalstack_admin_v2_machine: GenFile = /*@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AgEC4PMYAhKKAQoMSG91c2VrZWVwaW5nEjYubWV0YWxzdGFjay5hZG1pbi52Mi5NYWNoaW5lU2VydmljZUhvdXNla2VlcGluZ1JlcXVlc3QaNy5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlSG91c2VrZWVwaW5nUmVzcG9uc2UiCdLzGAEB4PMYAULQAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCDE1hY2hpbmVQcm90b1ABWjlnaXRodWIuY29tL21ldGFsLXN0YWNrL2FwaS9nby9tZXRhbHN0YWNrL2FkbWluL3YyO2FkbWludjKiAgNNQViqAhNNZXRhbHN0YWNrLkFkbWluLlYyygITTWV0YWxzdGFja1xBZG1pblxWMuICH01ldGFsc3RhY2tcQWRtaW5cVjJcR1BCTWV0YWRhdGHqAhVNZXRhbHN0YWNrOjpBZG1pbjo6VjJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]); + fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21hY2hpbmUucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoYTWFjaGluZVNlcnZpY2VHZXRSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIkgKGU1hY2hpbmVTZXJ2aWNlR2V0UmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiSwoZTWFjaGluZVNlcnZpY2VMaXN0UmVxdWVzdBIuCgVxdWVyeRgBIAEoCzIfLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmVRdWVyeSJKChpNYWNoaW5lU2VydmljZUxpc3RSZXNwb25zZRIsCghtYWNoaW5lcxgBIAMoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiNQobTWFjaGluZVNlcnZpY2VEZWxldGVSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXI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Fsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]); /** * MachineServiceGetRequest is the request payload for a machine get request. @@ -432,96 +432,6 @@ export type MachineServiceIssuesResponse = Message<"metalstack.admin.v2.MachineS export const MachineServiceIssuesResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_machine, 17); -/** - * MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. - * - * @generated from message metalstack.admin.v2.MachineServiceHousekeepingRequest - */ -export type MachineServiceHousekeepingRequest = Message<"metalstack.admin.v2.MachineServiceHousekeepingRequest"> & { - /** - * Housekeeping Action to perform. - * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; - */ - action: MachineHousekeepingAction; -}; - -/** - * Describes the message metalstack.admin.v2.MachineServiceHousekeepingRequest. - * Use `create(MachineServiceHousekeepingRequestSchema)` to create a new message. - */ -export const MachineServiceHousekeepingRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_metalstack_admin_v2_machine, 18); - -/** - * MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. - * - * @generated from message metalstack.admin.v2.MachineServiceHousekeepingResponse - */ -export type MachineServiceHousekeepingResponse = Message<"metalstack.admin.v2.MachineServiceHousekeepingResponse"> & { - /** - * Housekeeping Action which was performed. - * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; - */ - action: MachineHousekeepingAction; - - /** - * Modified Machine IDs modified during this housekeeping action. - * - * @generated from field: repeated string modified_machine_ids = 2; - */ - modifiedMachineIds: string[]; -}; - -/** - * Describes the message metalstack.admin.v2.MachineServiceHousekeepingResponse. - * Use `create(MachineServiceHousekeepingResponseSchema)` to create a new message. - */ -export const MachineServiceHousekeepingResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_metalstack_admin_v2_machine, 19); - -/** - * HousekeepingAction defines which housekeeping action should be triggered. - * - * @generated from enum metalstack.admin.v2.MachineHousekeepingAction - */ -export enum MachineHousekeepingAction { - /** - * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; - */ - VPN_CONNECTED = 1, - - /** - * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; - */ - LIVELINESS = 2, - - /** - * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; - */ - RESURRECT = 3, -} - -/** - * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. - */ -export const MachineHousekeepingActionSchema: GenEnum = /*@__PURE__*/ - enumDesc(file_metalstack_admin_v2_machine, 0); - /** * MachineService provides machine lifecycle management operations. * @@ -618,16 +528,6 @@ export const MachineService: GenService<{ input: typeof MachineServiceIssuesRequestSchema; output: typeof MachineServiceIssuesResponseSchema; }, - /** - * Housekeeping - * - * @generated from rpc metalstack.admin.v2.MachineService.Housekeeping - */ - housekeeping: { - methodKind: "unary"; - input: typeof MachineServiceHousekeepingRequestSchema; - output: typeof MachineServiceHousekeepingResponseSchema; - }, }> = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_machine, 0); diff --git a/proto/metalstack/admin/v2/housekeeping.proto b/proto/metalstack/admin/v2/housekeeping.proto new file mode 100644 index 00000000..caa60a7b --- /dev/null +++ b/proto/metalstack/admin/v2/housekeeping.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +package metalstack.admin.v2; + +import "buf/validate/validate.proto"; +import "metalstack/api/v2/common.proto"; + +// HousekeepingService provides housekeeping operations. +service HousekeepingService { + // Machine housekeeping + rpc Machine(HousekeepingServiceMachineRequest) returns (HousekeepingServiceMachineResponse) { + option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; + option (metalstack.api.v2.auditing) = AUDITING_INCLUDED; + } +} + +// HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request. +message HousekeepingServiceMachineRequest { + // Housekeeping Action to perform. + MachineHousekeepingAction action = 1 [(buf.validate.field).enum.defined_only = true]; +} + +// HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. +message HousekeepingServiceMachineResponse { + // Housekeeping Action which was performed. + MachineHousekeepingAction action = 1; + // Modified Machine IDs modified during this housekeeping action. + repeated string modified_machine_ids = 2; +} + +// HousekeepingAction defines which housekeeping action should be triggered. +enum MachineHousekeepingAction { + // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1 [(metalstack.api.v2.enum_string_value) = "vpn-connected"]; + // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2 [(metalstack.api.v2.enum_string_value) = "liveliness"]; + // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3 [(metalstack.api.v2.enum_string_value) = "resurrect"]; +} diff --git a/proto/metalstack/admin/v2/machine.proto b/proto/metalstack/admin/v2/machine.proto index 137a43b3..edd916b4 100644 --- a/proto/metalstack/admin/v2/machine.proto +++ b/proto/metalstack/admin/v2/machine.proto @@ -60,11 +60,6 @@ service MachineService { option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_VIEWER; option (metalstack.api.v2.auditing) = AUDITING_EXCLUDED; } - // Housekeeping - rpc Housekeeping(MachineServiceHousekeepingRequest) returns (MachineServiceHousekeepingResponse) { - option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; - option (metalstack.api.v2.auditing) = AUDITING_INCLUDED; - } } // ------------------------ Service Messages ---------------------------------- @@ -191,29 +186,3 @@ message MachineServiceIssuesResponse { // Issues is the result of the issues query. repeated metalstack.api.v2.MachineIssues issues = 1; } - -// MachineServiceHousekeepingRequest is the request payload for a machine housekeeping request. -message MachineServiceHousekeepingRequest { - // Housekeeping Action to perform. - MachineHousekeepingAction action = 1; -} - -// MachineServiceHousekeepingResponse is the response payload for a machine housekeeping request. -message MachineServiceHousekeepingResponse { - // Housekeeping Action which was performed. - MachineHousekeepingAction action = 1; - // Modified Machine IDs modified during this housekeeping action. - repeated string modified_machine_ids = 2; -} - -// HousekeepingAction defines which housekeeping action should be triggered. -enum MachineHousekeepingAction { - // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; - // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1 [(metalstack.api.v2.enum_string_value) = "vpn-connected"]; - // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2 [(metalstack.api.v2.enum_string_value) = "liveliness"]; - // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3 [(metalstack.api.v2.enum_string_value) = "resurrect"]; -} diff --git a/python/metalstack/admin/v2/housekeeping_connect.py b/python/metalstack/admin/v2/housekeeping_connect.py new file mode 100644 index 00000000..1570eebd --- /dev/null +++ b/python/metalstack/admin/v2/housekeeping_connect.py @@ -0,0 +1,131 @@ +# -*- coding: utf-8 -*- +# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT! +# source: metalstack/admin/v2/housekeeping.proto + +from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping +from typing import Protocol + +from connectrpc.client import ConnectClient, ConnectClientSync +from connectrpc.code import Code +from connectrpc.codec import Codec +from connectrpc.compression import Compression +from connectrpc.errors import ConnectError +from connectrpc.interceptor import Interceptor, InterceptorSync +from connectrpc.method import IdempotencyLevel, MethodInfo +from connectrpc.request import Headers, RequestContext +from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync +import metalstack.admin.v2.housekeeping_pb2 as metalstack_dot_admin_dot_v2_dot_housekeeping__pb2 + + +class HousekeepingService(Protocol): + async def machine(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + + +class HousekeepingServiceASGIApplication(ConnectASGIApplication[HousekeepingService]): + def __init__(self, service: HousekeepingService | AsyncGenerator[HousekeepingService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None: + super().__init__( + service=service, + endpoints=lambda svc: { + "/metalstack.admin.v2.HousekeepingService/Machine": Endpoint.unary( + method=MethodInfo( + name="Machine", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=svc.machine, + ), + }, + interceptors=interceptors, + read_max_bytes=read_max_bytes, + compressions=compressions, + codecs=codecs, + ) + + @property + def path(self) -> str: + """Returns the URL path to mount the application to when serving multiple applications.""" + return "/metalstack.admin.v2.HousekeepingService" + + +class HousekeepingServiceClient(ConnectClient): + async def machine( + self, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + return await self.execute_unary( + request=request, + method=MethodInfo( + name="Machine", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + + + + + +class HousekeepingServiceSync(Protocol): + def machine(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + + +class HousekeepingServiceWSGIApplication(ConnectWSGIApplication): + def __init__(self, service: HousekeepingServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None: + super().__init__( + endpoints={ + "/metalstack.admin.v2.HousekeepingService/Machine": EndpointSync.unary( + method=MethodInfo( + name="Machine", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=service.machine, + ), + }, + interceptors=interceptors, + read_max_bytes=read_max_bytes, + compressions=compressions, + codecs=codecs, + ) + + @property + def path(self) -> str: + """Returns the URL path to mount the application to when serving multiple applications.""" + return "/metalstack.admin.v2.HousekeepingService" + + +class HousekeepingServiceClientSync(ConnectClientSync): + def machine( + self, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + return self.execute_unary( + request=request, + method=MethodInfo( + name="Machine", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + + diff --git a/python/metalstack/admin/v2/housekeeping_pb2.py b/python/metalstack/admin/v2/housekeeping_pb2.py new file mode 100644 index 00000000..75065747 --- /dev/null +++ b/python/metalstack/admin/v2/housekeeping_pb2.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: metalstack/admin/v2/housekeeping.proto +# Protobuf Python Version: 7.36.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 7, + 36, + 2, + '', + 'metalstack/admin/v2/housekeeping.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 +from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&metalstack/admin/v2/housekeeping.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\"u\n!HousekeepingServiceMachineRequest\x12P\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06\x61\x63tion\"\x9e\x01\n\"HousekeepingServiceMachineResponse\x12\x46\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionR\x06\x61\x63tion\x12\x30\n\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n\x19MachineHousekeepingAction\x12+\n\'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n)MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\nliveliness\x12\x38\n%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x9d\x01\n\x13HousekeepingService\x12\x85\x01\n\x07Machine\x12\x36.metalstack.admin.v2.HousekeepingServiceMachineRequest\x1a\x37.metalstack.admin.v2.HousekeepingServiceMachineResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x42\xd5\x01\n\x17\x63om.metalstack.admin.v2B\x11HousekeepingProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.admin.v2.housekeeping_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\021HousekeepingProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2' + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._loaded_options = None + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._serialized_options = b'\202\262\031\rvpn-connected' + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._loaded_options = None + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._serialized_options = b'\202\262\031\nliveliness' + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._loaded_options = None + _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._serialized_options = b'\202\262\031\tresurrect' + _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST'].fields_by_name['action']._loaded_options = None + _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST'].fields_by_name['action']._serialized_options = b'\272H\005\202\001\002\020\001' + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['Machine']._loaded_options = None + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['Machine']._serialized_options = b'\322\363\030\001\001\340\363\030\001' + _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_start=405 + _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_end=661 + _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST']._serialized_start=124 + _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST']._serialized_end=241 + _globals['_HOUSEKEEPINGSERVICEMACHINERESPONSE']._serialized_start=244 + _globals['_HOUSEKEEPINGSERVICEMACHINERESPONSE']._serialized_end=402 + _globals['_HOUSEKEEPINGSERVICE']._serialized_start=664 + _globals['_HOUSEKEEPINGSERVICE']._serialized_end=821 +# @@protoc_insertion_point(module_scope) diff --git a/python/metalstack/admin/v2/housekeeping_pb2.pyi b/python/metalstack/admin/v2/housekeeping_pb2.pyi new file mode 100644 index 00000000..67ebf14b --- /dev/null +++ b/python/metalstack/admin/v2/housekeeping_pb2.pyi @@ -0,0 +1,35 @@ +from buf.validate import validate_pb2 as _validate_pb2 +from metalstack.api.v2 import common_pb2 as _common_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from collections.abc import Iterable as _Iterable +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class MachineHousekeepingAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: _ClassVar[MachineHousekeepingAction] + MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: _ClassVar[MachineHousekeepingAction] + MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: _ClassVar[MachineHousekeepingAction] + MACHINE_HOUSEKEEPING_ACTION_RESURRECT: _ClassVar[MachineHousekeepingAction] +MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: MachineHousekeepingAction +MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: MachineHousekeepingAction +MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: MachineHousekeepingAction +MACHINE_HOUSEKEEPING_ACTION_RESURRECT: MachineHousekeepingAction + +class HousekeepingServiceMachineRequest(_message.Message): + __slots__ = ("action",) + ACTION_FIELD_NUMBER: _ClassVar[int] + action: MachineHousekeepingAction + def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ...) -> None: ... + +class HousekeepingServiceMachineResponse(_message.Message): + __slots__ = ("action", "modified_machine_ids") + ACTION_FIELD_NUMBER: _ClassVar[int] + MODIFIED_MACHINE_IDS_FIELD_NUMBER: _ClassVar[int] + action: MachineHousekeepingAction + modified_machine_ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ..., modified_machine_ids: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/python/metalstack/admin/v2/machine_connect.py b/python/metalstack/admin/v2/machine_connect.py index 6d91b6fe..80933712 100644 --- a/python/metalstack/admin/v2/machine_connect.py +++ b/python/metalstack/admin/v2/machine_connect.py @@ -45,9 +45,6 @@ async def set_state(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2. async def issues(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesResponse: raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") - async def housekeeping(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: - raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") - class MachineServiceASGIApplication(ConnectASGIApplication[MachineService]): def __init__(self, service: MachineService | AsyncGenerator[MachineService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None: @@ -144,16 +141,6 @@ def __init__(self, service: MachineService | AsyncGenerator[MachineService], *, ), function=svc.issues, ), - "/metalstack.admin.v2.MachineService/Housekeeping": Endpoint.unary( - method=MethodInfo( - name="Housekeeping", - service_name="metalstack.admin.v2.MachineService", - input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, - output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, - idempotency_level=IdempotencyLevel.UNKNOWN, - ), - function=svc.housekeeping, - ), }, interceptors=interceptors, read_max_bytes=read_max_bytes, @@ -348,26 +335,6 @@ async def issues( timeout_ms=timeout_ms, ) - async def housekeeping( - self, - request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, - *, - headers: Headers | Mapping[str, str] | None = None, - timeout_ms: int | None = None, - ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: - return await self.execute_unary( - request=request, - method=MethodInfo( - name="Housekeeping", - service_name="metalstack.admin.v2.MachineService", - input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, - output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, - idempotency_level=IdempotencyLevel.UNKNOWN, - ), - headers=headers, - timeout_ms=timeout_ms, - ) - @@ -391,8 +358,6 @@ def set_state(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.Machin raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") def issues(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceIssuesResponse: raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") - def housekeeping(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: - raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") class MachineServiceWSGIApplication(ConnectWSGIApplication): @@ -489,16 +454,6 @@ def __init__(self, service: MachineServiceSync, interceptors: Iterable[Intercept ), function=service.issues, ), - "/metalstack.admin.v2.MachineService/Housekeeping": EndpointSync.unary( - method=MethodInfo( - name="Housekeeping", - service_name="metalstack.admin.v2.MachineService", - input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, - output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, - idempotency_level=IdempotencyLevel.UNKNOWN, - ), - function=service.housekeeping, - ), }, interceptors=interceptors, read_max_bytes=read_max_bytes, @@ -693,24 +648,4 @@ def issues( timeout_ms=timeout_ms, ) - def housekeeping( - self, - request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, - *, - headers: Headers | Mapping[str, str] | None = None, - timeout_ms: int | None = None, - ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse: - return self.execute_unary( - request=request, - method=MethodInfo( - name="Housekeeping", - service_name="metalstack.admin.v2.MachineService", - input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingRequest, - output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceHousekeepingResponse, - idempotency_level=IdempotencyLevel.UNKNOWN, - ), - headers=headers, - timeout_ms=timeout_ms, - ) - diff --git a/python/metalstack/admin/v2/machine_pb2.py b/python/metalstack/admin/v2/machine_pb2.py index 29817e00..5bdd2f57 100644 --- a/python/metalstack/admin/v2/machine_pb2.py +++ b/python/metalstack/admin/v2/machine_pb2.py @@ -28,7 +28,7 @@ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/machine.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/machine.proto\x1a(metalstack/api/v2/predefined_rules.proto\"8\n\x18MachineServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"Q\n\x19MachineServiceGetResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"R\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"T\n\x1aMachineServiceListResponse\x12\x36\n\x08machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x08machines\";\n\x1bMachineServiceDeleteRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"T\n\x1cMachineServiceDeleteResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"\x89\x01\n\x1fMachineServiceBMCCommandRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12H\n\x07\x63ommand\x18\x02 \x01(\x0e\x32$.metalstack.api.v2.MachineBMCCommandB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07\x63ommand\";\n MachineServiceBMCCommandResponse\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\";\n\x1bMachineServiceGetBMCRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"e\n\x1cMachineServiceGetBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x01(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"U\n\x1cMachineServiceListBMCRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"f\n\x1dMachineServiceListBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x03(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"h\n$MachineServiceConsolePasswordRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\"\n\x06reason\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\n\x18\x80\x04R\x06reason\"a\n%MachineServiceConsolePasswordResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1a\n\x08password\x18\x02 \x01(\tR\x08password\"\xad\x01\n\x1dMachineServiceSetStateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12?\n\x05state\x18\x02 \x01(\x0e\x32\x1f.metalstack.api.v2.MachineStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x05state\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\"V\n\x1eMachineServiceSetStateResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"Z\n\x1bMachineServiceIssuesRequest\x12;\n\x05query\x18\x01 \x01(\x0b\x32%.metalstack.api.v2.MachineIssuesQueryR\x05query\"X\n\x1cMachineServiceIssuesResponse\x12\x38\n\x06issues\x18\x01 \x03(\x0b\x32 .metalstack.api.v2.MachineIssuesR\x06issues\"k\n!MachineServiceHousekeepingRequest\x12\x46\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionR\x06\x61\x63tion\"\x9e\x01\n\"MachineServiceHousekeepingResponse\x12\x46\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionR\x06\x61\x63tion\x12\x30\n\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n\x19MachineHousekeepingAction\x12+\n\'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n)MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\nliveliness\x12\x38\n%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x90\n\n\x0eMachineService\x12p\n\x03Get\x12-.metalstack.admin.v2.MachineServiceGetRequest\x1a..metalstack.admin.v2.MachineServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12s\n\x04List\x12..metalstack.admin.v2.MachineServiceListRequest\x1a/.metalstack.admin.v2.MachineServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.MachineServiceDeleteRequest\x1a\x31.metalstack.admin.v2.MachineServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x84\x01\n\nBMCCommand\x12\x34.metalstack.admin.v2.MachineServiceBMCCommandRequest\x1a\x35.metalstack.admin.v2.MachineServiceBMCCommandResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06GetBMC\x12\x30.metalstack.admin.v2.MachineServiceGetBMCRequest\x1a\x31.metalstack.admin.v2.MachineServiceGetBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12|\n\x07ListBMC\x12\x31.metalstack.admin.v2.MachineServiceListBMCRequest\x1a\x32.metalstack.admin.v2.MachineServiceListBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12\x94\x01\n\x0f\x43onsolePassword\x12\x39.metalstack.admin.v2.MachineServiceConsolePasswordRequest\x1a:.metalstack.admin.v2.MachineServiceConsolePasswordResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n\x08SetState\x12\x32.metalstack.admin.v2.MachineServiceSetStateRequest\x1a\x33.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06Issues\x12\x30.metalstack.admin.v2.MachineServiceIssuesRequest\x1a\x31.metalstack.admin.v2.MachineServiceIssuesResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12\x8a\x01\n\x0cHousekeeping\x12\x36.metalstack.admin.v2.MachineServiceHousekeepingRequest\x1a\x37.metalstack.admin.v2.MachineServiceHousekeepingResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cMachineProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/machine.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/machine.proto\x1a(metalstack/api/v2/predefined_rules.proto\"8\n\x18MachineServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"Q\n\x19MachineServiceGetResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"R\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"T\n\x1aMachineServiceListResponse\x12\x36\n\x08machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x08machines\";\n\x1bMachineServiceDeleteRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"T\n\x1cMachineServiceDeleteResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"\x89\x01\n\x1fMachineServiceBMCCommandRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12H\n\x07\x63ommand\x18\x02 \x01(\x0e\x32$.metalstack.api.v2.MachineBMCCommandB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07\x63ommand\";\n MachineServiceBMCCommandResponse\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\";\n\x1bMachineServiceGetBMCRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"e\n\x1cMachineServiceGetBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x01(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"U\n\x1cMachineServiceListBMCRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"f\n\x1dMachineServiceListBMCResponse\x12\x45\n\x0b\x62mc_details\x18\x01 \x03(\x0b\x32$.metalstack.api.v2.MachineBMCDetailsR\nbmcDetails\"h\n$MachineServiceConsolePasswordRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\"\n\x06reason\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\n\x18\x80\x04R\x06reason\"a\n%MachineServiceConsolePasswordResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1a\n\x08password\x18\x02 \x01(\tR\x08password\"\xad\x01\n\x1dMachineServiceSetStateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12?\n\x05state\x18\x02 \x01(\x0e\x32\x1f.metalstack.api.v2.MachineStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x05state\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\"V\n\x1eMachineServiceSetStateResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"Z\n\x1bMachineServiceIssuesRequest\x12;\n\x05query\x18\x01 \x01(\x0b\x32%.metalstack.api.v2.MachineIssuesQueryR\x05query\"X\n\x1cMachineServiceIssuesResponse\x12\x38\n\x06issues\x18\x01 \x03(\x0b\x32 .metalstack.api.v2.MachineIssuesR\x06issues2\x83\t\n\x0eMachineService\x12p\n\x03Get\x12-.metalstack.admin.v2.MachineServiceGetRequest\x1a..metalstack.admin.v2.MachineServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12s\n\x04List\x12..metalstack.admin.v2.MachineServiceListRequest\x1a/.metalstack.admin.v2.MachineServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.MachineServiceDeleteRequest\x1a\x31.metalstack.admin.v2.MachineServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x84\x01\n\nBMCCommand\x12\x34.metalstack.admin.v2.MachineServiceBMCCommandRequest\x1a\x35.metalstack.admin.v2.MachineServiceBMCCommandResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06GetBMC\x12\x30.metalstack.admin.v2.MachineServiceGetBMCRequest\x1a\x31.metalstack.admin.v2.MachineServiceGetBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12|\n\x07ListBMC\x12\x31.metalstack.admin.v2.MachineServiceListBMCRequest\x1a\x32.metalstack.admin.v2.MachineServiceListBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12\x94\x01\n\x0f\x43onsolePassword\x12\x39.metalstack.admin.v2.MachineServiceConsolePasswordRequest\x1a:.metalstack.admin.v2.MachineServiceConsolePasswordResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n\x08SetState\x12\x32.metalstack.admin.v2.MachineServiceSetStateRequest\x1a\x33.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06Issues\x12\x30.metalstack.admin.v2.MachineServiceIssuesRequest\x1a\x31.metalstack.admin.v2.MachineServiceIssuesResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cMachineProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -36,12 +36,6 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\014MachineProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2' - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._loaded_options = None - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._serialized_options = b'\202\262\031\rvpn-connected' - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._loaded_options = None - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._serialized_options = b'\202\262\031\nliveliness' - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._loaded_options = None - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._serialized_options = b'\202\262\031\tresurrect' _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._loaded_options = None _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001' _globals['_MACHINESERVICEDELETEREQUEST'].fields_by_name['uuid']._loaded_options = None @@ -82,10 +76,6 @@ _globals['_MACHINESERVICE'].methods_by_name['SetState']._serialized_options = b'\322\363\030\001\001\340\363\030\001' _globals['_MACHINESERVICE'].methods_by_name['Issues']._loaded_options = None _globals['_MACHINESERVICE'].methods_by_name['Issues']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002' - _globals['_MACHINESERVICE'].methods_by_name['Housekeeping']._loaded_options = None - _globals['_MACHINESERVICE'].methods_by_name['Housekeeping']._serialized_options = b'\322\363\030\001\001\340\363\030\001' - _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_start=2130 - _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_end=2386 _globals['_MACHINESERVICEGETREQUEST']._serialized_start=194 _globals['_MACHINESERVICEGETREQUEST']._serialized_end=250 _globals['_MACHINESERVICEGETRESPONSE']._serialized_start=252 @@ -122,10 +112,6 @@ _globals['_MACHINESERVICEISSUESREQUEST']._serialized_end=1767 _globals['_MACHINESERVICEISSUESRESPONSE']._serialized_start=1769 _globals['_MACHINESERVICEISSUESRESPONSE']._serialized_end=1857 - _globals['_MACHINESERVICEHOUSEKEEPINGREQUEST']._serialized_start=1859 - _globals['_MACHINESERVICEHOUSEKEEPINGREQUEST']._serialized_end=1966 - _globals['_MACHINESERVICEHOUSEKEEPINGRESPONSE']._serialized_start=1969 - _globals['_MACHINESERVICEHOUSEKEEPINGRESPONSE']._serialized_end=2127 - _globals['_MACHINESERVICE']._serialized_start=2389 - _globals['_MACHINESERVICE']._serialized_end=3685 + _globals['_MACHINESERVICE']._serialized_start=1860 + _globals['_MACHINESERVICE']._serialized_end=3015 # @@protoc_insertion_point(module_scope) diff --git a/python/metalstack/admin/v2/machine_pb2.pyi b/python/metalstack/admin/v2/machine_pb2.pyi index c23ce5ba..a5e0f3d5 100644 --- a/python/metalstack/admin/v2/machine_pb2.pyi +++ b/python/metalstack/admin/v2/machine_pb2.pyi @@ -3,7 +3,6 @@ from metalstack.api.v2 import common_pb2 as _common_pb2 from metalstack.api.v2 import machine_pb2 as _machine_pb2 from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2 from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from collections.abc import Iterable as _Iterable, Mapping as _Mapping @@ -11,17 +10,6 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor -class MachineHousekeepingAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = () - MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: _ClassVar[MachineHousekeepingAction] - MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: _ClassVar[MachineHousekeepingAction] - MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: _ClassVar[MachineHousekeepingAction] - MACHINE_HOUSEKEEPING_ACTION_RESURRECT: _ClassVar[MachineHousekeepingAction] -MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: MachineHousekeepingAction -MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: MachineHousekeepingAction -MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: MachineHousekeepingAction -MACHINE_HOUSEKEEPING_ACTION_RESURRECT: MachineHousekeepingAction - class MachineServiceGetRequest(_message.Message): __slots__ = ("uuid",) UUID_FIELD_NUMBER: _ClassVar[int] @@ -139,17 +127,3 @@ class MachineServiceIssuesResponse(_message.Message): ISSUES_FIELD_NUMBER: _ClassVar[int] issues: _containers.RepeatedCompositeFieldContainer[_machine_pb2.MachineIssues] def __init__(self, issues: _Optional[_Iterable[_Union[_machine_pb2.MachineIssues, _Mapping]]] = ...) -> None: ... - -class MachineServiceHousekeepingRequest(_message.Message): - __slots__ = ("action",) - ACTION_FIELD_NUMBER: _ClassVar[int] - action: MachineHousekeepingAction - def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ...) -> None: ... - -class MachineServiceHousekeepingResponse(_message.Message): - __slots__ = ("action", "modified_machine_ids") - ACTION_FIELD_NUMBER: _ClassVar[int] - MODIFIED_MACHINE_IDS_FIELD_NUMBER: _ClassVar[int] - action: MachineHousekeepingAction - modified_machine_ids: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ..., modified_machine_ids: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/python/metalstack/client/client.py b/python/metalstack/client/client.py index cb196823..18014274 100755 --- a/python/metalstack/client/client.py +++ b/python/metalstack/client/client.py @@ -5,6 +5,7 @@ import metalstack.admin.v2.audit_connect as admin_audit_connect import metalstack.admin.v2.component_connect as admin_component_connect import metalstack.admin.v2.filesystem_connect as admin_filesystem_connect +import metalstack.admin.v2.housekeeping_connect as admin_housekeeping_connect import metalstack.admin.v2.image_connect as admin_image_connect import metalstack.admin.v2.ip_connect as admin_ip_connect import metalstack.admin.v2.machine_connect as admin_machine_connect @@ -89,6 +90,9 @@ def component(self): def filesystem(self): return admin_filesystem_connect.FilesystemServiceClientSync(address=self._baseurl, http_client=self._client, interceptors=self._interceptors) + def housekeeping(self): + return admin_housekeeping_connect.HousekeepingServiceClientSync(address=self._baseurl, http_client=self._client, interceptors=self._interceptors) + def image(self): return admin_image_connect.ImageServiceClientSync(address=self._baseurl, http_client=self._client, interceptors=self._interceptors) From d66288ec5c003b4e0b5ebce03b631eeefd6f1708 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Thu, 5 Nov 2026 11:07:23 +0100 Subject: [PATCH 4/4] Split service --- doc/index.html | 7350 +++++++++-------- .../v2/adminv2connect/housekeeping.connect.go | 114 +- go/metalstack/admin/v2/housekeeping.pb.go | 388 +- go/permissions/servicepermissions.go | 582 +- js/metalstack/admin/v2/housekeeping_pb.d.ts | 158 +- js/metalstack/admin/v2/housekeeping_pb.js | 77 +- js/metalstack/admin/v2/housekeeping_pb.ts | 180 +- proto/metalstack/admin/v2/housekeeping.proto | 66 +- .../admin/v2/housekeeping_connect.py | 178 +- .../metalstack/admin/v2/housekeeping_pb2.py | 48 +- .../metalstack/admin/v2/housekeeping_pb2.pyi | 64 +- 11 files changed, 4901 insertions(+), 4304 deletions(-) diff --git a/doc/index.html b/doc/index.html index 03055bcc..a44ec72b 100644 --- a/doc/index.html +++ b/doc/index.html @@ -836,33 +836,6 @@

      Table of Contents

    • -
    • - metalstack/admin/v2/housekeeping.proto - -
    • - -
    • metalstack/api/v2/image.proto
        @@ -922,147 +895,6 @@

        Table of Contents

        -
      • - metalstack/admin/v2/image.proto - -
      • - - -
      • - metalstack/api/v2/ip.proto - -
      • - - -
      • - metalstack/admin/v2/ip.proto - -
      • - -
      • metalstack/api/v2/network.proto
          @@ -1512,86 +1344,104 @@

          Table of Contents

        • - metalstack/admin/v2/machine.proto + metalstack/api/v2/vpn.proto +
        • + + +
        • + metalstack/admin/v2/housekeeping.proto + +
        • + + +
        • + metalstack/admin/v2/image.proto + @@ -1599,63 +1449,244 @@

          Table of Contents

        • - metalstack/admin/v2/network.proto + metalstack/api/v2/ip.proto -
        • - - -
        • - metalstack/admin/v2/partition.proto - +
        • + + +
        • + metalstack/admin/v2/ip.proto + +
        • + + +
        • + metalstack/admin/v2/machine.proto + +
        • + + +
        • + metalstack/admin/v2/network.proto + +
        • + + +
        • + metalstack/admin/v2/partition.proto +
          • MMachineSizeCapacity @@ -2439,21 +2470,6 @@

            Table of Contents

          • -
          • - metalstack/api/v2/vpn.proto - -
          • - -
          • metalstack/admin/v2/vpn.proto
              @@ -7104,13 +7120,13 @@

              FilesystemService

              -

              metalstack/admin/v2/housekeeping.proto

              Top +

              metalstack/api/v2/image.proto

              Top

              -

              HousekeepingServiceMachineRequest

              -

              HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request.

              +

              Image

              +

              Image.

              @@ -7120,168 +7136,45 @@

              HousekeepingServi

              - - + + - + - -
              actionMachineHousekeepingActionidstring

              Housekeeping Action to perform.

              Id of this image.

              - - - - - -

              HousekeepingServiceMachineResponse

              -

              HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request.

              - - - - - - - + + + + + + - - + + - + - + + + + + + + + + + + + + + + - - - - -
              FieldTypeLabelDescription
              metaMeta

              Meta for this image.

              actionMachineHousekeepingActionurlstring

              Housekeeping Action which was performed.

              URL where this image is located.

              modified_machine_idsnamestringoptional

              Name of this image.

              description stringoptional

              Description of this image.

              featuresImageFeature repeated

              Modified Machine IDs modified during this housekeeping action.

              - - - - - - - -

              MachineHousekeepingAction

              -

              HousekeepingAction defines which housekeeping action should be triggered.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED0

              MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined.

              MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED1

              MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not.

              MACHINE_HOUSEKEEPING_ACTION_LIVELINESS2

              MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines.

              MACHINE_HOUSEKEEPING_ACTION_RESURRECT3

              MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines.

              - - - - - -

              HousekeepingService

              -

              HousekeepingService provides housekeeping operations.

              - - - - - - - - - - - - - - -
              Method NameRequest TypeResponse TypeDescription
              MachineHousekeepingServiceMachineRequestHousekeepingServiceMachineResponse

              Machine housekeeping

              - - - - -
              -

              metalstack/api/v2/image.proto

              Top -
              -

              - - -

              Image

              -

              Image.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -7674,13 +7567,13 @@

              ImageService

              -

              metalstack/admin/v2/image.proto

              Top +

              metalstack/api/v2/network.proto

              Top

              -

              ImageServiceCreateRequest

              -

              ImageServiceCreateRequest is the request payload for creating an image.

              +

              ChildPrefixLength

              +

              ChildPrefixLength.

              FieldTypeLabelDescription
              idstring

              Id of this image.

              metaMeta

              Meta for this image.

              urlstring

              URL where this image is located.

              namestringoptional

              Name of this image.

              descriptionstringoptional

              Description of this image.

              featuresImageFeaturerepeated

              Features of this image.

              Features of this image.

              @@ -7690,34 +7583,17 @@

              ImageServiceCreateRequest

              - - - - + + + + - -
              imagemetalstack.api.v2.Image

              Image is the image to create.

              ipv4uint32optional

              IPv4 bit length of this network in this addressfamily.

              - - - - - -

              ImageServiceCreateResponse

              -

              ImageServiceCreateResponse is the response payload for creating an image.

              - - - - - - - - - - - - + + + + @@ -7727,8 +7603,8 @@

              ImageServiceCreateRespon -

              ImageServiceDeleteRequest

              -

              ImageServiceDeleteRequest is the request payload for deleting an image.

              +

              Network

              +

              Network.

              FieldTypeLabelDescription
              imagemetalstack.api.v2.Image

              Image contains the created image.

              ipv6uint32optional

              IPv6 bit length of this network in this addressfamily.

              @@ -7741,135 +7617,120 @@

              ImageServiceDeleteRequest

              - + - -
              id string

              ID of the image to delete.

              Id of this network.

              - - - - - -

              ImageServiceDeleteResponse

              -

              ImageServiceDeleteResponse is the response payload for deleting an image.

              - - - - - - - - - - + + - + - -
              FieldTypeLabelDescription
              imagemetalstack.api.v2.ImagemetaMeta

              Image contains the deleted image.

              Meta for this network.

              - - - - - -

              ImageServiceUpdateRequest

              -

              ImageServiceUpdateRequest is the request payload for updating an image.

              - - - - - - - - - + - - + + - - - - + + + + - + - + - + - + - + - + - - + + - + - - + + + + + + + + + - + - - + + - + - - - - + + + + - -
              FieldTypeLabelDescription
              idname string

              Id of this image.

              optional

              Name of this network.

              update_metametalstack.api.v2.UpdateMeta

              UpdateMeta contains the timestamp and strategy to be used in this update request.

              descriptionstringoptional

              Description of this network.

              urlpartition string optional

              URL where this image is located.

              Partition where this network will be created.

              nameproject string optional

              Name of this image.

              Project where this network belongs to.

              descriptionnamespace string optional

              Description of this image.

              Namespace if specified, this network is namespaced and can therefore overlap with others. +Will be equal with project most of the time.

              featuresmetalstack.api.v2.ImageFeatureprefixesstring repeated

              Features of this image.

              Prefixes in this network.

              classificationmetalstack.api.v2.ImageClassificationdestination_prefixesstringrepeated

              Destination Prefixes in this network.

              default_child_prefix_lengthChildPrefixLength

              Classification of this image.

              Default Child Prefix length defines the bit length of a child network created per address family, if not specified during the allocate request.

              expires_atgoogle.protobuf.Timestampmin_child_prefix_lengthChildPrefixLength

              ExpiresAt indicates that usage is not possible after this date.

              Min Child Prefix length asserts that during child network creation the requested bit length is greater or equal the min child prefix length.

              labelsmetalstack.api.v2.UpdateLabelsoptional

              Labels to update on this image.

              typeNetworkType

              Type of the network.

              - - - - - -

              ImageServiceUpdateResponse

              -

              ImageServiceUpdateResponse is the response payload for updating an image.

              - - - - - - - + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + - + @@ -7879,8 +7740,8 @@

              ImageServiceUpdateRespon -

              ImageServiceUsageRequest

              -

              ImageServiceUsageRequest is the request payload for getting image usage.

              +

              NetworkConsumption

              +

              NetworkConsumption contains ip and prefix usage by addressfamily.

              FieldTypeLabelDescription
              nat_typeNATType

              NATType of this network.

              imagemetalstack.api.v2.Imagevrfuint32optional

              VRF of this network has this VNI.

              parent_networkstringoptional

              Parent Network points to the id of the parent network if any.

              additional_announcable_cidrsstringrepeated

              AdditionalAnnouncableCidrs will be added to the allow list on the switch which prefixes might be announced.

              consumptionNetworkConsumption

              Image contains the updated image.

              Consumption of IPs and prefixes in this network.

              @@ -7890,10 +7751,17 @@

              ImageServiceUsageRequest

              - - + + - + + + + + + + + @@ -7903,8 +7771,8 @@

              ImageServiceUsageRequestImageServiceUsageResponse

              -

              ImageServiceUsageResponse is the response payload for getting image usage.

              +

              NetworkQuery

              +

              NetworkQuery defines which networks to query.

              querymetalstack.api.v2.ImageQueryipv4NetworkUsage

              Query for which images the usage should be reported.

              IPv4 network usage.

              ipv6NetworkUsage

              IPv6 network usage, this can be approximated for high numbers.

              @@ -7914,145 +7782,101 @@

              ImageServiceUsageResponse

              - - - - + + + + - -
              image_usagemetalstack.api.v2.ImageUsagerepeated

              Images contains usage information.

              idstringoptional

              Id of the network to query.

              - - - - - - - - - - - -

              ImageService

              -

              ImageService provides image management operations.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              Method NameRequest TypeResponse TypeDescription
              CreateImageServiceCreateRequestImageServiceCreateResponse

              Creates a new image.

              UpdateImageServiceUpdateRequestImageServiceUpdateResponse

              Updates an image.

              DeleteImageServiceDeleteRequestImageServiceDeleteResponse

              Deletes an image.

              UsageImageServiceUsageRequestImageServiceUsageResponse

              Returns the usage of images.

              - - - - -
              -

              metalstack/api/v2/ip.proto

              Top -
              -

              - - -

              IP

              -

              IP is an IP address which can be used as loadbalancer addresses.

              - - - - - - - + + + + + + - + - - + + - - - - + + + + - + - - + + - + - - + + - + - - + + - + - - + + - + + + + + + + + - - + + + + + + + + + - - - + + + - - + + - + + + + + + + + @@ -8062,8 +7886,8 @@

              IP

              -

              IPQuery

              -

              IPQuery can be used to query a IP or a list of IP.

              +

              NetworkServiceCreateRequest

              +

              NetworkServiceCreateRequest.

              FieldTypeLabelDescription
              namestringoptional

              Name of this network.

              uuiddescription string

              Uuid of this ip.

              optional

              Description of this network.

              metaMeta

              Meta for this ip.

              partitionstringoptional

              Partition where this network will be created.

              ipproject string

              Ip is either ipv4 or ipv6 address.

              optional

              Project where this network belongs to.

              namenamespace string

              Name of this ip.

              optional

              Namespace where this network belongs to.

              descriptionprefixes string

              Description of this ip.

              repeated

              Prefixes in this network.

              networkdestination_prefixes string

              Network is the network this ip belongs to.

              repeated

              Destination Prefixes in this network.

              projectvrfuint32optional

              VRF of this network has this VNI.

              parent_network string

              Project where this ip address belongs to.

              optional

              Parent Network points to the id of the parent network if any.

              address_familyNetworkAddressFamilyoptional

              Addressfamily to query.

              typeIPType

              Type of this ip.

              NetworkTypeoptional

              Type of the network to query for.

              namespacestringnat_typeNATType optional

              Namespace if specified this ip is from a namespaced network and can therefore overlap with others. -Will be equal with project most of the time.

              NATType configured.

              labelsLabelsoptional

              Labels on this network.

              @@ -8073,80 +7897,59 @@

              IPQuery

              - + - - + + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - - - - - + - - + + - + - - - - - - - - + - + @@ -8156,8 +7959,8 @@

              IPQuery

              -

              IPServiceCreateRequest

              -

              IPServiceCreateRequest is the request payload for an IP create request.

              +

              NetworkServiceCreateResponse

              +

              NetworkServiceCreateResponse.

              ipproject stringoptional

              Ip the ip to list.

              Project where this network belongs to.

              networkname string optional

              Network from which the IPs are to list.

              Name of this network.

              projectdescription string optional

              Project of the ips to list.

              Description of this network.

              namepartition string optional

              Name of this ip.

              Partition where this network will be created.

              uuidstringoptional

              UUID for which these IPs should be filtered.

              labelsLabels

              Labels on this network.

              machinestringoptional

              Machine for which these IPs should be filtered.

              parent_prefix_cidrparent_network string optional

              ParentPrefixCidr for which this ips should get filtered.

              labelsLabelsoptional

              Labels for which these IPs should be filtered.

              Parent Network points to the id of the parent network if any.

              typeIPTypelengthChildPrefixLength optional

              Static if set to true, this will be a Static ip.

              Length per addressfamily.

              address_familyIPAddressFamilyoptional

              Address family of the IPs to list, defaults to all address families.

              namespacestringNetworkAddressFamily optional

              Namespace can be specified to get the ip of a namespace.

              AddressFamily to create, defaults to the same as the parent.

              @@ -8168,65 +7971,40 @@

              IPServiceCreateRequest

              - - - - - - - - + - - - - - - - - + - - - - - - + +
              networkstring

              Network from which the IP should be created.

              projectstringNetwork

              Project of the ip.

              namestringoptional

              Name of the ip.

              Network is the created network.

              descriptionstringoptional

              Description of the ip.

              + + + + + +

              NetworkServiceDeleteRequest

              +

              NetworkServiceDeleteRequest.

              + + + + + + + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - + + @@ -8236,8 +8014,8 @@

              IPServiceCreateRequest

              -

              IPServiceCreateResponse

              -

              IPServiceCreateResponse is the response payload for an IP create request.

              +

              NetworkServiceDeleteResponse

              +

              NetworkServiceDeleteResponse.

              FieldTypeLabelDescription
              ipid stringoptional

              IP if given try to create this ip if still available.

              ID of the network to get.

              machineproject stringoptional

              Machine for which this ip should get created.

              labelsLabelsoptional

              Labels to put onto the ip.

              typeIPTypeoptional

              Type of the IP, ether ephemeral (default), or static.

              address_familyIPAddressFamilyoptional

              Addressfamily of the IP to create, defaults to ipv4.

              Project of the network.

              @@ -8247,10 +8025,10 @@

              IPServiceCreateResponse

              - - + + - + @@ -8260,8 +8038,8 @@

              IPServiceCreateResponse

              -

              IPServiceDeleteRequest

              -

              IPServiceDeleteRequest is the request payload for a ip delete request.

              +

              NetworkServiceGetRequest

              +

              NetworkServiceGetRequest.

              ipIPnetworkNetwork

              Ip the ip.

              Network is the deleted network.

              @@ -8271,17 +8049,17 @@

              IPServiceDeleteRequest

              - + - + - + @@ -8291,8 +8069,8 @@

              IPServiceDeleteRequest

              -

              IPServiceDeleteResponse

              -

              IPServiceDeleteResponse is the response payload for an IP delete request.

              +

              NetworkServiceGetResponse

              +

              NetworkServiceGetResponse.

              ipid string

              IP of the ip to delete.

              ID of the network to get.

              project string

              Project of the ip.

              Project of the network.

              @@ -8302,10 +8080,10 @@

              IPServiceDeleteResponse

              - - + + - + @@ -8315,8 +8093,8 @@

              IPServiceDeleteResponse

              -

              IPServiceGetRequest

              -

              IPServiceGetRequest is the request payload for an IP get request.

              +

              NetworkServiceListBaseNetworksRequest

              +

              NetworkServiceListRequest.

              ipIPnetworkNetwork

              Ip the ip.

              Network which was requested to get.

              @@ -8325,25 +8103,18 @@

              IPServiceGetRequest

              - - - - - - - - + - - - - + + + + @@ -8353,8 +8124,8 @@

              IPServiceGetRequest

              -

              IPServiceGetResponse

              -

              IPServiceGetResponse is the response payload for an IP get request.

              +

              NetworkServiceListBaseNetworksResponse

              +

              NetworkServiceListResponse.

              ipstring

              IP of the ip to get.

              project string

              Project of the ip.

              Project of the base networks to list.

              namespacestringoptional

              Namespace can be specified to get the ip of a namespace.

              queryNetworkQuery

              Query which specifies which networks to return.

              @@ -8364,10 +8135,10 @@

              IPServiceGetResponse

              - - - - + + + + @@ -8377,8 +8148,8 @@

              IPServiceGetResponse

              -

              IPServiceListRequest

              -

              IPServiceListRequest is the request payload for an IP list request.

              +

              NetworkServiceListRequest

              +

              NetworkServiceListRequest.

              ipIP

              Ip the ip.

              networksNetworkrepeated

              Networks are the requested networks.

              @@ -8391,14 +8162,14 @@

              IPServiceListRequest

              - + - + - + @@ -8408,8 +8179,8 @@

              IPServiceListRequest

              -

              IPServiceListResponse

              -

              IPServiceListResponse is the response payload for an IP list request.

              +

              NetworkServiceListResponse

              +

              NetworkServiceListResponse.

              project string

              Project of the ips to list.

              Project of the networks to list.

              queryIPQueryNetworkQuery

              Query to list one or more IPs.

              Query which specifies which networks to return.

              @@ -8419,10 +8190,10 @@

              IPServiceListResponse

              - - + + - + @@ -8432,8 +8203,8 @@

              IPServiceListResponse

              -

              IPServiceUpdateRequest

              -

              IPServiceUpdateRequest is the request payload for an IP update request.

              +

              NetworkServiceUpdateRequest

              +

              NetworkServiceUpdateRequest.

              ipsIPnetworksNetwork repeated

              Ips the ips.

              Networks are the requested networks.

              @@ -8443,10 +8214,10 @@

              IPServiceUpdateRequest

              - + - + @@ -8460,35 +8231,28 @@

              IPServiceUpdateRequest

              - + - + - - - - - - - - + - + @@ -8498,8 +8262,8 @@

              IPServiceUpdateRequest

              -

              IPServiceUpdateResponse

              -

              IPServiceUpdateResponse is the response payload for a ip update request.

              +

              NetworkServiceUpdateResponse

              +

              NetworkServiceUpdateResponse.

              ipid string

              Ip the ip address to update.

              ID of the network to get.

              project string

              Project id of the ip.

              Project of the network.

              name string optional

              Name of this ip.

              Name of this network.

              description string optional

              Description of this ip.

              typeIPTypeoptional

              Type of this ip.

              Description of this network.

              labels UpdateLabels optional

              Labels on this ip.

              Labels on this network.

              @@ -8509,10 +8273,10 @@

              IPServiceUpdateResponse

              - - + + - + @@ -8522,39 +8286,84 @@

              IPServiceUpdateResponse

              +

              NetworkUsage

              +

              NetworkUsage reports core metrics about available and used IPs or Prefixes in a Network.

              - -

              IPAddressFamily

              -

              IPAddressFamily defines either IPv4 or IPv6 Addressfamily.

              -
              ipIPnetworkNetwork

              Ip the ip.

              Network is the updated network.

              - - - - - - - - - - - - - - - - - - - - - - + +
              NameNumberDescription
              IP_ADDRESS_FAMILY_UNSPECIFIED0

              IP_ADDRESS_FAMILY_UNSPECIFIED is not specified.

              IP_ADDRESS_FAMILY_V41

              IP_ADDRESS_FAMILY_V4 defines a IPv4 address.

              IP_ADDRESS_FAMILY_V62

              IP_ADDRESS_FAMILY_V6 defines a IPv6 address.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              available_ipsuint64

              the total available IPs.

              used_ipsuint64

              the total used IPs.

              available_prefixesuint64

              the total available 2-bit prefixes.

              used_prefixesuint64

              the total used Prefixes.

              + + + + + + + +

              NATType

              +

              NATType defines how and if outgoing traffic is translated.

              + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              NAT_TYPE_UNSPECIFIED0

              NAT_TYPE_UNSPECIFIED indicates a unspecified nat type.

              NAT_TYPE_NONE1

              NAT_TYPE_NONE indicates that no nat is configured.

              NAT_TYPE_IPV4_MASQUERADE2

              NAT_TYPE_IPV4_MASQUERADE masquerade ipv4 behind gateway ip when traffic enters this network.

              -

              IPType

              -

              IPType specifies different IP address types.

              +

              NetworkAddressFamily

              +

              NetworkAddressFamily defines the address family of a network.

              @@ -8562,21 +8371,103 @@

              IPType

              - + - + - + - + - + - + + + + + + + + + + +
              NameNumberDescription
              IP_TYPE_UNSPECIFIEDNETWORK_ADDRESS_FAMILY_UNSPECIFIED 0

              IP_TYPE_UNSPECIFIED is not specified.

              NETWORK_ADDRESS_FAMILY_UNSPECIFIED is not specified.

              IP_TYPE_EPHEMERALNETWORK_ADDRESS_FAMILY_V4 1

              IP_TYPE_EPHEMERAL defines an ephemeral IP address which is freed/deleted after usage.

              NETWORK_ADDRESS_FAMILY_V4 defines a network with IPv4 address prefixes.

              IP_TYPE_STATICNETWORK_ADDRESS_FAMILY_V6 2

              IP_TYPE_STATIC defines a static ip address which must be freed/deleted explicitly.

              NETWORK_ADDRESS_FAMILY_V6 defines a network with IPv6 address prefixes.

              NETWORK_ADDRESS_FAMILY_DUAL_STACK3

              NETWORK_ADDRESS_FAMILY_DUAL_STACK defines a network with both IPv4 and IPv6 address prefixes.

              + +

              NetworkType

              +

              NetworkType indicates the purpose of the network, it cannot be changed after creation.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8586,8 +8477,8 @@

              IPType

              -

              IPService

              -

              IPService provides IP address management operations.

              +

              NetworkService

              +

              NetworkService provides network management operations for end users, for example with project scope.

              NameNumberDescription
              NETWORK_TYPE_UNSPECIFIED0

              NETWORK_TYPE_UNSPECIFIED indicates a unknown network type.

              NETWORK_TYPE_EXTERNAL1

              NETWORK_TYPE_EXTERNAL indicates network where multiple projects can allocate ips, it offers connectivity to other external networks. +In most cases this is the internet network or a network which offers connectivity to legacy datacenter networks. +If it is not project scoped everyone can allocate Ips in this network, otherwise only from the same project ip allocation is possible.

              NETWORK_TYPE_UNDERLAY2

              NETWORK_TYPE_UNDERLAY indicates a underlay network. +The underlay network connects all switches and the firewalls to build a EVPN dataplane. +It is not project scoped. Is part of the dataplane and reserved for administrative purposes.

              NETWORK_TYPE_SUPER3

              NETWORK_TYPE_SUPER indicates a super network which is only used to create child networks. +If the vrf id is given, child networks will inherit this vrf. +If the vrf id is nil in this network, child vrf is taken from the pool. +If the partition is given, child networks inherit the partition. +If the partition is nil, child networks also do not have a partition (i.e. requires vrf is distributed across all partitions). +If the partition is given, only one super network in that partition can be created. +If the partition is nil, multiple super networks can exist. Then, for child network creation the network id must be specified (base networks can be queried by label selector). +For child creation destination prefixes will be inherited. +If this is project scoped, the child project must match, otherwise can be freely specified.

              NETWORK_TYPE_SUPER_NAMESPACED4

              NETWORK_TYPE_SUPER_NAMESPACED indicates a super network which is only used to create child networks. +All rules from NETWORK_TYPE_SUPER apply for them as well. +In addition, a network namespace will be created for every project. Child networks per project will have disjunct prefixes. +Prefix allocation will start again with the same base cidr for every project / namespace. +This will allow the creation of much more child networks from a given super network size.

              NETWORK_TYPE_CHILD5

              NETWORK_TYPE_CHILD indicates a child network of a project. +This is the only network type that can be created by a user. +Connectivity to external networks is not possible without going through an additional firewall in this network which creates connectivity to other networks. +Such a network will be created either from a super, or super namespaced.

              NETWORK_TYPE_CHILD_SHARED6

              NETWORK_TYPE_CHILD_SHARED indicates a child network of a project which allows the allocation of ips from different projects. +Connectivity to external networks is not possible, as for normal child networks. +These networks are usually used to provide connectivity to shared services which are created in child networks, e.g. storage. +With this approach the number of hops can be reduced to the bare minimum in order to increase availability and performance. +Only one child shared network per project is allowed.

              @@ -8596,37 +8487,44 @@

              IPService

              - - - + + + - - - + + + - - - + + + - - - + + + + + + + + + + - - - + + + @@ -8636,13 +8534,13 @@

              IPService

              -

              metalstack/admin/v2/ip.proto

              Top +

              metalstack/api/v2/partition.proto

              Top

              -

              IPServiceListRequest

              -

              IPServiceListRequest is the request payload for listing IP addresses.

              +

              DNSServer

              +

              DNSServer.

              Method NameRequest TypeResponse TypeDescription
              GetIPServiceGetRequestIPServiceGetResponse

              Returns the IP address with the specified IP.

              NetworkServiceGetRequestNetworkServiceGetResponse

              Returns the network with the specified ID.

              CreateIPServiceCreateRequestIPServiceCreateResponse

              Creates a new IP address.

              NetworkServiceCreateRequestNetworkServiceCreateResponse

              Creates a child network from a super network.

              UpdateIPServiceUpdateRequestIPServiceUpdateResponse

              Updates an IP address.

              NetworkServiceUpdateRequestNetworkServiceUpdateResponse

              Updates a network.

              ListIPServiceListRequestIPServiceListResponse

              Returns the list of all IP addresses.

              NetworkServiceListRequestNetworkServiceListResponse

              Returns the list of all project networks.

              ListBaseNetworksNetworkServiceListBaseNetworksRequestNetworkServiceListBaseNetworksResponse

              ListBaseNetworks returns all base networks that can be used for either child network or IP allocation.

              DeleteIPServiceDeleteRequestIPServiceDeleteResponse

              Deletes an IP address.

              NetworkServiceDeleteRequestNetworkServiceDeleteResponse

              Deletes a network.

              @@ -8652,10 +8550,10 @@

              IPServiceListRequest

              - - + + - + @@ -8665,8 +8563,8 @@

              IPServiceListRequest

              -

              IPServiceListResponse

              -

              IPServiceListResponse is the response payload for listing IP addresses.

              +

              NTPServer

              +

              NTPServer.

              querymetalstack.api.v2.IPQueryipstring

              Query to search for IP addresses.

              IP address of this dns server.

              @@ -8676,10 +8574,10 @@

              IPServiceListResponse

              - - - - + + + + @@ -8689,72 +8587,8 @@

              IPServiceListResponse

              - - - - - - -

              IPService

              -

              IPService provides IP address management operations.

              -
              ipsmetalstack.api.v2.IPrepeated

              IPs contains the list of IP addresses.

              addressstring

              Address either as ip or hostname.

              - - - - - - - - - - - - - -
              Method NameRequest TypeResponse TypeDescription
              ListIPServiceListRequestIPServiceListResponse

              Returns the list of all IP addresses.

              - - - - -
              -

              metalstack/api/v2/network.proto

              Top -
              -

              - - -

              ChildPrefixLength

              -

              ChildPrefixLength.

              - - - - - - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              ipv4uint32optional

              IPv4 bit length of this network in this addressfamily.

              ipv6uint32optional

              IPv6 bit length of this network in this addressfamily.

              - - - - - -

              Network

              -

              Network.

              +

              Partition

              +

              Partition is a failure domain with machines and switches.

              @@ -8767,120 +8601,119 @@

              Network

              - + - - - - - - - - + - - - - - - - - - + + - - - - + + + + - - - - + + + + - - + + - + - + - + - - - - - - + +
              id string

              Id of this network.

              ID of this partition.

              meta Meta

              Meta for this network.

              namestringoptional

              Name of this network.

              Meta for this partition.

              description stringoptional

              Description of this network.

              partitionstringoptional

              Partition where this network will be created.

              Description of this partition.

              projectstringoptional

              Project where this network belongs to.

              boot_configurationPartitionBootConfiguration

              PartitionBootConfiguration defines how metal-hammer boots.

              namespacestringoptional

              Namespace if specified, this network is namespaced and can therefore overlap with others. -Will be equal with project most of the time.

              dns_serversDNSServerrepeated

              DNSServers for this partition.

              prefixesstringntp_serversNTPServer repeated

              Prefixes in this network.

              NTPServers for this partition.

              destination_prefixesmgmt_service_addresses string repeated

              Destination Prefixes in this network.

              ManagementServiceAddresses defines where the management is reachable. +should be in the form <ip|host>:<port>.

              default_child_prefix_lengthChildPrefixLength

              Default Child Prefix length defines the bit length of a child network created per address family, if not specified during the allocate request.

              + + + + + +

              PartitionBootConfiguration

              +

              PartitionBootConfiguration defines how metal-hammer boots.

              + + + + + + + - - + + - + - - + + - + - - + + - + - - - - - - + +
              FieldTypeLabelDescription
              min_child_prefix_lengthChildPrefixLengthimage_urlstring

              Min Child Prefix length asserts that during child network creation the requested bit length is greater or equal the min child prefix length.

              ImageURL the url to download the initrd for the boot image.

              typeNetworkTypekernel_urlstring

              Type of the network.

              KernelURL the url to download the kernel for the boot image.

              nat_typeNATTypecommandlinestring

              NATType of this network.

              Commandline the kernel command line for the boot image.

              vrfuint32optional

              VRF of this network has this VNI.

              + + + + + +

              PartitionQuery

              +

              PartitionQuery is used to search partitions.

              + + + + + + + - + - - - - - - - - + - - - - + + + + @@ -8890,8 +8723,8 @@

              Network

              -

              NetworkConsumption

              -

              NetworkConsumption contains ip and prefix usage by addressfamily.

              +

              PartitionServiceGetRequest

              +

              PartitionServiceGetRequest is the request payload for a partition get request.

              FieldTypeLabelDescription
              parent_networkid string optional

              Parent Network points to the id of the parent network if any.

              additional_announcable_cidrsstringrepeated

              AdditionalAnnouncableCidrs will be added to the allow list on the switch which prefixes might be announced.

              ID of the partition to get.

              consumptionNetworkConsumption

              Consumption of IPs and prefixes in this network.

              labelsLabelsoptional

              Labels lists only partitions containing the given labels.

              @@ -8901,17 +8734,34 @@

              NetworkConsumption

              - - + + - + + +
              ipv4NetworkUsageidstring

              IPv4 network usage.

              ID of the partition to get.

              + + + + + +

              PartitionServiceGetResponse

              +

              PartitionServiceGetResponse is the response payload for a partition get request.

              + + + + + + + + - - + + - + @@ -8921,8 +8771,8 @@

              NetworkConsumption

              -

              NetworkQuery

              -

              NetworkQuery defines which networks to query.

              +

              PartitionServiceListRequest

              +

              PartitionServiceListRequest is the request payload for a partition list request.

              FieldTypeLabelDescription
              ipv6NetworkUsagepartitionPartition

              IPv6 network usage, this can be approximated for high numbers.

              Partition is the partition.

              @@ -8932,101 +8782,171 @@

              NetworkQuery

              - - - - + + + + - - - - - - + +
              idstringoptional

              Id of the network to query.

              queryPartitionQuery

              Query for partitions.

              namestringoptional

              Name of this network.

              + + + + + +

              PartitionServiceListResponse

              +

              PartitionServiceListResponse is the response payload for a partition list request.

              + + + + + + + - - - - + + + + - - - - - - + +
              FieldTypeLabelDescription
              descriptionstringoptional

              Description of this network.

              partitionsPartitionrepeated

              Partitions are the partitions.

              partitionstringoptional

              Partition where this network will be created.

              + + + + + + + + + + + +

              PartitionService

              +

              PartitionService provides partition management operations.

              + + + + + + + + + + + + + + + + + + + + + +
              Method NameRequest TypeResponse TypeDescription
              GetPartitionServiceGetRequestPartitionServiceGetResponse

              Returns the partition with the specified ID.

              ListPartitionServiceListRequestPartitionServiceListResponse

              Returns the list of all partitions.

              + + + + +
              +

              metalstack/api/v2/size.proto

              Top +
              +

              + + +

              Size

              +

              Size.

              + + + + + + + - + - - + + - - - - + + + + - + - - + + - + - - - - - - - - + - - - - + + + + + +
              FieldTypeLabelDescription
              projectid stringoptional

              Project where this network belongs to.

              Id of this size.

              namespacestringoptional

              Namespace where this network belongs to.

              metaMeta

              Meta for this size.

              prefixesname stringrepeated

              Prefixes in this network.

              optional

              Name of this size.

              destination_prefixesdescription stringrepeated

              Destination Prefixes in this network.

              vrfuint32 optional

              VRF of this network has this VNI.

              Description of this size.

              parent_networkstringoptional

              Parent Network points to the id of the parent network if any.

              constraintsSizeConstraintrepeated

              Constraints which must match that a specific machine is considered of this size.

              + + + + + +

              SizeConstraint

              +

              SizeConstraint defines the boundaries for certain type of machine property which must match to identify this machine as this size.

              + + + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - + + - + @@ -9036,8 +8956,8 @@

              NetworkQuery

              -

              NetworkServiceCreateRequest

              -

              NetworkServiceCreateRequest.

              +

              SizeQuery

              +

              SizeQuery is used to search sizes.

              FieldTypeLabelDescription
              address_familyNetworkAddressFamilyoptional

              Addressfamily to query.

              typeSizeConstraintType

              Type a machine matches to a size in order to make them easier to categorize.

              typeNetworkTypeoptional

              Type of the network to query for.

              minuint64

              Min the minimum value of the constraint.

              nat_typeNATTypeoptional

              NATType configured.

              maxuint64

              Max the maximum value of the constraint.

              labelsLabelsidentifierstring optional

              Labels on this network.

              Identifier glob pattern which matches to the given type, for example gpu pci id.

              @@ -9047,59 +8967,31 @@

              NetworkServiceCreateReque

              - + - - + + - + - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - + @@ -9109,8 +9001,8 @@

              NetworkServiceCreateReque -

              NetworkServiceCreateResponse

              -

              NetworkServiceCreateResponse.

              +

              SizeServiceGetRequest

              +

              SizeServiceGetRequest is the request payload for a size get request.

              projectid string

              Project where this network belongs to.

              optional

              ID of the size to get.

              name string optional

              Name of this network.

              Name of the size to query.

              description string optional

              Description of this network.

              partitionstringoptional

              Partition where this network will be created.

              Description of the size to query.

              labels Labels

              Labels on this network.

              parent_networkstringoptional

              Parent Network points to the id of the parent network if any.

              lengthChildPrefixLengthoptional

              Length per addressfamily.

              address_familyNetworkAddressFamily optional

              AddressFamily to create, defaults to the same as the parent.

              Labels lists only sizes containing the given labels.

              @@ -9120,10 +9012,10 @@

              NetworkServiceCreateResp

              - - + + - + @@ -9133,8 +9025,8 @@

              NetworkServiceCreateResp -

              NetworkServiceDeleteRequest

              -

              NetworkServiceDeleteRequest.

              +

              SizeServiceGetResponse

              +

              SizeServiceGetResponse is the response payload for a size get request.

              networkNetworkidstring

              Network is the created network.

              ID of the size to get.

              @@ -9144,17 +9036,10 @@

              NetworkServiceDeleteReque

              - - - - - - - - - + + - + @@ -9164,8 +9049,8 @@

              NetworkServiceDeleteReque -

              NetworkServiceDeleteResponse

              -

              NetworkServiceDeleteResponse.

              +

              SizeServiceListRequest

              +

              SizeServiceListRequest is the request payload for a size list request.

              idstring

              ID of the network to get.

              projectstringsizeSize

              Project of the network.

              Size the size.

              @@ -9175,10 +9060,10 @@

              NetworkServiceDeleteResp

              - - + + - + @@ -9188,8 +9073,8 @@

              NetworkServiceDeleteResp -

              NetworkServiceGetRequest

              -

              NetworkServiceGetRequest.

              +

              SizeServiceListResponse

              +

              SizeServiceListResponse is the response payload for a size list request.

              networkNetworkquerySizeQuery

              Network is the deleted network.

              Query for sizes.

              @@ -9199,17 +9084,10 @@

              NetworkServiceGetRequest

              - - - - - - - - - - - + + + + @@ -9219,32 +9097,89 @@

              NetworkServiceGetRequest

              NetworkServiceGetResponse -

              NetworkServiceGetResponse.

              - -
              idstring

              ID of the network to get.

              projectstring

              Project of the network.

              sizesSizerepeated

              Sizes the sizes.

              - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              networkNetwork

              Network which was requested to get.

              + +

              SizeConstraintType

              +

              SizeConstraintType defines the property for which a constraint is defined.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              SIZE_CONSTRAINT_TYPE_UNSPECIFIED0

              SIZE_CONSTRAINT_TYPE_UNSPECIFIED type is not specified.

              SIZE_CONSTRAINT_TYPE_CORES1

              SIZE_CONSTRAINT_TYPE_CORES defines the number of cores as property.

              SIZE_CONSTRAINT_TYPE_MEMORY2

              SIZE_CONSTRAINT_TYPE_MEMORY defines the amount of memory as property.

              SIZE_CONSTRAINT_TYPE_STORAGE3

              SIZE_CONSTRAINT_TYPE_STORAGE defines the amount of storage as property.

              SIZE_CONSTRAINT_TYPE_GPU4

              SIZE_CONSTRAINT_TYPE_GPU defines the number of gpus as property.

              + - + + + +

              SizeService

              +

              SizeService provides size management operations.

              + + + + + + + + + + + + + + + + + + + + + +
              Method NameRequest TypeResponse TypeDescription
              GetSizeServiceGetRequestSizeServiceGetResponse

              Returns the size with the specified ID.

              ListSizeServiceListRequestSizeServiceListResponse

              Returns the list of all sizes.

              + -

              NetworkServiceListBaseNetworksRequest

              -

              NetworkServiceListRequest.

              +
              +

              metalstack/api/v2/machine.proto

              Top +
              +

              + + +

              FirewallEgressRule

              +

              FirewallEgressRule defines rules for outgoing traffic.

              @@ -9254,17 +9189,31 @@

              NetworkServiceL

              - - + + - + - - + + + + + + + + + + + + + + + + - + @@ -9274,8 +9223,8 @@

              NetworkServiceL -

              NetworkServiceListBaseNetworksResponse

              -

              NetworkServiceListResponse.

              +

              FirewallIngressRule

              +

              FirewallIngressRule defines rules for incoming traffic.

              projectstringprotocolIPProtocol

              Project of the base networks to list.

              Protocol the protocol for the rule, defaults to tcp.

              queryNetworkQueryportsuint32repeated

              Ports the ports affected by this rule.

              tostringrepeated

              To the destination cidrs affected by this rule.

              commentstring

              Query which specifies which networks to return.

              Comment for this rule.

              @@ -9285,10 +9234,38 @@

              NetworkService

              - - + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + @@ -9298,8 +9275,8 @@

              NetworkService -

              NetworkServiceListRequest

              -

              NetworkServiceListRequest.

              +

              FirewallRules

              +

              FirewallRules can be defined during firewall allocation.

              networksNetworkprotocolIPProtocol

              Protocol the protocol for the rule, defaults to tcp.

              portsuint32 repeated

              Networks are the requested networks.

              Ports the ports affected by this rule.

              tostringrepeated

              To the destination cidrs affected by this rule.

              fromstringrepeated

              From the source cidrs affected by this rule.

              commentstring

              Comment for this rule.

              @@ -9309,17 +9286,17 @@

              NetworkServiceListRequest

              - - - - + + + + - - - - + + + + @@ -9329,8 +9306,8 @@

              NetworkServiceListRequestNetworkServiceListResponse

              -

              NetworkServiceListResponse.

              +

              FirewallSpec

              +

              FirewallSpec contains firewall specific firewall creation parameters.

              projectstring

              Project of the networks to list.

              egressFirewallEgressRulerepeated

              Egress list of egress rules to be deployed during firewall allocation.

              queryNetworkQuery

              Query which specifies which networks to return.

              ingressFirewallIngressRulerepeated

              Ingress list of ingress rules to be deployed during firewall allocation.

              @@ -9340,10 +9317,10 @@

              NetworkServiceListResponse

              - - - - + + + + @@ -9353,8 +9330,8 @@

              NetworkServiceListResponse -

              NetworkServiceUpdateRequest

              -

              NetworkServiceUpdateRequest.

              +

              Machine

              +

              Machine represents a physical bare metal machine.

              networksNetworkrepeated

              Networks are the requested networks.

              firewall_rulesFirewallRules

              FirewallRules to be applied if this is a firewall.

              @@ -9364,45 +9341,73 @@

              NetworkServiceUpdateReque

              - + - + - - + + - + - - + + - + - + - - + + - + - - + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9412,8 +9417,8 @@

              NetworkServiceUpdateReque -

              NetworkServiceUpdateResponse

              -

              NetworkServiceUpdateResponse.

              +

              MachineAllocation

              +

              MachineAllocation contains properties if this machine is allocated.

              iduuid string

              ID of the network to get.

              UUID of this machine.

              update_metaUpdateMetametaMeta

              UpdateMeta contains the timestamp and strategy to be used in this update request.

              Meta for this machine.

              projectstringpartitionPartition

              Project of the network.

              Partition where this machine resides.

              namerack stringoptional

              Name of this network.

              Rack where this machine is located.

              descriptionroom stringoptional

              Description of this network.

              Room where this machine is located.

              labelsUpdateLabelsoptional

              Labels on this network.

              sizeSize

              Size of this machine.

              hardwareMachineHardware

              Hardware specs of this machine.

              allocationMachineAllocation

              Allocation details.

              statusMachineStatus

              Status contains several status details related to this machine.

              recent_provisioning_eventsMachineRecentProvisioningEvents

              MachineRecentProvisioningEvents contains the recent provisioning events.

              @@ -9423,10 +9428,132 @@

              NetworkServiceUpdateResp

              - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9436,8 +9563,8 @@

              NetworkServiceUpdateResp -

              NetworkUsage

              -

              NetworkUsage reports core metrics about available and used IPs or Prefixes in a Network.

              +

              MachineAllocationNetwork

              +

              MachineAllocationNetwork defines which network should be attached to a machine and if ips should be autoacquired.

              networkNetwork

              Network is the updated network.

              uuidstring

              UUID of this machine allocation.

              metaMeta

              Meta for this machine allocation.

              namestring

              Name of this allocation.

              descriptionstring

              Description of this allocation.

              created_bystring

              Created By indicates who created this machine allocation.

              projectstring

              Project of the allocation.

              imageImage

              Image to be used to install on this machine.

              filesystem_layoutFilesystemLayout

              FilesystemLayout to create on the disks.

              networksMachineNetworkrepeated

              Networks this machine should be attached to. +Order of ips of external networks will be preserved.

              hostnamestring

              Hostname of the allocated machine.

              ssh_public_keysstringrepeated

              SSHPublicKeys which should be installed on this machine.

              userdatastring

              Userdata contains instructions required to bootstrap the machine. +AWS limits the max userdata size to 16k, lets allow twice as much.

              allocation_typeMachineAllocationType

              AllocationType of this machine.

              firewall_rulesFirewallRules

              FirewallRules to be applied if this is a firewall.

              dns_serversDNSServerrepeated

              DNSServers for this machine.

              ntp_serversNTPServerrepeated

              NTPServers for this machine.

              vpnMachineVPN

              VPN connection configuration.

              placement_labelsLabels

              PlacementLabels by default machines are spread across the racks inside a partition for every project. +if placement labels are provided, the machine candidate has an additional anti-affinity to other machines having the same labels.

              @@ -9447,31 +9574,99 @@

              NetworkUsage

              - - + + - + - - - - + + + + + + + +
              available_ipsuint64networkstring

              the total available IPs.

              Network the id of the network that this machine will be placed in.

              used_ipsuint64

              the total used IPs.

              ipsstringrepeated

              IPs to to attach to this machine additionally. +If none given, one ip address is acquired per network for the machine. +Order of ips is preserved on the loopback interface.

              + + + + + +

              MachineAllocationQuery

              +

              MachineAllocationQuery allocation specific query parameters.

              + + + + + + + + + + + + + - - - - + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9481,216 +9676,8 @@

              NetworkUsage

              - - -

              NATType

              -

              NATType defines how and if outgoing traffic is translated.

              -
              FieldTypeLabelDescription
              uuidstringoptional

              UUID of the allocation of the machine to get.

              available_prefixesuint64

              the total available 2-bit prefixes.

              namestringoptional

              Name of the machine to get.

              used_prefixesuint64

              the total used Prefixes.

              projectstringoptional

              Project of the machine to get.

              imagestringoptional

              Image of the machine to get.

              filesystem_layoutstringoptional

              FilesystemLayout of the machine to get.

              hostnamestringoptional

              Hostname of the machine to get.

              allocation_typeMachineAllocationTypeoptional

              AllocationType of this machine.

              labelsLabelsoptional

              Labels for which this machine allocation should get filtered.

              vpnMachineVPNoptional

              VPN query if this machine has a vpn configuration.

              - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              NAT_TYPE_UNSPECIFIED0

              NAT_TYPE_UNSPECIFIED indicates a unspecified nat type.

              NAT_TYPE_NONE1

              NAT_TYPE_NONE indicates that no nat is configured.

              NAT_TYPE_IPV4_MASQUERADE2

              NAT_TYPE_IPV4_MASQUERADE masquerade ipv4 behind gateway ip when traffic enters this network.

              - -

              NetworkAddressFamily

              -

              NetworkAddressFamily defines the address family of a network.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              NETWORK_ADDRESS_FAMILY_UNSPECIFIED0

              NETWORK_ADDRESS_FAMILY_UNSPECIFIED is not specified.

              NETWORK_ADDRESS_FAMILY_V41

              NETWORK_ADDRESS_FAMILY_V4 defines a network with IPv4 address prefixes.

              NETWORK_ADDRESS_FAMILY_V62

              NETWORK_ADDRESS_FAMILY_V6 defines a network with IPv6 address prefixes.

              NETWORK_ADDRESS_FAMILY_DUAL_STACK3

              NETWORK_ADDRESS_FAMILY_DUAL_STACK defines a network with both IPv4 and IPv6 address prefixes.

              - -

              NetworkType

              -

              NetworkType indicates the purpose of the network, it cannot be changed after creation.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              NETWORK_TYPE_UNSPECIFIED0

              NETWORK_TYPE_UNSPECIFIED indicates a unknown network type.

              NETWORK_TYPE_EXTERNAL1

              NETWORK_TYPE_EXTERNAL indicates network where multiple projects can allocate ips, it offers connectivity to other external networks. -In most cases this is the internet network or a network which offers connectivity to legacy datacenter networks. -If it is not project scoped everyone can allocate Ips in this network, otherwise only from the same project ip allocation is possible.

              NETWORK_TYPE_UNDERLAY2

              NETWORK_TYPE_UNDERLAY indicates a underlay network. -The underlay network connects all switches and the firewalls to build a EVPN dataplane. -It is not project scoped. Is part of the dataplane and reserved for administrative purposes.

              NETWORK_TYPE_SUPER3

              NETWORK_TYPE_SUPER indicates a super network which is only used to create child networks. -If the vrf id is given, child networks will inherit this vrf. -If the vrf id is nil in this network, child vrf is taken from the pool. -If the partition is given, child networks inherit the partition. -If the partition is nil, child networks also do not have a partition (i.e. requires vrf is distributed across all partitions). -If the partition is given, only one super network in that partition can be created. -If the partition is nil, multiple super networks can exist. Then, for child network creation the network id must be specified (base networks can be queried by label selector). -For child creation destination prefixes will be inherited. -If this is project scoped, the child project must match, otherwise can be freely specified.

              NETWORK_TYPE_SUPER_NAMESPACED4

              NETWORK_TYPE_SUPER_NAMESPACED indicates a super network which is only used to create child networks. -All rules from NETWORK_TYPE_SUPER apply for them as well. -In addition, a network namespace will be created for every project. Child networks per project will have disjunct prefixes. -Prefix allocation will start again with the same base cidr for every project / namespace. -This will allow the creation of much more child networks from a given super network size.

              NETWORK_TYPE_CHILD5

              NETWORK_TYPE_CHILD indicates a child network of a project. -This is the only network type that can be created by a user. -Connectivity to external networks is not possible without going through an additional firewall in this network which creates connectivity to other networks. -Such a network will be created either from a super, or super namespaced.

              NETWORK_TYPE_CHILD_SHARED6

              NETWORK_TYPE_CHILD_SHARED indicates a child network of a project which allows the allocation of ips from different projects. -Connectivity to external networks is not possible, as for normal child networks. -These networks are usually used to provide connectivity to shared services which are created in child networks, e.g. storage. -With this approach the number of hops can be reduced to the bare minimum in order to increase availability and performance. -Only one child shared network per project is allowed.

              - - - - - -

              NetworkService

              -

              NetworkService provides network management operations for end users, for example with project scope.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              Method NameRequest TypeResponse TypeDescription
              GetNetworkServiceGetRequestNetworkServiceGetResponse

              Returns the network with the specified ID.

              CreateNetworkServiceCreateRequestNetworkServiceCreateResponse

              Creates a child network from a super network.

              UpdateNetworkServiceUpdateRequestNetworkServiceUpdateResponse

              Updates a network.

              ListNetworkServiceListRequestNetworkServiceListResponse

              Returns the list of all project networks.

              ListBaseNetworksNetworkServiceListBaseNetworksRequestNetworkServiceListBaseNetworksResponse

              ListBaseNetworks returns all base networks that can be used for either child network or IP allocation.

              DeleteNetworkServiceDeleteRequestNetworkServiceDeleteResponse

              Deletes a network.

              - - - - -
              -

              metalstack/api/v2/partition.proto

              Top -
              -

              - - -

              DNSServer

              -

              DNSServer.

              +

              MachineBMC

              +

              MachineBMC describe details of the ipmi or out of band device.

              @@ -9700,34 +9687,52 @@

              DNSServer

              - + - + - -
              ipaddress string

              IP address of this dns server.

              Address of this ipmi device from outside in the form of <ip or hostname>:<port>.

              - - - - - -

              NTPServer

              -

              NTPServer.

              - - - - - - - + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9737,8 +9742,8 @@

              NTPServer

              -

              Partition

              -

              Partition is a failure domain with machines and switches.

              +

              MachineBMCDetails

              +

              MachineBMCDetails contains machine and bmc details of a machine.

              FieldTypeLabelDescription
              macstring

              Mac address of the network interface of this ipmi device.

              addressuser string

              Address either as ip or hostname.

              User of this ipmi device.

              passwordstring

              Password of this ipmi device.

              interfacestring

              Interface of this ipmi device.

              versionstring

              Version of this bmc device.

              power_statestring

              PowerState of this machine.

              @@ -9748,53 +9753,45 @@

              Partition

              - + - + - - + + - + - + - + - - + + - - - - - - - - + - - - - + + + + - - - - + + + + @@ -9804,8 +9801,8 @@

              Partition

              -

              PartitionBootConfiguration

              -

              PartitionBootConfiguration defines how metal-hammer boots.

              +

              MachineBMCQuery

              +

              MachineBMCQuery machine ipmi or bmc specific machine queries.

              iduuid string

              ID of this partition.

              UUID of this machine.

              metaMetapartitionstring

              Meta for this partition.

              Partition where this machine resides.

              descriptionrack string

              Description of this partition.

              Rack where this machine is located.

              boot_configurationPartitionBootConfigurationroomstring

              PartitionBootConfiguration defines how metal-hammer boots.

              dns_serversDNSServerrepeated

              DNSServers for this partition.

              Room where this machine is located.

              ntp_serversNTPServerrepeated

              NTPServers for this partition.

              sizestring

              Size of this machine.

              mgmt_service_addressesstringrepeated

              ManagementServiceAddresses defines where the management is reachable. -should be in the form <ip|host>:<port>.

              bmc_reportMachineBMCReport

              BMCReport contains the bmc details.

              @@ -9815,24 +9812,31 @@

              PartitionBootConfiguration

              - + - - + + - + - - + + - + - - + + + + + + + + + @@ -9842,8 +9846,8 @@

              PartitionBootConfiguration -

              PartitionQuery

              -

              PartitionQuery is used to search partitions.

              +

              MachineBMCReport

              +

              MachineBMCReport is sent from the metal-bmc to update bmc and power related details.

              image_urladdress string

              ImageURL the url to download the initrd for the boot image.

              optional

              Address of the ipmi system of this machine.

              kernel_urlmac string

              KernelURL the url to download the kernel for the boot image.

              optional

              Mac of the ipmi system of this machine.

              commandlineuser string

              Commandline the kernel command line for the boot image.

              optional

              User of the ipmi system of this machine.

              interfacestringoptional

              Interface of the ipmi system of this machine.

              @@ -9853,17 +9857,59 @@

              PartitionQuery

              - + - - + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9873,8 +9919,8 @@

              PartitionQuery

              -

              PartitionServiceGetRequest

              -

              PartitionServiceGetRequest is the request payload for a partition get request.

              +

              MachineBios

              +

              MachineBios contains BIOS details of this machine.

              iduuid stringoptional

              ID of the partition to get.

              UUID of the machine.

              labelsLabelsoptional

              Labels lists only partitions containing the given labels.

              bmcMachineBMC

              Bmc contains bmc details.

              biosMachineBios

              Bios contains bios details.

              fruMachineFRU

              Fru contains field replaceable unit details.

              power_metricMachinePowerMetric

              PowerMetric contains the power statistics of the machine.

              power_suppliesMachinePowerSupplyrepeated

              PowerSupplies contains details about all power supplies and their state.

              led_stateMachineChassisIdentifyLEDState

              LedState indicates the state of the indicator LED on this machine.

              updated_atgoogle.protobuf.Timestamp

              UpdatedAt contains the date when this data was last updated.

              @@ -9884,10 +9930,24 @@

              PartitionServiceGetRequest

              - + - + + + + + + + + + + + + + + + @@ -9897,8 +9957,8 @@

              PartitionServiceGetRequest -

              PartitionServiceGetResponse

              -

              PartitionServiceGetResponse is the response payload for a partition get request.

              +

              MachineBlockDevice

              +

              MachineBlockDevice contains details of a block device of this machine.

              idversion string

              ID of the partition to get.

              Version the bios version.

              vendorstring

              Vendor the bios vendor.

              datestring

              Date the bios date as string because every vendor has different ideas how to describe the date.

              @@ -9908,10 +9968,17 @@

              PartitionServiceGetRespon

              - - + + - + + + + + + + + @@ -9921,8 +9988,8 @@

              PartitionServiceGetRespon -

              PartitionServiceListRequest

              -

              PartitionServiceListRequest is the request payload for a partition list request.

              +

              MachineChassisIdentifyLEDState

              +

              MachineChassisIdentifyLEDState describes the identifier led state.

              partitionPartitionnamestring

              Partition is the partition.

              Name of this block device.

              sizeuint64

              Size of this block device in bytes.

              @@ -9932,10 +9999,17 @@

              PartitionServiceListReque

              - - + + - + + + + + + + + @@ -9945,8 +10019,8 @@

              PartitionServiceListReque -

              PartitionServiceListResponse

              -

              PartitionServiceListResponse is the response payload for a partition list request.

              +

              MachineCondition

              +

              MachineCondition describes the availability of this machine.

              queryPartitionQueryvaluestring

              Query for partitions.

              Value the state of this chassis identify LED. empty means LED-OF.

              descriptionstring

              Description a description why this chassis identify LED is in the given state.

              @@ -9956,10 +10030,24 @@

              PartitionServiceListResp

              - - - - + + + + + + + + + + + + + + + + + + @@ -9969,48 +10057,8 @@

              PartitionServiceListResp - - - - - - -

              PartitionService

              -

              PartitionService provides partition management operations.

              -
              partitionsPartitionrepeated

              Partitions are the partitions.

              stateMachineState

              State the state of this machine. empty means available for al.

              descriptionstring

              Description a description why this machine is in the given state.

              issuerstring

              Issuer the user that changed the state.

              - - - - - - - - - - - - - - - - - - - - -
              Method NameRequest TypeResponse TypeDescription
              GetPartitionServiceGetRequestPartitionServiceGetResponse

              Returns the partition with the specified ID.

              ListPartitionServiceListRequestPartitionServiceListResponse

              Returns the list of all partitions.

              - - - - -
              -

              metalstack/api/v2/size.proto

              Top -
              -

              - - -

              Size

              -

              Size.

              +

              MachineDiskQuery

              +

              MachineDiskQuery disk specific machine queries.

              @@ -10020,38 +10068,17 @@

              Size

              - + - - + + - - - - - - - - - - - - - - - - - - - - - - - + + - + @@ -10061,8 +10088,8 @@

              Size

              -

              SizeConstraint

              -

              SizeConstraint defines the boundaries for certain type of machine property which must match to identify this machine as this size.

              +

              MachineFRU

              +

              MachineFRU describes details to the machine which are required in case of a necessary replacement.

              idnames string

              Id of this size.

              repeated

              Names of disks in this machine.

              metaMeta

              Meta for this size.

              namestringoptional

              Name of this size.

              descriptionstringoptional

              Description of this size.

              constraintsSizeConstraintsizesuint64 repeated

              Constraints which must match that a specific machine is considered of this size.

              Sizes of disks in this machine.

              @@ -10072,31 +10099,59 @@

              SizeConstraint

              - - - - + + + + - - - - + + + + - - - - + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10106,8 +10161,8 @@

              SizeConstraint

              -

              SizeQuery

              -

              SizeQuery is used to search sizes.

              +

              MachineFRUQuery

              +

              MachineFRUQuery machine fru specific machine queries.

              typeSizeConstraintType

              Type a machine matches to a size in order to make them easier to categorize.

              chassis_part_numberstringoptional

              ChassisPartNumber is the part number of the machine chassis.

              minuint64

              Min the minimum value of the constraint.

              chassis_part_serialstringoptional

              ChassisPartSerial is the serial number of the machine chassis.

              maxuint64

              Max the maximum value of the constraint.

              board_mfgstringoptional

              BoardMfg is the short description of the mainboard.

              identifierboard_mfg_serial string optional

              Identifier glob pattern which matches to the given type, for example gpu pci id.

              BoardMfgSerial is the serial number of the mainboard.

              board_part_numberstringoptional

              BoardPartNumber is the part number of the mainboard.

              product_manufacturerstringoptional

              ProductManufacturer is the manufacturer of the machine.

              product_part_numberstringoptional

              ProductPartNumber is the part number of the machine.

              product_serialstringoptional

              ProductSerial is the serial number of the machine.

              @@ -10117,31 +10172,59 @@

              SizeQuery

              - + - + - + - + - + - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10151,8 +10234,8 @@

              SizeQuery

              -

              SizeServiceGetRequest

              -

              SizeServiceGetRequest is the request payload for a size get request.

              +

              MachineHardware

              +

              MachineHardware contains hardware details.

              idchassis_part_number string optional

              ID of the size to get.

              ChassisPartNumber of this machine.

              namechassis_part_serial string optional

              Name of the size to query.

              ChassisPartSerial of this machine.

              descriptionboard_mfg string optional

              Description of the size to query.

              BoardMFG of this machine.

              labelsLabelsboard_serialstring optional

              Labels lists only sizes containing the given labels.

              BoardSerial of this machine.

              board_part_numberstringoptional

              BoardPartNumber of this machine.

              product_manufacturerstringoptional

              ProductManufacturer of this machine.

              product_part_numberstringoptional

              ProductPartNumber of this machine.

              product_serialstringoptional

              ProductSerial of this machine.

              @@ -10162,10 +10245,38 @@

              SizeServiceGetRequest

              - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10175,8 +10286,8 @@

              SizeServiceGetRequest

              -

              SizeServiceGetResponse

              -

              SizeServiceGetResponse is the response payload for a size get request.

              +

              MachineHardwareQuery

              +

              MachineHardwareQuery machine hardware specific machine queries.

              idstringmemoryuint64

              ID of the size to get.

              Memory the total memory of the machine in bytes.

              disksMachineBlockDevicerepeated

              Disks the list of block devices of this machine.

              cpusMetalCPUrepeated

              CPUs the cpu details.

              gpusMetalGPUrepeated

              GPUs the gpu details.

              nicsMachineNicrepeated

              Nics the list of network interfaces of this machine.

              @@ -10186,10 +10297,17 @@

              SizeServiceGetResponse

              - - - - + + + + + + + + + + + @@ -10199,8 +10317,8 @@

              SizeServiceGetResponse

              -

              SizeServiceListRequest

              -

              SizeServiceListRequest is the request payload for a size list request.

              +

              MachineIssue

              +

              MachineIssue contains details of one issue.

              sizeSize

              Size the size.

              memoryuint64optional

              Memory the total memory of the machine in bytes.

              cpu_coresuint32optional

              CPUCores the number of cpu cores.

              @@ -10210,10 +10328,38 @@

              SizeServiceListRequest

              - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10223,8 +10369,8 @@

              SizeServiceListRequest

              -

              SizeServiceListResponse

              -

              SizeServiceListResponse is the response payload for a size list request.

              +

              MachineIssues

              +

              MachineIssues is a list of issues for a machine.

              querySizeQuerytypeMachineIssueType

              Query for sizes.

              Type specifies the issue type (id).

              severityMachineIssueSeverity

              Severity specifies the severity of an issue.

              descriptionstring

              Description provides an issue description.

              reference_urlstring

              RefURL provides a link to a more detailed issue description in the metal-stack documentation.

              detailsstring

              Details may contain additional details on an evaluated issue.

              @@ -10234,10 +10380,17 @@

              SizeServiceListResponse

              - - + + + + + + + + + - + @@ -10247,89 +10400,8 @@

              SizeServiceListResponse

              - - -

              SizeConstraintType

              -

              SizeConstraintType defines the property for which a constraint is defined.

              -
              sizesSizeuuidstring

              UUID of the machine for which the issues are listed.

              issuesMachineIssue repeated

              Sizes the sizes.

              Issues of this machine.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              SIZE_CONSTRAINT_TYPE_UNSPECIFIED0

              SIZE_CONSTRAINT_TYPE_UNSPECIFIED type is not specified.

              SIZE_CONSTRAINT_TYPE_CORES1

              SIZE_CONSTRAINT_TYPE_CORES defines the number of cores as property.

              SIZE_CONSTRAINT_TYPE_MEMORY2

              SIZE_CONSTRAINT_TYPE_MEMORY defines the amount of memory as property.

              SIZE_CONSTRAINT_TYPE_STORAGE3

              SIZE_CONSTRAINT_TYPE_STORAGE defines the amount of storage as property.

              SIZE_CONSTRAINT_TYPE_GPU4

              SIZE_CONSTRAINT_TYPE_GPU defines the number of gpus as property.

              - - - - - -

              SizeService

              -

              SizeService provides size management operations.

              - - - - - - - - - - - - - - - - - - - - - -
              Method NameRequest TypeResponse TypeDescription
              GetSizeServiceGetRequestSizeServiceGetResponse

              Returns the size with the specified ID.

              ListSizeServiceListRequestSizeServiceListResponse

              Returns the list of all sizes.

              - - - - -
              -

              metalstack/api/v2/machine.proto

              Top -
              -

              - - -

              FirewallEgressRule

              -

              FirewallEgressRule defines rules for outgoing traffic.

              +

              MachineIssuesQuery

              +

              MachineIssuesQuery defines which machine issues should be listed.

              @@ -10339,31 +10411,38 @@

              FirewallEgressRule

              - - + + - + - - + + - + - - + + - + - - + + + + + + + + + - + @@ -10373,8 +10452,8 @@

              FirewallEgressRule

              -

              FirewallIngressRule

              -

              FirewallIngressRule defines rules for incoming traffic.

              +

              MachineNetwork

              +

              MachineNetwork contains details which network should be created on a allocated machine.

              protocolIPProtocolmachine_queryMachineQuery

              Protocol the protocol for the rule, defaults to tcp.

              MachineQuery to select specific machines.

              portsuint32onlyMachineIssueType repeated

              Ports the ports affected by this rule.

              Only includes the specified machine issue types.

              tostringomitMachineIssueType repeated

              To the destination cidrs affected by this rule.

              Omits the specified machine issues.

              commentstringseverityMachineIssueSeverityoptional

              Severity filters issue for given severity.

              last_error_thresholdgoogle.protobuf.Duration

              Comment for this rule.

              LastErrorThreshold defines the last error threshold.

              @@ -10384,38 +10463,66 @@

              FirewallIngressRule

              - - + + - + - - + + - + - + - + - + - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10425,8 +10532,8 @@

              FirewallIngressRule

              -

              FirewallRules

              -

              FirewallRules can be defined during firewall allocation.

              +

              MachineNetworkQuery

              +

              MachineNetworkQuery network specific machine queries.

              protocolIPProtocolnetworkstring

              Protocol the protocol for the rule, defaults to tcp.

              Network the networkID of the allocated machine in this vrf.

              portsuint32prefixesstring repeated

              Ports the ports affected by this rule.

              Prefixes the prefixes of this network.

              todestination_prefixes string repeated

              To the destination cidrs affected by this rule.

              DestinationPrefixes prefixes that are reachable within this network.

              fromips string repeated

              From the source cidrs affected by this rule.

              IPs the ip addresses of the allocated machine in this vrf.

              commentstringnetwork_typeNetworkType

              Comment for this rule.

              NetworkType the type of network of this vrf.

              nat_typeNATType

              NatType what type of nat if any should be used.

              vrfuint64

              VRF the vrf id.

              asnuint32

              ASN the autonomous system number for this network.

              projectstringoptional

              Project is the project uuid associated with this network.

              @@ -10436,41 +10543,45 @@

              FirewallRules

              - - + + - + - - + + - + - -
              egressFirewallEgressRulenetworksstring repeated

              Egress list of egress rules to be deployed during firewall allocation.

              Networks this machine is connected to.

              ingressFirewallIngressRuleprefixesstring repeated

              Ingress list of ingress rules to be deployed during firewall allocation.

              Prefixes this machine is connected to.

              - - - - - -

              FirewallSpec

              -

              FirewallSpec contains firewall specific firewall creation parameters.

              - - - - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + + @@ -10480,8 +10591,8 @@

              FirewallSpec

              -

              Machine

              -

              Machine represents a physical bare metal machine.

              +

              MachineNic

              +

              MachineNic contains details of a network interface of this machine.

              FieldTypeLabelDescription
              destination_prefixesstringrepeated

              DestinationPrefixes this machine is connected to.

              firewall_rulesFirewallRules

              FirewallRules to be applied if this is a firewall.

              ipsstringrepeated

              IPs this machine has.

              vrfsuint64repeated

              VRFs this machine is connected to.

              asnsuint32repeated

              ASNs this machine is connected to.

              @@ -10491,84 +10602,91 @@

              Machine

              - + - + - - + + - + - - + + - + - + - + - + - + - - + + - + - - - - + + + + - - + + - + + +
              uuidmac string

              UUID of this machine.

              Deprecated. Mac the macaddress of this interface.

              metaMetanamestring

              Meta for this machine.

              Name of this interface.

              partitionPartitionidentifierstring

              Partition where this machine resides.

              Identifier the unique identifier of this network interface.

              rackvendor string

              Rack where this machine is located.

              Vendor of this network card.

              roommodel string

              Room where this machine is located.

              Model of this network card.

              sizeSizespeeduint64

              Size of this machine.

              Speed in bits/second of this network card.

              hardwareMachineHardware

              Hardware specs of this machine.

              neighborsMachineNicrepeated

              Neighbors the neighbors visible to this network interface.

              allocationMachineAllocationhostnamestring

              Allocation details.

              Hostname the nic belongs to.

              + + + + +

              Fields with deprecated option

              + + - - - - + + + + - - - - + + - -
              statusMachineStatus

              Status contains several status details related to this machine.

              NameOption
              recent_provisioning_eventsMachineRecentProvisioningEvents

              MachineRecentProvisioningEvents contains the recent provisioning events.

              mac

              true

              - + + + -

              MachineAllocation

              -

              MachineAllocation contains properties if this machine is allocated.

              +

              MachineNicQuery

              +

              MachineNicQuery nic specific machine queries.

              @@ -10578,132 +10696,108 @@

              MachineAllocation

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + - - - - - - - - - - - - - - - - - - - - - - + - + - - + + - + - + + +
              uuidstring

              UUID of this machine allocation.

              metaMeta

              Meta for this machine allocation.

              namestring

              Name of this allocation.

              descriptionstring

              Description of this allocation.

              created_bymacs string

              Created By indicates who created this machine allocation.

              repeated

              Macs this machine nic has.

              projectnames string

              Project of the allocation.

              imageImage

              Image to be used to install on this machine.

              filesystem_layoutFilesystemLayout

              FilesystemLayout to create on the disks.

              networksMachineNetwork repeated

              Networks this machine should be attached to. -Order of ips of external networks will be preserved.

              Names this machine nic has.

              hostnameneighbor_macs string

              Hostname of the allocated machine.

              repeated

              NeighborMacs this machine nic has.

              ssh_public_keysneighbor_names string repeated

              SSHPublicKeys which should be installed on this machine.

              NeighborNames this machine nic has.

              + + + + + +

              MachinePowerMetric

              +

              MachinePowerMetric contains metrics of the power consumption of a machine.

              + + + + + + + + - - + + - + - - + + - + - - + + - + - - - - + + + + - - - - - - + +
              FieldTypeLabelDescription
              userdatastringaverage_consumed_wattsfloat

              Userdata contains instructions required to bootstrap the machine. -AWS limits the max userdata size to 16k, lets allow twice as much.

              AverageConsumedWatts shall represent the average power level that occurred averaged over the last IntervalInMin minutes.

              allocation_typeMachineAllocationTypeinterval_in_minfloat

              AllocationType of this machine.

              IntervalInMin shall represent the time interval (or window), in minutes, in which the PowerMetrics properties are measured over. +Should be an integer, but some Dell implementations return as a float.

              firewall_rulesFirewallRulesmax_consumed_wattsfloat

              FirewallRules to be applied if this is a firewall.

              MaxConsumedWatts shall represent the maximum power level in watts that occurred within the last IntervalInMin minutes.

              dns_serversDNSServerrepeated

              DNSServers for this machine.

              min_consumed_wattsfloat

              MinConsumedWatts shall represent the minimum power level in watts that occurred within the last IntervalInMin minutes.

              ntp_serversNTPServerrepeated

              NTPServers for this machine.

              + + + + + +

              MachinePowerSupply

              +

              MachinePowerSupply contains details of the power supply of a machine.

              + + + + + + + - - + + - + - - + + - + @@ -10713,8 +10807,8 @@

              MachineAllocation

              -

              MachineAllocationNetwork

              -

              MachineAllocationNetwork defines which network should be attached to a machine and if ips should be autoacquired.

              +

              MachineProvisioningEvent

              +

              MachineProvisioningEvent is an event that has occurred during provisioning.

              FieldTypeLabelDescription
              vpnMachineVPNhealthstring

              VPN connection configuration.

              Health of the powersupply.

              placement_labelsLabelsstatestring

              PlacementLabels by default machines are spread across the racks inside a partition for every project. -if placement labels are provided, the machine candidate has an additional anti-affinity to other machines having the same labels.

              State of the powersupply.

              @@ -10724,19 +10818,24 @@

              MachineAllocationNetwork

              - - + + - + - + + + + + + + + - - + + @@ -10746,8 +10845,8 @@

              MachineAllocationNetwork

              MachineAllocationQuery -

              MachineAllocationQuery allocation specific query parameters.

              +

              MachineQuery

              +

              MachineQuery contains fields which can be specified to list specific machines.

              networkstringtimegoogle.protobuf.Timestamp

              Network the id of the network that this machine will be placed in.

              Time the time that this event was received.

              ipseventMachineProvisioningEventType

              Event the event emitted by the machine.

              message stringrepeated

              IPs to to attach to this machine additionally. -If none given, one ip address is acquired per network for the machine. -Order of ips is preserved on the loopback interface.

              Message an additional message to add to the event.

              @@ -10760,7 +10859,7 @@

              MachineAllocationQuery

              - + @@ -10771,118 +10870,118 @@

              MachineAllocationQuery

              - + - + - + - + - + - + - + - + - - + + - + - - + + - + - - + + - + - -
              uuid string optional

              UUID of the allocation of the machine to get.

              UUID of the machine to get.

              projectpartition string optional

              Project of the machine to get.

              Partition of the machine to get.

              imagesize string optional

              Image of the machine to get.

              Size of the machine to get.

              filesystem_layoutrack string optional

              FilesystemLayout of the machine to get.

              Rack of the machine to get.

              hostnameroom string optional

              Hostname of the machine to get.

              Room of the machine to get.

              allocation_typeMachineAllocationTypelabelsLabels optional

              AllocationType of this machine.

              Labels for which this machine should get filtered.

              labelsLabelsallocationMachineAllocationQuery optional

              Labels for which this machine allocation should get filtered.

              Allocation specific machine queries.

              vpnMachineVPNnetworkMachineNetworkQuery optional

              VPN query if this machine has a vpn configuration.

              Network specific machine queries.

              - - - - - -

              MachineBMC

              -

              MachineBMC describe details of the ipmi or out of band device.

              - - - - - - - + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + + + + + + + + @@ -10892,8 +10991,8 @@

              MachineBMC

              -

              MachineBMCDetails

              -

              MachineBMCDetails contains machine and bmc details of a machine.

              +

              MachineRecentProvisioningEvents

              +

              MachineRecentProvisioningEvents the recent provisioning events for this machine.

              FieldTypeLabelDescription
              nicMachineNicQueryoptional

              Nic specific machine queries.

              addressstring

              Address of this ipmi device from outside in the form of <ip or hostname>:<port>.

              diskMachineDiskQueryoptional

              Disk specific machine queries.

              macstring

              Mac address of the network interface of this ipmi device.

              bmcMachineBMCQueryoptional

              Bmc specific machine queries.

              userstring

              User of this ipmi device.

              fruMachineFRUQueryoptional

              Fru specific machine queries.

              passwordstring

              Password of this ipmi device.

              hardwareMachineHardwareQueryoptional

              Hardware specific machine query.

              interfacestring

              Interface of this ipmi device.

              stateMachineStateoptional

              State this machine has.

              versionstring

              Version of this bmc device.

              waitingbooloptional

              Waiting if set to true, only waiting machines are returned. +Only useful for admins.

              power_statestring

              PowerState of this machine.

              preallocatedbooloptional

              Preallocated if set to true, only machines which are preallocated are returned. +Only useful for admins.

              not_allocatedbooloptional

              NotAllocated if set to true, only machines which are not allocated are returned. +Only useful for admins.

              @@ -10903,45 +11002,31 @@

              MachineBMCDetails

              - - - - - - - - - - - - - - - - - - + + + + - - + + - + - - + + - + - - + + - + @@ -10951,8 +11036,8 @@

              MachineBMCDetails

              -

              MachineBMCQuery

              -

              MachineBMCQuery machine ipmi or bmc specific machine queries.

              +

              MachineServiceBMCCommandRequest

              +

              MachineServiceBMCCommandRequest is the request payload for a machine bmc command.

              uuidstring

              UUID of this machine.

              partitionstring

              Partition where this machine resides.

              rackstring

              Rack where this machine is located.

              eventsMachineProvisioningEventrepeated

              Events the log of recent machine provisioning events.

              roomstringlast_event_timegoogle.protobuf.Timestamp

              Room where this machine is located.

              LastEventTime the time where the last event was received.

              sizestringlast_error_eventMachineProvisioningEvent

              Size of this machine.

              LastErrorEvent the last erroneous event received.

              bmc_reportMachineBMCReportstateMachineProvisioningEventState

              BMCReport contains the bmc details.

              State can be either CrashLoop, FailedReclaim or something else.

              @@ -10962,31 +11047,24 @@

              MachineBMCQuery

              - - - - - - - - + - - + + - + - - + + - - - - + + + + @@ -10996,8 +11074,8 @@

              MachineBMCQuery

              -

              MachineBMCReport

              -

              MachineBMCReport is sent from the metal-bmc to update bmc and power related details.

              +

              MachineServiceBMCCommandResponse

              +

              MachineServiceBMCCommandResponse is the response payload for a machine bmc command.

              addressstringoptional

              Address of the ipmi system of this machine.

              macuuid stringoptional

              Mac of the ipmi system of this machine.

              UUID of the machine to send the command to.

              userproject stringoptional

              User of the ipmi system of this machine.

              Project of the machine.

              interfacestringoptional

              Interface of the ipmi system of this machine.

              commandMachineBMCCommand

              Command to send to the bmc of the machine.

              @@ -11007,59 +11085,11 @@

              MachineBMCReport

              - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -11069,8 +11099,8 @@

              MachineBMCReport

              -

              MachineBios

              -

              MachineBios contains BIOS details of this machine.

              +

              MachineServiceCreateRequest

              +

              MachineServiceCreateRequest is the request payload for a machine create request.

              uuidtask_id string

              UUID of the machine.

              bmcMachineBMC

              Bmc contains bmc details.

              biosMachineBios

              Bios contains bios details.

              fruMachineFRU

              Fru contains field replaceable unit details.

              power_metricMachinePowerMetric

              PowerMetric contains the power statistics of the machine.

              power_suppliesMachinePowerSupplyrepeated

              PowerSupplies contains details about all power supplies and their state.

              led_stateMachineChassisIdentifyLEDState

              LedState indicates the state of the indicator LED on this machine.

              updated_atgoogle.protobuf.Timestamp

              UpdatedAt contains the date when this data was last updated.

              TaskId is the identifier of the task that managed the bmc command execution. +Only useful for admins.

              @@ -11080,55 +11110,142 @@

              MachineBios

              - + - + - + - - + + - + - + - -
              versionproject string

              Version the bios version.

              Project of the machine.

              vendoruuid string

              Vendor the bios vendor.

              optional

              UUID if this field is set, this specific machine will be allocated if it is not in available state and not currently allocated. +this field takes precedence over size and partition. +Can only be used with ADMIN_ROLE_EDITOR.

              datename string

              Date the bios date as string because every vendor has different ideas how to describe the date.

              Name of this machine.

              - - - - - -

              MachineBlockDevice

              -

              MachineBlockDevice contains details of a block device of this machine.

              - - - - - - - + + + + + + - + - - + + + + + + + + + - + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -11138,8 +11255,8 @@

              MachineBlockDevice

              -

              MachineChassisIdentifyLEDState

              -

              MachineChassisIdentifyLEDState describes the identifier led state.

              +

              MachineServiceCreateResponse

              +

              MachineServiceCreateResponse is the response payload for a machine create request.

              FieldTypeLabelDescription
              descriptionstringoptional

              Description for this machine.

              namehostname string

              Name of this block device.

              optional

              Hostname the hostname for the allocated machine (defaults to metal).

              partitionstringoptional

              Partition the partition id to assign this machine to, must be omitted if uuid is given.

              sizeuint64stringoptional

              Size of the machine to create, must be omitted if uuid is given.

              imagestring

              Size of this block device in bytes.

              Image which should be installed on this machine. +The image can be specified either in the fully qualified form, e.g. including os, major, minor and patch +- debian-13.0.2026040 +- or in a simplified form which omits the patch version. +- debian-13. +If the fully qualified form is specified, exactly this image is taken regardless of the image classification. +If the short form is given, only the most recent images which has image classification supported is used.

              filesystem_layoutstringoptional

              FilesystemLayout which should be applied for the operating system installation. +Is defaulted by a lookup at the available fsls for this size and image. +Can be specified to test new fsls during development of fsls.

              ssh_public_keysstringrepeated

              SSHPublicKeys defines the ssh public key to be installed on the machine to access it via ssh.

              userdatastringoptional

              Userdata contains instructions required to bootstrap the machine. +AWS limits the max userdata size to 16k, lets allow twice as much. +Must be base64 encoded.

              labelsLabels

              Labels to be attached to this machine allocation.

              networksMachineAllocationNetworkrepeated

              Networks the networks that this machine will be placed in.

              placement_labelsLabels

              PlacementLabels by default machines are spread across the racks inside a partition for every project. +if placement labels are provided, the machine candidate has an additional anti-affinity to other machines having the same labels.

              dns_serversDNSServerrepeated

              DNSServer the dns servers used for the machine.

              ntp_serversNTPServerrepeated

              NTPServer the ntp servers used for the machine.

              allocation_typeMachineAllocationType

              AllocationType of this machine.

              firewall_specFirewallSpec

              FirewallSpec provides firewall specific parameters if allocationType is firewall.

              @@ -11149,17 +11266,10 @@

              MachineChassisIdentify

              - - - - - - - - - + + - + @@ -11169,8 +11279,8 @@

              MachineChassisIdentify -

              MachineCondition

              -

              MachineCondition describes the availability of this machine.

              +

              MachineServiceDeleteRequest

              +

              MachineServiceDeleteRequest is the request payload for a machine delete request.

              valuestring

              Value the state of this chassis identify LED. empty means LED-OF.

              descriptionstringmachineMachine

              Description a description why this chassis identify LED is in the given state.

              Machine which was created.

              @@ -11180,24 +11290,17 @@

              MachineCondition

              - - - - - - - - + - + - + - + @@ -11207,8 +11310,8 @@

              MachineCondition

              -

              MachineDiskQuery

              -

              MachineDiskQuery disk specific machine queries.

              +

              MachineServiceDeleteResponse

              +

              MachineServiceDeleteResponse is the response payload for a machine delete request.

              stateMachineState

              State the state of this machine. empty means available for al.

              descriptionuuid string

              Description a description why this machine is in the given state.

              UUID of the machine to delete.

              issuerproject string

              Issuer the user that changed the state.

              Project of the machine.

              @@ -11218,17 +11321,10 @@

              MachineDiskQuery

              - - - - - - - - - - - + + + + @@ -11238,8 +11334,8 @@

              MachineDiskQuery

              -

              MachineFRU

              -

              MachineFRU describes details to the machine which are required in case of a necessary replacement.

              +

              MachineServiceGetBMCRequest

              +

              MachineServiceGetBMCRequest is the request payload for a machine getbmc request.

              namesstringrepeated

              Names of disks in this machine.

              sizesuint64repeated

              Sizes of disks in this machine.

              machineMachine

              Machine which was deleted.

              @@ -11249,59 +11345,41 @@

              MachineFRU

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - - - - - - + +
              chassis_part_numberstringoptional

              ChassisPartNumber is the part number of the machine chassis.

              chassis_part_serialstringoptional

              ChassisPartSerial is the serial number of the machine chassis.

              board_mfgstringoptional

              BoardMfg is the short description of the mainboard.

              board_mfg_serialstringoptional

              BoardMfgSerial is the serial number of the mainboard.

              board_part_numberuuid stringoptional

              BoardPartNumber is the part number of the mainboard.

              UUID of the machine to get.

              product_manufacturerproject stringoptional

              ProductManufacturer is the manufacturer of the machine.

              Project of the machine.

              product_part_numberstringoptional

              ProductPartNumber is the part number of the machine.

              + + + + + +

              MachineServiceGetBMCResponse

              +

              MachineServiceGetBMCResponse is the response payload for a machine getbmc request.

              + + + + + + + - - - - + + + + @@ -11311,8 +11389,8 @@

              MachineFRU

              -

              MachineFRUQuery

              -

              MachineFRUQuery machine fru specific machine queries.

              +

              MachineServiceGetRequest

              +

              MachineServiceGetRequest is the request payload for a machine get request.

              FieldTypeLabelDescription
              product_serialstringoptional

              ProductSerial is the serial number of the machine.

              bmc_detailsMachineBMCDetails

              BMCDetails contains the BMC details of this machine.

              @@ -11322,59 +11400,17 @@

              MachineFRUQuery

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + @@ -11384,8 +11420,8 @@

              MachineFRUQuery

              -

              MachineHardware

              -

              MachineHardware contains hardware details.

              +

              MachineServiceGetResponse

              +

              MachineServiceGetResponse is the response payload for a machine get request.

              chassis_part_numberstringoptional

              ChassisPartNumber of this machine.

              chassis_part_serialstringoptional

              ChassisPartSerial of this machine.

              board_mfgstringoptional

              BoardMFG of this machine.

              board_serialstringoptional

              BoardSerial of this machine.

              board_part_numberstringoptional

              BoardPartNumber of this machine.

              product_manufacturerstringoptional

              ProductManufacturer of this machine.

              product_part_numberuuid stringoptional

              ProductPartNumber of this machine.

              UUID of the machine to get.

              product_serialproject stringoptional

              ProductSerial of this machine.

              Project of the machine.

              @@ -11395,38 +11431,41 @@

              MachineHardware

              - - + + - - - - - - - - + - - - - - - + +
              memoryuint64machineMachine

              Memory the total memory of the machine in bytes.

              disksMachineBlockDevicerepeated

              Disks the list of block devices of this machine.

              Machine is the machine requested.

              cpusMetalCPUrepeated

              CPUs the cpu details.

              + + + + + +

              MachineServiceListRequest

              +

              MachineServiceListRequest is the request payload for a machine list request.

              + + + + + + + - - - - + + + + - - - - + + + + @@ -11436,8 +11475,8 @@

              MachineHardware

              -

              MachineHardwareQuery

              -

              MachineHardwareQuery machine hardware specific machine queries.

              +

              MachineServiceListResponse

              +

              MachineServiceListResponse is the response payload for a machine list request.

              FieldTypeLabelDescription
              gpusMetalGPUrepeated

              GPUs the gpu details.

              projectstring

              Project of the machines to list.

              nicsMachineNicrepeated

              Nics the list of network interfaces of this machine.

              queryMachineQuery

              Query to list one ore more machines.

              @@ -11447,17 +11486,10 @@

              MachineHardwareQuery

              - - - - - - - - - - - + + + + @@ -11467,8 +11499,8 @@

              MachineHardwareQuery

              -

              MachineIssue

              -

              MachineIssue contains details of one issue.

              +

              MachineServiceUpdateRequest

              +

              MachineServiceUpdateRequest is the request payload for a machine update request.

              memoryuint64optional

              Memory the total memory of the machine in bytes.

              cpu_coresuint32optional

              CPUCores the number of cpu cores.

              machinesMachinerepeated

              Machines are the machines requested by a list request.

              @@ -11478,38 +11510,45 @@

              MachineIssue

              - - + + - + - - + + - + - + - + - + - - + + - + + + + + + + + - - + + @@ -11519,8 +11558,8 @@

              MachineIssue

              -

              MachineIssues

              -

              MachineIssues is a list of issues for a machine.

              +

              MachineServiceUpdateResponse

              +

              MachineServiceUpdateResponse is the response payload for a machine update request.

              typeMachineIssueTypeuuidstring

              Type specifies the issue type (id).

              UUID of the machine to modify.

              severityMachineIssueSeverityupdate_metaUpdateMeta

              Severity specifies the severity of an issue.

              UpdateMeta contains the timestamp and strategy to be used in this update request.

              descriptionproject string

              Description provides an issue description.

              Project of the machine.

              reference_urldescription string

              RefURL provides a link to a more detailed issue description in the metal-stack documentation.

              optional

              Description of this machine allocation.

              detailslabelsUpdateLabelsoptional

              Labels to update on this machine allocation.

              ssh_public_keys string

              Details may contain additional details on an evaluated issue.

              repeated

              SSHPublicKeys which should be update of this machine allocation.

              @@ -11530,17 +11569,10 @@

              MachineIssues

              - - + + - - - - - - - - + @@ -11550,8 +11582,8 @@

              MachineIssues

              -

              MachineIssuesQuery

              -

              MachineIssuesQuery defines which machine issues should be listed.

              +

              MachineStatus

              +

              MachineStatus contains several status details related to this machine.

              uuidstringmachineMachine

              UUID of the machine for which the issues are listed.

              issuesMachineIssuerepeated

              Issues of this machine.

              Machine which was updated.

              @@ -11561,38 +11593,31 @@

              MachineIssuesQuery

              - - + + - - - - - - - - + - - - - + + + + - - - - + + + + - - + + - + @@ -11602,8 +11627,8 @@

              MachineIssuesQuery

              -

              MachineNetwork

              -

              MachineNetwork contains details which network should be created on a allocated machine.

              +

              MachineVPN

              +

              MachineVPN contains configuration data for the VPN connection.

              machine_queryMachineQueryconditionMachineCondition

              MachineQuery to select specific machines.

              onlyMachineIssueTyperepeated

              Only includes the specified machine issue types.

              Condition describes the availability.

              omitMachineIssueTyperepeated

              Omits the specified machine issues.

              led_stateMachineChassisIdentifyLEDState

              LEDState indicates the state of the indicator LED on this machine.

              severityMachineIssueSeverityoptional

              Severity filters issue for given severity.

              livelinessMachineLiveliness

              Liveliness of this machine.

              last_error_thresholdgoogle.protobuf.Durationmetal_hammer_versionstring

              LastErrorThreshold defines the last error threshold.

              MetalHammerVersion the version of metal hammer which put the machine in waiting state.

              @@ -11613,125 +11638,31 @@

              MachineNetwork

              - + - + - + - - + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              networkcontrol_plane_address string

              Network the networkID of the allocated machine in this vrf.

              Address of VPN control plane.

              prefixesauth_key stringrepeated

              Prefixes the prefixes of this network.

              Auth key used to connect to VPN.

              destination_prefixesstringrepeated

              DestinationPrefixes prefixes that are reachable within this network.

              connectedbool

              Connected indicate if this machine is connected to the VPN.

              ips string repeated

              IPs the ip addresses of the allocated machine in this vrf.

              network_typeNetworkType

              NetworkType the type of network of this vrf.

              nat_typeNATType

              NatType what type of nat if any should be used.

              vrfuint64

              VRF the vrf id.

              asnuint32

              ASN the autonomous system number for this network.

              projectstringoptional

              Project is the project uuid associated with this network.

              - - - - - -

              MachineNetworkQuery

              -

              MachineNetworkQuery network specific machine queries.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -11741,8 +11672,8 @@

              MachineNetworkQuery

              -

              MachineNic

              -

              MachineNic contains details of a network interface of this machine.

              +

              MetalCPU

              +

              MetalCPU contains details of a cpu in this machine.

              FieldTypeLabelDescription
              networksstringrepeated

              Networks this machine is connected to.

              prefixesstringrepeated

              Prefixes this machine is connected to.

              destination_prefixesstringrepeated

              DestinationPrefixes this machine is connected to.

              ipsstringrepeated

              IPs this machine has.

              vrfsuint64repeated

              VRFs this machine is connected to.

              asnsuint32repeated

              ASNs this machine is connected to.

              IPs of the machine connected to the vpn.

              @@ -11751,92 +11682,43 @@

              MachineNic

              - - - - - - - - - - - - - - - - - - - - - - + - + - - + + - - - - - - - - + - - + + - +
              macstring

              Deprecated. Mac the macaddress of this interface.

              namestring

              Name of this interface.

              identifierstring

              Identifier the unique identifier of this network interface.

              vendor string

              Vendor of this network card.

              Vendor of this cpu.

              model string

              Model of this network card.

              Model of this cpu.

              speeduint64coresuint32

              Speed in bits/second of this network card.

              neighborsMachineNicrepeated

              Neighbors the neighbors visible to this network interface.

              Cores of this cpu.

              hostnamestringthreadsuint32

              Hostname the nic belongs to.

              Threads of this cpu.

              - - -

              Fields with deprecated option

              - - - - - - - - - - - - - - - -
              NameOption
              mac

              true

              - - -

              MachineNicQuery

              -

              MachineNicQuery nic specific machine queries.

              +

              MetalGPU

              +

              MetalGPU contains details of a gpu in this machine.

              @@ -11846,77 +11728,17 @@

              MachineNicQuery

              - - - - - - - - - - - - - - - - - - - - - - + - - - - - -
              macsstringrepeated

              Macs this machine nic has.

              namesstringrepeated

              Names this machine nic has.

              neighbor_macsstringrepeated

              NeighborMacs this machine nic has.

              neighbor_namesvendor stringrepeated

              NeighborNames this machine nic has.

              - - - - - -

              MachinePowerMetric

              -

              MachinePowerMetric contains metrics of the power consumption of a machine.

              - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + @@ -11926,331 +11748,536 @@

              MachinePowerMetric

              -

              MachinePowerSupply

              -

              MachinePowerSupply contains details of the power supply of a machine.

              - - -
              FieldTypeLabelDescription
              average_consumed_wattsfloat

              AverageConsumedWatts shall represent the average power level that occurred averaged over the last IntervalInMin minutes.

              interval_in_minfloat

              IntervalInMin shall represent the time interval (or window), in minutes, in which the PowerMetrics properties are measured over. -Should be an integer, but some Dell implementations return as a float.

              max_consumed_wattsfloat

              MaxConsumedWatts shall represent the maximum power level in watts that occurred within the last IntervalInMin minutes.

              Vendor of this gpu.

              min_consumed_wattsfloatmodelstring

              MinConsumedWatts shall represent the minimum power level in watts that occurred within the last IntervalInMin minutes.

              Model of this gpu.

              - - - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              healthstring

              Health of the powersupply.

              statestring

              State of the powersupply.

              - - - -

              MachineProvisioningEvent

              -

              MachineProvisioningEvent is an event that has occurred during provisioning.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              timegoogle.protobuf.Timestamp

              Time the time that this event was received.

              eventMachineProvisioningEventType

              Event the event emitted by the machine.

              messagestring

              Message an additional message to add to the event.

              - - - - +

              IPProtocol

              +

              IPProtocol defines tcp|udp.

              + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              IP_PROTOCOL_UNSPECIFIED0

              IP_PROTOCOL_UNSPECIFIED is not specified.

              IP_PROTOCOL_TCP1

              IP_PROTOCOL_TCP is tcp.

              IP_PROTOCOL_UDP2

              IP_PROTOCOL_UDP is udp.

              -

              MachineQuery

              -

              MachineQuery contains fields which can be specified to list specific machines.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              uuidstringoptional

              UUID of the machine to get.

              namestringoptional

              Name of the machine to get.

              partitionstringoptional

              Partition of the machine to get.

              sizestringoptional

              Size of the machine to get.

              rackstringoptional

              Rack of the machine to get.

              roomstringoptional

              Room of the machine to get.

              labelsLabelsoptional

              Labels for which this machine should get filtered.

              allocationMachineAllocationQueryoptional

              Allocation specific machine queries.

              networkMachineNetworkQueryoptional

              Network specific machine queries.

              nicMachineNicQueryoptional

              Nic specific machine queries.

              diskMachineDiskQueryoptional

              Disk specific machine queries.

              bmcMachineBMCQueryoptional

              Bmc specific machine queries.

              fruMachineFRUQueryoptional

              Fru specific machine queries.

              hardwareMachineHardwareQueryoptional

              Hardware specific machine query.

              stateMachineStateoptional

              State this machine has.

              waitingbooloptional

              Waiting if set to true, only waiting machines are returned. -Only useful for admins.

              preallocatedbooloptional

              Preallocated if set to true, only machines which are preallocated are returned. -Only useful for admins.

              not_allocatedbooloptional

              NotAllocated if set to true, only machines which are not allocated are returned. -Only useful for admins.

              - - - - +

              MachineAllocationType

              +

              MachineAllocationType defines if this is a machine or a firewall.

              + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_ALLOCATION_TYPE_UNSPECIFIED0

              MACHINE_ALLOCATION_TYPE_UNSPECIFIED is unspecified.

              MACHINE_ALLOCATION_TYPE_MACHINE1

              MACHINE_ALLOCATION_TYPE_MACHINE is a machine.

              MACHINE_ALLOCATION_TYPE_FIREWALL2

              MACHINE_ALLOCATION_TYPE_FIREWALL is a firewall.

              -

              MachineRecentProvisioningEvents

              -

              MachineRecentProvisioningEvents the recent provisioning events for this machine.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              eventsMachineProvisioningEventrepeated

              Events the log of recent machine provisioning events.

              last_event_timegoogle.protobuf.Timestamp

              LastEventTime the time where the last event was received.

              last_error_eventMachineProvisioningEvent

              LastErrorEvent the last erroneous event received.

              stateMachineProvisioningEventState

              State can be either CrashLoop, FailedReclaim or something else.

              - - - - +

              MachineBMCCommand

              +

              MachineBMCCommand defines commands send to the BMC of the machine.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_BMC_COMMAND_UNSPECIFIED0

              MACHINE_BMC_COMMAND_UNSPECIFIED is not defined.

              MACHINE_BMC_COMMAND_ON1

              MACHINE_BMC_COMMAND_ON Power on the machine.

              MACHINE_BMC_COMMAND_OFF2

              MACHINE_BMC_COMMAND_OFF Power off the machine.

              MACHINE_BMC_COMMAND_RESET3

              MACHINE_BMC_COMMAND_RESET Power reset the machine.

              MACHINE_BMC_COMMAND_CYCLE4

              MACHINE_BMC_COMMAND_CYCLE Power cycle the machine.

              MACHINE_BMC_COMMAND_BOOT_TO_BIOS5

              MACHINE_BMC_COMMAND_BOOT_TO_BIOS boot the machine into bios.

              MACHINE_BMC_COMMAND_BOOT_FROM_DISK6

              MACHINE_BMC_COMMAND_BOOT_FROM_DISK boot the machine from hard disk.

              MACHINE_BMC_COMMAND_BOOT_FROM_PXE7

              MACHINE_BMC_COMMAND_BOOT_FROM_PXE boot the machine from pxe.

              MACHINE_BMC_COMMAND_IDENTIFY_LED_ON8

              MACHINE_BMC_COMMAND_IDENTIFY_LED_ON set identify led of the machine chassis to on.

              MACHINE_BMC_COMMAND_IDENTIFY_LED_OFF9

              MACHINE_BMC_COMMAND_IDENTIFY_LED_OFF set identify led of the machine chassis to off.

              MACHINE_BMC_COMMAND_MACHINE_DELETED10

              MACHINE_BMC_COMMAND_MACHINE_DELETED should be called if the machine was deleted to power cycle and boot into pxe.

              MACHINE_BMC_COMMAND_MACHINE_CREATED11

              MACHINE_BMC_COMMAND_MACHINE_CREATED should be called if the machine was created to set the boot order to boot from disk.

              + +

              MachineIssueSeverity

              +

              MachineIssueSeverity defines the severity of an issue.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_ISSUE_SEVERITY_UNSPECIFIED0

              MACHINE_ISSUE_SEVERITY_UNSPECIFIED severity is not specified.

              MACHINE_ISSUE_SEVERITY_MINOR1

              MACHINE_ISSUE_SEVERITY_MINOR machine issues is of severity minor.

              MACHINE_ISSUE_SEVERITY_MAJOR2

              MACHINE_ISSUE_SEVERITY_MAJOR machine issues is of severity major.

              MACHINE_ISSUE_SEVERITY_CRITICAL3

              MACHINE_ISSUE_SEVERITY_CRITICAL machine issues is of severity critical.

              + +

              MachineIssueType

              +

              MachineIssueType defines which type of issue it is.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_ISSUE_TYPE_UNSPECIFIED0

              MACHINE_ISSUE_TYPE_UNSPECIFIED type is not specified.

              MACHINE_ISSUE_TYPE_ASN_UNIQUENESS1

              MACHINE_ISSUE_TYPE_ASN_UNIQUENESS machine asn is not unique.

              MACHINE_ISSUE_TYPE_BMC_INFO_OUTDATED2

              MACHINE_ISSUE_TYPE_BMC_INFO_OUTDATED machine bmc info out of date.

              MACHINE_ISSUE_TYPE_BMC_NON_DISTINCT_IP3

              MACHINE_ISSUE_TYPE_BMC_NON_DISTINCT_IP machine bmc ip is not distinct.

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_IP4

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_IP machine bmc without ip.

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_MAC5

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_MAC machine bmc without mac address.

              MACHINE_ISSUE_TYPE_CRASH_LOOP6

              MACHINE_ISSUE_TYPE_CRASH_LOOP machine is in crashloop.

              MACHINE_ISSUE_TYPE_FAILED_MACHINE_RECLAIM7

              MACHINE_ISSUE_TYPE_FAILED_MACHINE_RECLAIM machine was not freed after delete.

              MACHINE_ISSUE_TYPE_LAST_EVENT_ERROR8

              MACHINE_ISSUE_TYPE_LAST_EVENT_ERROR machine last event error.

              MACHINE_ISSUE_TYPE_LIVELINESS_DEAD9

              MACHINE_ISSUE_TYPE_LIVELINESS_DEAD machine is dead.

              MACHINE_ISSUE_TYPE_LIVELINESS_NOT_AVAILABLE10

              MACHINE_ISSUE_TYPE_LIVELINESS_NOT_AVAILABLE machine liveliness is not available.

              MACHINE_ISSUE_TYPE_LIVELINESS_UNKNOWN11

              MACHINE_ISSUE_TYPE_LIVELINESS_UNKNOWN machine liveliness is unknown.

              MACHINE_ISSUE_TYPE_NO_EVENT_CONTAINER12

              MACHINE_ISSUE_TYPE_NO_EVENT_CONTAINER machine does not have a event container.

              MACHINE_ISSUE_TYPE_NO_PARTITION13

              MACHINE_ISSUE_TYPE_NO_PARTITION no partition set.

              + +

              MachineLiveliness

              +

              MachineLiveliness specifies the liveliness of a machine.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_LIVELINESS_UNSPECIFIED0

              MACHINE_LIVELINESS_UNSPECIFIED is not defined.

              MACHINE_LIVELINESS_ALIVE1

              MACHINE_LIVELINESS_ALIVE liveliness is alive.

              MACHINE_LIVELINESS_DEAD2

              MACHINE_LIVELINESS_DEAD liveliness is dead.

              MACHINE_LIVELINESS_UNKNOWN3

              MACHINE_LIVELINESS_UNKNOWN liveliness is unknown.

              + +

              MachineProvisioningEventState

              +

              MachineProvisioningEventState possible event states.

              + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_PROVISIONING_EVENT_STATE_UNSPECIFIED0

              MACHINE_PROVISIONING_EVENT_STATE_UNSPECIFIED is not specified.

              MACHINE_PROVISIONING_EVENT_STATE_CRASHLOOP1

              MACHINE_PROVISIONING_EVENT_STATE_CRASHLOOP machine is in crash loop.

              MACHINE_PROVISIONING_EVENT_STATE_FAILED_RECLAIM2

              MACHINE_PROVISIONING_EVENT_STATE_FAILED_RECLAIM machine is in failed reclaim.

              + +

              MachineProvisioningEventType

              +

              MachineProvisioningEventType defines in which phase the machine actually is.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_PROVISIONING_EVENT_TYPE_UNSPECIFIED0

              MACHINE_PROVISIONING_EVENT_TYPE_UNSPECIFIED is not specified.

              MACHINE_PROVISIONING_EVENT_TYPE_ALIVE1

              MACHINE_PROVISIONING_EVENT_TYPE_ALIVE machine is alive.

              MACHINE_PROVISIONING_EVENT_TYPE_CRASHED2

              MACHINE_PROVISIONING_EVENT_TYPE_CRASHED machine crashed.

              MACHINE_PROVISIONING_EVENT_TYPE_PXE_BOOTING3

              MACHINE_PROVISIONING_EVENT_TYPE_PXE_BOOTING machine is pxe booting into metal-hammer.

              MACHINE_PROVISIONING_EVENT_TYPE_PLANNED_REBOOT4

              MACHINE_PROVISIONING_EVENT_TYPE_PLANNED_REBOOT machine got a reboot instruction.

              MACHINE_PROVISIONING_EVENT_TYPE_PREPARING5

              MACHINE_PROVISIONING_EVENT_TYPE_PREPARING metal-hammer is preparing the machine.

              MACHINE_PROVISIONING_EVENT_TYPE_REGISTERING6

              MACHINE_PROVISIONING_EVENT_TYPE_REGISTERING metal-hammer registers machine at the apiserver.

              MACHINE_PROVISIONING_EVENT_TYPE_WAITING7

              MACHINE_PROVISIONING_EVENT_TYPE_WAITING machine is waiting for installation.

              MACHINE_PROVISIONING_EVENT_TYPE_INSTALLING8

              MACHINE_PROVISIONING_EVENT_TYPE_INSTALLING metal-hammer is installing the desired os.

              MACHINE_PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL9

              MACHINE_PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL metal-hammer completed installation and boots into target os.

              MACHINE_PROVISIONING_EVENT_TYPE_PHONED_HOME10

              MACHINE_PROVISIONING_EVENT_TYPE_PHONED_HOME machine is installed and phones home.

              MACHINE_PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM11

              MACHINE_PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM machine is not allocated, but phones home.

              + +

              MachineState

              +

              MachineState defines if the machine was locked or reserved from a operator.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              NameNumberDescription
              MACHINE_STATE_UNSPECIFIED0

              MACHINE_STATE_UNSPECIFIED is not specified.

              MACHINE_STATE_TAINTED1

              MACHINE_STATE_TAINTED this machine is tainted, i.e. this machine is not considered during random machine allocation, but still by specifying the uui.

              MACHINE_STATE_LOCKED2

              MACHINE_STATE_LOCKED this machine is locked, i.e. this machine cannot be allocated or delete.

              MACHINE_STATE_AVAILABLE3

              MACHINE_STATE_AVAILABLE this machine is available for all.

              -

              MachineServiceBMCCommandRequest

              -

              MachineServiceBMCCommandRequest is the request payload for a machine bmc command.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              uuidstring

              UUID of the machine to send the command to.

              projectstring

              Project of the machine.

              commandMachineBMCCommand

              Command to send to the bmc of the machine.

              - + - -

              MachineServiceBMCCommandResponse

              -

              MachineServiceBMCCommandResponse is the response payload for a machine bmc command.

              +

              MachineService

              +

              MachineService provides machine lifecycle management operations.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              Method NameRequest TypeResponse TypeDescription
              GetMachineServiceGetRequestMachineServiceGetResponse

              Returns the machine with the specified UUID.

              CreateMachineServiceCreateRequestMachineServiceCreateResponse

              Creates a new machine.

              UpdateMachineServiceUpdateRequestMachineServiceUpdateResponse

              Updates a machine.

              ListMachineServiceListRequestMachineServiceListResponse

              Returns the list of all machines.

              DeleteMachineServiceDeleteRequestMachineServiceDeleteResponse

              Deletes a machine.

              BMCCommandMachineServiceBMCCommandRequestMachineServiceBMCCommandResponse

              BMCCommand sends a command to the BMC of a machine.

              GetBMCMachineServiceGetBMCRequestMachineServiceGetBMCResponse

              Returns the BMC details of a machine.

              - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              task_idstring

              TaskId is the identifier of the task that managed the bmc command execution. -Only useful for admins.

              - - + + +
              +

              metalstack/api/v2/vpn.proto

              Top +
              +

              - -

              MachineServiceCreateRequest

              -

              MachineServiceCreateRequest is the request payload for a machine create request.

              +

              VPNNode

              +

              VPNNode represents a machine connected to the VPN.

              @@ -12260,142 +12287,121 @@

              MachineServiceCreateReque

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - + - + - - + + - - + + - + - - + + - + - - + + - + - - - - + + + + + +
              projectstring

              Project of the machine.

              uuidstringoptional

              UUID if this field is set, this specific machine will be allocated if it is not in available state and not currently allocated. -this field takes precedence over size and partition. -Can only be used with ADMIN_ROLE_EDITOR.

              namestring

              Name of this machine.

              descriptionstringoptional

              Description for this machine.

              hostnamestringoptional

              Hostname the hostname for the allocated machine (defaults to metal).

              partitionstringoptional

              Partition the partition id to assign this machine to, must be omitted if uuid is given.

              sizestringoptional

              Size of the machine to create, must be omitted if uuid is given.

              imagestringiduint64

              Image which should be installed on this machine. -The image can be specified either in the fully qualified form, e.g. including os, major, minor and patch -- debian-13.0.2026040 -- or in a simplified form which omits the patch version. -- debian-13. -If the fully qualified form is specified, exactly this image is taken regardless of the image classification. -If the short form is given, only the most recent images which has image classification supported is used.

              filesystem_layoutstringoptional

              FilesystemLayout which should be applied for the operating system installation. -Is defaulted by a lookup at the available fsls for this size and image. -Can be specified to test new fsls during development of fsls.

              ssh_public_keysstringrepeated

              SSHPublicKeys defines the ssh public key to be installed on the machine to access it via ssh.

              ID of this node.

              userdataname stringoptional

              Userdata contains instructions required to bootstrap the machine. -AWS limits the max userdata size to 16k, lets allow twice as much. -Must be base64 encoded.

              Name of this node.

              labelsLabelsprojectstring

              Labels to be attached to this machine allocation.

              Project of this node, maps to a project.

              networksMachineAllocationNetworkip_addressesstring repeated

              Networks the networks that this machine will be placed in.

              IPAddresses of this node in the VPN.

              placement_labelsLabelslast_seengoogle.protobuf.Timestamp

              PlacementLabels by default machines are spread across the racks inside a partition for every project. -if placement labels are provided, the machine candidate has an additional anti-affinity to other machines having the same labels.

              LastSeen timestamp when this node reached out to the control plane.

              dns_serversDNSServerrepeated

              DNSServer the dns servers used for the machine.

              onlinebool

              Online indicates if this node is online.

              + + + + + + + + + + + + + +
              +

              metalstack/admin/v2/housekeeping.proto

              Top +
              +

              + + +

              HousekeepingServiceMachineLivelinessRequest

              +

              HousekeepingServiceMachineLivelinessRequest is the request payload for a machine liveliness housekeeping request.

              + + + + + +

              HousekeepingServiceMachineLivelinessResponse

              +

              HousekeepingServiceMachineLivelinessResponse is the response payload for a machine liveliness housekeeping request.

              + + + + + + + + - - + + - + - - - - - - + +
              FieldTypeLabelDescription
              ntp_serversNTPServermodified_machinesMachineWithLiveliness repeated

              NTPServer the ntp servers used for the machine.

              Modified Machines modified during this housekeeping action.

              allocation_typeMachineAllocationType

              AllocationType of this machine.

              + + + + + +

              HousekeepingServiceMachineResurrectRequest

              +

              HousekeepingServiceMachineResurrectRequest is the request payload for a machine resurrect housekeeping request.

              + + + + + +

              HousekeepingServiceMachineResurrectResponse

              +

              HousekeepingServiceMachineResurrectResponse is the response payload for a machine resurrect housekeeping request.

              + + + + + + + - - - - + + + + @@ -12405,8 +12411,15 @@

              MachineServiceCreateReque -

              MachineServiceCreateResponse

              -

              MachineServiceCreateResponse is the response payload for a machine create request.

              +

              HousekeepingServiceMachineVPNConnectedRequest

              +

              HousekeepingServiceMachineVPNConnectedRequest is the request payload for a machine vpn connected housekeeping request.

              + + + + + +

              HousekeepingServiceMachineVPNConnectedResponse

              +

              HousekeepingServiceMachineVPNConnectedResponse is the response payload for a machine vpn connected housekeeping request.

              FieldTypeLabelDescription
              firewall_specFirewallSpec

              FirewallSpec provides firewall specific parameters if allocationType is firewall.

              modified_machinesmetalstack.api.v2.Machinerepeated

              Machines which have been resurrected

              @@ -12416,10 +12429,10 @@

              MachineServiceCreateResp

              - - - - + + + + @@ -12429,8 +12442,8 @@

              MachineServiceCreateResp -

              MachineServiceDeleteRequest

              -

              MachineServiceDeleteRequest is the request payload for a machine delete request.

              +

              MachineWithLiveliness

              +

              MachineWithLiveliness

              machineMachine

              Machine which was created.

              modified_machinesmetalstack.api.v2.VPNNoderepeated

              Nodes connected to the VPN.

              @@ -12443,14 +12456,14 @@

              MachineServiceDeleteReque

              - + - - + + - + @@ -12460,8 +12473,55 @@

              MachineServiceDeleteReque -

              MachineServiceDeleteResponse

              -

              MachineServiceDeleteResponse is the response payload for a machine delete request.

              + + + + + + +

              HousekeepingService

              +

              HousekeepingService provides housekeeping operations.

              +
              uuid string

              UUID of the machine to delete.

              UUID of this machine.

              projectstringlivelinessmetalstack.api.v2.MachineLiveliness

              Project of the machine.

              Liveliness of this machine.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              Method NameRequest TypeResponse TypeDescription
              MachineLivelinessHousekeepingServiceMachineLivelinessRequestHousekeepingServiceMachineLivelinessResponse

              Machine liveliness

              MachineVPNConnectedHousekeepingServiceMachineVPNConnectedRequestHousekeepingServiceMachineVPNConnectedResponse

              Machine vpn connected

              MachineResurrectHousekeepingServiceMachineResurrectRequestHousekeepingServiceMachineResurrectResponse

              Machine resurrect dead machines

              + + + + +
              +

              metalstack/admin/v2/image.proto

              Top +
              +

              + + +

              ImageServiceCreateRequest

              +

              ImageServiceCreateRequest is the request payload for creating an image.

              @@ -12471,10 +12531,10 @@

              MachineServiceDeleteResp

              - - + + - + @@ -12484,8 +12544,8 @@

              MachineServiceDeleteResp -

              MachineServiceGetBMCRequest

              -

              MachineServiceGetBMCRequest is the request payload for a machine getbmc request.

              +

              ImageServiceCreateResponse

              +

              ImageServiceCreateResponse is the response payload for creating an image.

              machineMachineimagemetalstack.api.v2.Image

              Machine which was deleted.

              Image is the image to create.

              @@ -12495,17 +12555,34 @@

              MachineServiceGetBMCReque

              - - + + - + + +
              uuidstringimagemetalstack.api.v2.Image

              UUID of the machine to get.

              Image contains the created image.

              + + + + + +

              ImageServiceDeleteRequest

              +

              ImageServiceDeleteRequest is the request payload for deleting an image.

              + + + + + + + + - + - + @@ -12515,8 +12592,8 @@

              MachineServiceGetBMCReque -

              MachineServiceGetBMCResponse

              -

              MachineServiceGetBMCResponse is the response payload for a machine getbmc request.

              +

              ImageServiceDeleteResponse

              +

              ImageServiceDeleteResponse is the response payload for deleting an image.

              FieldTypeLabelDescription
              projectid string

              Project of the machine.

              ID of the image to delete.

              @@ -12526,10 +12603,10 @@

              MachineServiceGetBMCResp

              - - + + - + @@ -12539,8 +12616,8 @@

              MachineServiceGetBMCResp -

              MachineServiceGetRequest

              -

              MachineServiceGetRequest is the request payload for a machine get request.

              +

              ImageServiceUpdateRequest

              +

              ImageServiceUpdateRequest is the request payload for updating an image.

              bmc_detailsMachineBMCDetailsimagemetalstack.api.v2.Image

              BMCDetails contains the BMC details of this machine.

              Image contains the deleted image.

              @@ -12550,17 +12627,66 @@

              MachineServiceGetRequest

              - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + + + + + + + + @@ -12570,8 +12696,8 @@

              MachineServiceGetRequest

              MachineServiceGetResponse -

              MachineServiceGetResponse is the response payload for a machine get request.

              +

              ImageServiceUpdateResponse

              +

              ImageServiceUpdateResponse is the response payload for updating an image.

              uuidstringidstring

              Id of this image.

              update_metametalstack.api.v2.UpdateMeta

              UpdateMeta contains the timestamp and strategy to be used in this update request.

              urlstringoptional

              URL where this image is located.

              namestringoptional

              Name of this image.

              descriptionstringoptional

              Description of this image.

              featuresmetalstack.api.v2.ImageFeaturerepeated

              Features of this image.

              classificationmetalstack.api.v2.ImageClassification

              UUID of the machine to get.

              Classification of this image.

              projectstringexpires_atgoogle.protobuf.Timestamp

              Project of the machine.

              ExpiresAt indicates that usage is not possible after this date.

              labelsmetalstack.api.v2.UpdateLabelsoptional

              Labels to update on this image.

              @@ -12581,10 +12707,10 @@

              MachineServiceGetResponse

              - - + + - + @@ -12594,8 +12720,8 @@

              MachineServiceGetResponseMachineServiceListRequest

              -

              MachineServiceListRequest is the request payload for a machine list request.

              +

              ImageServiceUsageRequest

              +

              ImageServiceUsageRequest is the request payload for getting image usage.

              machineMachineimagemetalstack.api.v2.Image

              Machine is the machine requested.

              Image contains the updated image.

              @@ -12604,18 +12730,11 @@

              MachineServiceListRequest

              - - - - - - - - + - + @@ -12625,8 +12744,8 @@

              MachineServiceListRequestMachineServiceListResponse

              -

              MachineServiceListResponse is the response payload for a machine list request.

              +

              ImageServiceUsageResponse

              +

              ImageServiceUsageResponse is the response payload for getting image usage.

              projectstring

              Project of the machines to list.

              queryMachineQuerymetalstack.api.v2.ImageQuery

              Query to list one ore more machines.

              Query for which images the usage should be reported.

              @@ -12636,10 +12755,10 @@

              MachineServiceListResponse

              - - + + - + @@ -12649,8 +12768,62 @@

              MachineServiceListResponse -

              MachineServiceUpdateRequest

              -

              MachineServiceUpdateRequest is the request payload for a machine update request.

              + + + + + + +

              ImageService

              +

              ImageService provides image management operations.

              +
              machinesMachineimage_usagemetalstack.api.v2.ImageUsage repeated

              Machines are the machines requested by a list request.

              Images contains usage information.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              Method NameRequest TypeResponse TypeDescription
              CreateImageServiceCreateRequestImageServiceCreateResponse

              Creates a new image.

              UpdateImageServiceUpdateRequestImageServiceUpdateResponse

              Updates an image.

              DeleteImageServiceDeleteRequestImageServiceDeleteResponse

              Deletes an image.

              UsageImageServiceUsageRequestImageServiceUsageResponse

              Returns the usage of images.

              + + + + +
              +

              metalstack/api/v2/ip.proto

              Top +
              +

              + + +

              IP

              +

              IP is an IP address which can be used as loadbalancer addresses.

              @@ -12663,42 +12836,64 @@

              MachineServiceUpdateReque

              - + - - + + - + - + - + + + + + + + + - - + + - - - - + + + + - + - - + + + + + + + + + + + + + + + + @@ -12708,8 +12903,8 @@

              MachineServiceUpdateReque -

              MachineServiceUpdateResponse

              -

              MachineServiceUpdateResponse is the response payload for a machine update request.

              +

              IPQuery

              +

              IPQuery can be used to query a IP or a list of IP.

              uuid string

              UUID of the machine to modify.

              Uuid of this ip.

              update_metaUpdateMetametaMeta

              UpdateMeta contains the timestamp and strategy to be used in this update request.

              Meta for this ip.

              projectip string

              Project of the machine.

              Ip is either ipv4 or ipv6 address.

              namestring

              Name of this ip.

              description stringoptional

              Description of this machine allocation.

              Description of this ip.

              labelsUpdateLabelsoptional

              Labels to update on this machine allocation.

              networkstring

              Network is the network this ip belongs to.

              ssh_public_keysproject stringrepeated

              SSHPublicKeys which should be update of this machine allocation.

              Project where this ip address belongs to.

              typeIPType

              Type of this ip.

              namespacestringoptional

              Namespace if specified this ip is from a namespaced network and can therefore overlap with others. +Will be equal with project most of the time.

              @@ -12718,56 +12913,81 @@

              MachineServiceUpdateResp

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - -
              ipstringoptional

              Ip the ip to list.

              networkstringoptional

              Network from which the IPs are to list.

              projectstringoptional

              Project of the ips to list.

              namestringoptional

              Name of this ip.

              uuidstringoptional

              UUID for which these IPs should be filtered.

              machineMachine

              Machine which was updated.

              stringoptional

              Machine for which these IPs should be filtered.

              - - - - - -

              MachineStatus

              -

              MachineStatus contains several status details related to this machine.

              - - - - - - - + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - + - - + + @@ -12777,8 +12997,8 @@

              MachineStatus

              -

              MachineVPN

              -

              MachineVPN contains configuration data for the VPN connection.

              +

              IPServiceCreateRequest

              +

              IPServiceCreateRequest is the request payload for an IP create request.

              FieldTypeLabelDescription
              parent_prefix_cidrstringoptional

              ParentPrefixCidr for which this ips should get filtered.

              conditionMachineCondition

              Condition describes the availability.

              labelsLabelsoptional

              Labels for which these IPs should be filtered.

              led_stateMachineChassisIdentifyLEDState

              LEDState indicates the state of the indicator LED on this machine.

              typeIPTypeoptional

              Static if set to true, this will be a Static ip.

              livelinessMachineLiveliness

              Liveliness of this machine.

              address_familyIPAddressFamilyoptional

              Address family of the IPs to list, defaults to all address families.

              metal_hammer_versionnamespace string

              MetalHammerVersion the version of metal hammer which put the machine in waiting state.

              optional

              Namespace can be specified to get the ip of a namespace.

              @@ -12788,76 +13008,66 @@

              MachineVPN

              - + - + - + - + - - - - + + + + - + - - + + - -
              control_plane_addressnetwork string

              Address of VPN control plane.

              Network from which the IP should be created.

              auth_keyproject string

              Auth key used to connect to VPN.

              Project of the ip.

              connectedbool

              Connected indicate if this machine is connected to the VPN.

              namestringoptional

              Name of the ip.

              ipsdescription stringrepeated

              IPs of the machine connected to the vpn.

              optional

              Description of the ip.

              - - - - - -

              MetalCPU

              -

              MetalCPU contains details of a cpu in this machine.

              - - - - - - - - - + - - + + - + - - + + - - - - + + + + - - - - + + + + + + + + + + + @@ -12867,459 +13077,325 @@

              MetalCPU

              -

              MetalGPU

              -

              MetalGPU contains details of a gpu in this machine.

              +

              IPServiceCreateResponse

              +

              IPServiceCreateResponse is the response payload for an IP create request.

              FieldTypeLabelDescription
              vendorip string

              Vendor of this cpu.

              optional

              IP if given try to create this ip if still available.

              modelmachine string

              Model of this cpu.

              optional

              Machine for which this ip should get created.

              coresuint32

              Cores of this cpu.

              labelsLabelsoptional

              Labels to put onto the ip.

              threadsuint32

              Threads of this cpu.

              typeIPTypeoptional

              Type of the IP, ether ephemeral (default), or static.

              address_familyIPAddressFamilyoptional

              Addressfamily of the IP to create, defaults to ipv4.

              - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              vendorstring

              Vendor of this gpu.

              modelstring

              Model of this gpu.

              - - - - - - - -

              IPProtocol

              -

              IPProtocol defines tcp|udp.

              - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              IP_PROTOCOL_UNSPECIFIED0

              IP_PROTOCOL_UNSPECIFIED is not specified.

              IP_PROTOCOL_TCP1

              IP_PROTOCOL_TCP is tcp.

              IP_PROTOCOL_UDP2

              IP_PROTOCOL_UDP is udp.

              - -

              MachineAllocationType

              -

              MachineAllocationType defines if this is a machine or a firewall.

              - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              MACHINE_ALLOCATION_TYPE_UNSPECIFIED0

              MACHINE_ALLOCATION_TYPE_UNSPECIFIED is unspecified.

              MACHINE_ALLOCATION_TYPE_MACHINE1

              MACHINE_ALLOCATION_TYPE_MACHINE is a machine.

              MACHINE_ALLOCATION_TYPE_FIREWALL2

              MACHINE_ALLOCATION_TYPE_FIREWALL is a firewall.

              - -

              MachineBMCCommand

              -

              MachineBMCCommand defines commands send to the BMC of the machine.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              MACHINE_BMC_COMMAND_UNSPECIFIED0

              MACHINE_BMC_COMMAND_UNSPECIFIED is not defined.

              MACHINE_BMC_COMMAND_ON1

              MACHINE_BMC_COMMAND_ON Power on the machine.

              MACHINE_BMC_COMMAND_OFF2

              MACHINE_BMC_COMMAND_OFF Power off the machine.

              MACHINE_BMC_COMMAND_RESET3

              MACHINE_BMC_COMMAND_RESET Power reset the machine.

              MACHINE_BMC_COMMAND_CYCLE4

              MACHINE_BMC_COMMAND_CYCLE Power cycle the machine.

              MACHINE_BMC_COMMAND_BOOT_TO_BIOS5

              MACHINE_BMC_COMMAND_BOOT_TO_BIOS boot the machine into bios.

              MACHINE_BMC_COMMAND_BOOT_FROM_DISK6

              MACHINE_BMC_COMMAND_BOOT_FROM_DISK boot the machine from hard disk.

              MACHINE_BMC_COMMAND_BOOT_FROM_PXE7

              MACHINE_BMC_COMMAND_BOOT_FROM_PXE boot the machine from pxe.

              MACHINE_BMC_COMMAND_IDENTIFY_LED_ON8

              MACHINE_BMC_COMMAND_IDENTIFY_LED_ON set identify led of the machine chassis to on.

              MACHINE_BMC_COMMAND_IDENTIFY_LED_OFF9

              MACHINE_BMC_COMMAND_IDENTIFY_LED_OFF set identify led of the machine chassis to off.

              MACHINE_BMC_COMMAND_MACHINE_DELETED10

              MACHINE_BMC_COMMAND_MACHINE_DELETED should be called if the machine was deleted to power cycle and boot into pxe.

              MACHINE_BMC_COMMAND_MACHINE_CREATED11

              MACHINE_BMC_COMMAND_MACHINE_CREATED should be called if the machine was created to set the boot order to boot from disk.

              + + + + + ip + IP + +

              Ip the ip.

              + + + + + + + + -

              MachineIssueSeverity

              -

              MachineIssueSeverity defines the severity of an issue.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              MACHINE_ISSUE_SEVERITY_UNSPECIFIED0

              MACHINE_ISSUE_SEVERITY_UNSPECIFIED severity is not specified.

              MACHINE_ISSUE_SEVERITY_MINOR1

              MACHINE_ISSUE_SEVERITY_MINOR machine issues is of severity minor.

              MACHINE_ISSUE_SEVERITY_MAJOR2

              MACHINE_ISSUE_SEVERITY_MAJOR machine issues is of severity major.

              MACHINE_ISSUE_SEVERITY_CRITICAL3

              MACHINE_ISSUE_SEVERITY_CRITICAL machine issues is of severity critical.

              +

              IPServiceDeleteRequest

              +

              IPServiceDeleteRequest is the request payload for a ip delete request.

              + + + + + + + + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipstring

              IP of the ip to delete.

              projectstring

              Project of the ip.

              + + + + -

              MachineIssueType

              -

              MachineIssueType defines which type of issue it is.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              MACHINE_ISSUE_TYPE_UNSPECIFIED0

              MACHINE_ISSUE_TYPE_UNSPECIFIED type is not specified.

              MACHINE_ISSUE_TYPE_ASN_UNIQUENESS1

              MACHINE_ISSUE_TYPE_ASN_UNIQUENESS machine asn is not unique.

              MACHINE_ISSUE_TYPE_BMC_INFO_OUTDATED2

              MACHINE_ISSUE_TYPE_BMC_INFO_OUTDATED machine bmc info out of date.

              MACHINE_ISSUE_TYPE_BMC_NON_DISTINCT_IP3

              MACHINE_ISSUE_TYPE_BMC_NON_DISTINCT_IP machine bmc ip is not distinct.

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_IP4

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_IP machine bmc without ip.

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_MAC5

              MACHINE_ISSUE_TYPE_BMC_WITHOUT_MAC machine bmc without mac address.

              MACHINE_ISSUE_TYPE_CRASH_LOOP6

              MACHINE_ISSUE_TYPE_CRASH_LOOP machine is in crashloop.

              MACHINE_ISSUE_TYPE_FAILED_MACHINE_RECLAIM7

              MACHINE_ISSUE_TYPE_FAILED_MACHINE_RECLAIM machine was not freed after delete.

              MACHINE_ISSUE_TYPE_LAST_EVENT_ERROR8

              MACHINE_ISSUE_TYPE_LAST_EVENT_ERROR machine last event error.

              MACHINE_ISSUE_TYPE_LIVELINESS_DEAD9

              MACHINE_ISSUE_TYPE_LIVELINESS_DEAD machine is dead.

              MACHINE_ISSUE_TYPE_LIVELINESS_NOT_AVAILABLE10

              MACHINE_ISSUE_TYPE_LIVELINESS_NOT_AVAILABLE machine liveliness is not available.

              MACHINE_ISSUE_TYPE_LIVELINESS_UNKNOWN11

              MACHINE_ISSUE_TYPE_LIVELINESS_UNKNOWN machine liveliness is unknown.

              MACHINE_ISSUE_TYPE_NO_EVENT_CONTAINER12

              MACHINE_ISSUE_TYPE_NO_EVENT_CONTAINER machine does not have a event container.

              MACHINE_ISSUE_TYPE_NO_PARTITION13

              MACHINE_ISSUE_TYPE_NO_PARTITION no partition set.

              +

              IPServiceDeleteResponse

              +

              IPServiceDeleteResponse is the response payload for an IP delete request.

              + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipIP

              Ip the ip.

              + + + + + +

              IPServiceGetRequest

              +

              IPServiceGetRequest is the request payload for an IP get request.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipstring

              IP of the ip to get.

              projectstring

              Project of the ip.

              namespacestringoptional

              Namespace can be specified to get the ip of a namespace.

              + + + + + +

              IPServiceGetResponse

              +

              IPServiceGetResponse is the response payload for an IP get request.

              + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipIP

              Ip the ip.

              + + + + -

              MachineLiveliness

              -

              MachineLiveliness specifies the liveliness of a machine.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              MACHINE_LIVELINESS_UNSPECIFIED0

              MACHINE_LIVELINESS_UNSPECIFIED is not defined.

              MACHINE_LIVELINESS_ALIVE1

              MACHINE_LIVELINESS_ALIVE liveliness is alive.

              MACHINE_LIVELINESS_DEAD2

              MACHINE_LIVELINESS_DEAD liveliness is dead.

              MACHINE_LIVELINESS_UNKNOWN3

              MACHINE_LIVELINESS_UNKNOWN liveliness is unknown.

              +

              IPServiceListRequest

              +

              IPServiceListRequest is the request payload for an IP list request.

              + + + + + + + + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              projectstring

              Project of the ips to list.

              queryIPQuery

              Query to list one or more IPs.

              + + + + -

              MachineProvisioningEventState

              -

              MachineProvisioningEventState possible event states.

              - - - - - - - - - - - - - - - - - - - - - - - - - -
              NameNumberDescription
              MACHINE_PROVISIONING_EVENT_STATE_UNSPECIFIED0

              MACHINE_PROVISIONING_EVENT_STATE_UNSPECIFIED is not specified.

              MACHINE_PROVISIONING_EVENT_STATE_CRASHLOOP1

              MACHINE_PROVISIONING_EVENT_STATE_CRASHLOOP machine is in crash loop.

              MACHINE_PROVISIONING_EVENT_STATE_FAILED_RECLAIM2

              MACHINE_PROVISIONING_EVENT_STATE_FAILED_RECLAIM machine is in failed reclaim.

              +

              IPServiceListResponse

              +

              IPServiceListResponse is the response payload for an IP list request.

              + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipsIPrepeated

              Ips the ips.

              + + + + -

              MachineProvisioningEventType

              -

              MachineProvisioningEventType defines in which phase the machine actually is.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

              IPServiceUpdateRequest

              +

              IPServiceUpdateRequest is the request payload for an IP update request.

              + + +
              NameNumberDescription
              MACHINE_PROVISIONING_EVENT_TYPE_UNSPECIFIED0

              MACHINE_PROVISIONING_EVENT_TYPE_UNSPECIFIED is not specified.

              MACHINE_PROVISIONING_EVENT_TYPE_ALIVE1

              MACHINE_PROVISIONING_EVENT_TYPE_ALIVE machine is alive.

              MACHINE_PROVISIONING_EVENT_TYPE_CRASHED2

              MACHINE_PROVISIONING_EVENT_TYPE_CRASHED machine crashed.

              MACHINE_PROVISIONING_EVENT_TYPE_PXE_BOOTING3

              MACHINE_PROVISIONING_EVENT_TYPE_PXE_BOOTING machine is pxe booting into metal-hammer.

              MACHINE_PROVISIONING_EVENT_TYPE_PLANNED_REBOOT4

              MACHINE_PROVISIONING_EVENT_TYPE_PLANNED_REBOOT machine got a reboot instruction.

              MACHINE_PROVISIONING_EVENT_TYPE_PREPARING5

              MACHINE_PROVISIONING_EVENT_TYPE_PREPARING metal-hammer is preparing the machine.

              MACHINE_PROVISIONING_EVENT_TYPE_REGISTERING6

              MACHINE_PROVISIONING_EVENT_TYPE_REGISTERING metal-hammer registers machine at the apiserver.

              MACHINE_PROVISIONING_EVENT_TYPE_WAITING7

              MACHINE_PROVISIONING_EVENT_TYPE_WAITING machine is waiting for installation.

              MACHINE_PROVISIONING_EVENT_TYPE_INSTALLING8

              MACHINE_PROVISIONING_EVENT_TYPE_INSTALLING metal-hammer is installing the desired os.

              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipstring

              Ip the ip address to update.

              update_metaUpdateMeta

              UpdateMeta contains the timestamp and strategy to be used in this update request.

              projectstring

              Project id of the ip.

              namestringoptional

              Name of this ip.

              descriptionstringoptional

              Description of this ip.

              typeIPTypeoptional

              Type of this ip.

              labelsUpdateLabelsoptional

              Labels on this ip.

              + + + + + +

              IPServiceUpdateResponse

              +

              IPServiceUpdateResponse is the response payload for a ip update request.

              + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipIP

              Ip the ip.

              + + + + + + + +

              IPAddressFamily

              +

              IPAddressFamily defines either IPv4 or IPv6 Addressfamily.

              + + + + + - - - + + + - - - + + + - - - + + +
              NameNumberDescription
              MACHINE_PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL9

              MACHINE_PROVISIONING_EVENT_TYPE_BOOTING_NEW_KERNEL metal-hammer completed installation and boots into target os.

              IP_ADDRESS_FAMILY_UNSPECIFIED0

              IP_ADDRESS_FAMILY_UNSPECIFIED is not specified.

              MACHINE_PROVISIONING_EVENT_TYPE_PHONED_HOME10

              MACHINE_PROVISIONING_EVENT_TYPE_PHONED_HOME machine is installed and phones home.

              IP_ADDRESS_FAMILY_V41

              IP_ADDRESS_FAMILY_V4 defines a IPv4 address.

              MACHINE_PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM11

              MACHINE_PROVISIONING_EVENT_TYPE_MACHINE_RECLAIM machine is not allocated, but phones home.

              IP_ADDRESS_FAMILY_V62

              IP_ADDRESS_FAMILY_V6 defines a IPv6 address.

              -

              MachineState

              -

              MachineState defines if the machine was locked or reserved from a operator.

              +

              IPType

              +

              IPType specifies different IP address types.

              @@ -13327,27 +13403,21 @@

              MachineState

              - + - + - + - + - + - - - - - - - + @@ -13357,8 +13427,8 @@

              MachineState

              -

              MachineService

              -

              MachineService provides machine lifecycle management operations.

              +

              IPService

              +

              IPService provides IP address management operations.

              NameNumberDescription
              MACHINE_STATE_UNSPECIFIEDIP_TYPE_UNSPECIFIED 0

              MACHINE_STATE_UNSPECIFIED is not specified.

              IP_TYPE_UNSPECIFIED is not specified.

              MACHINE_STATE_TAINTEDIP_TYPE_EPHEMERAL 1

              MACHINE_STATE_TAINTED this machine is tainted, i.e. this machine is not considered during random machine allocation, but still by specifying the uui.

              IP_TYPE_EPHEMERAL defines an ephemeral IP address which is freed/deleted after usage.

              MACHINE_STATE_LOCKEDIP_TYPE_STATIC 2

              MACHINE_STATE_LOCKED this machine is locked, i.e. this machine cannot be allocated or delete.

              MACHINE_STATE_AVAILABLE3

              MACHINE_STATE_AVAILABLE this machine is available for all.

              IP_TYPE_STATIC defines a static ip address which must be freed/deleted explicitly.

              @@ -13367,51 +13437,118 @@

              MachineService

              - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - + +
              Method NameRequest TypeResponse TypeDescription
              GetMachineServiceGetRequestMachineServiceGetResponse

              Returns the machine with the specified UUID.

              IPServiceGetRequestIPServiceGetResponse

              Returns the IP address with the specified IP.

              CreateMachineServiceCreateRequestMachineServiceCreateResponse

              Creates a new machine.

              IPServiceCreateRequestIPServiceCreateResponse

              Creates a new IP address.

              UpdateMachineServiceUpdateRequestMachineServiceUpdateResponse

              Updates a machine.

              IPServiceUpdateRequestIPServiceUpdateResponse

              Updates an IP address.

              ListMachineServiceListRequestMachineServiceListResponse

              Returns the list of all machines.

              IPServiceListRequestIPServiceListResponse

              Returns the list of all IP addresses.

              DeleteMachineServiceDeleteRequestMachineServiceDeleteResponse

              Deletes a machine.

              IPServiceDeleteRequestIPServiceDeleteResponse

              Deletes an IP address.

              BMCCommandMachineServiceBMCCommandRequestMachineServiceBMCCommandResponse

              BMCCommand sends a command to the BMC of a machine.

              + + + + +
              +

              metalstack/admin/v2/ip.proto

              Top +
              +

              + + +

              IPServiceListRequest

              +

              IPServiceListRequest is the request payload for listing IP addresses.

              + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              querymetalstack.api.v2.IPQuery

              Query to search for IP addresses.

              + + + + + +

              IPServiceListResponse

              +

              IPServiceListResponse is the response payload for listing IP addresses.

              + + + + + + + + + + + + + + + + +
              FieldTypeLabelDescription
              ipsmetalstack.api.v2.IPrepeated

              IPs contains the list of IP addresses.

              + + + + + + + + + + + +

              IPService

              +

              IPService provides IP address management operations.

              + + + + + - - - - + + + + @@ -20183,79 +20320,6 @@

              TokenService

              -
              -

              metalstack/api/v2/vpn.proto

              Top -
              -

              - - -

              VPNNode

              -

              VPNNode represents a machine connected to the VPN.

              - - -
              Method NameRequest TypeResponse TypeDescription
              GetBMCMachineServiceGetBMCRequestMachineServiceGetBMCResponse

              Returns the BMC details of a machine.

              ListIPServiceListRequestIPServiceListResponse

              Returns the list of all IP addresses.

              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              FieldTypeLabelDescription
              iduint64

              ID of this node.

              namestring

              Name of this node.

              projectstring

              Project of this node, maps to a project.

              ip_addressesstringrepeated

              IPAddresses of this node in the VPN.

              last_seengoogle.protobuf.Timestamp

              LastSeen timestamp when this node reached out to the control plane.

              onlinebool

              Online indicates if this node is online.

              - - - - - - - - - - - - -

              metalstack/admin/v2/vpn.proto

              Top
              diff --git a/go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go b/go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go index ae7ef685..d4a5876f 100644 --- a/go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go +++ b/go/metalstack/admin/v2/adminv2connect/housekeeping.connect.go @@ -33,15 +33,25 @@ const ( // reflection-formatted method names, remove the leading slash and convert the remaining slash to a // period. const ( - // HousekeepingServiceMachineProcedure is the fully-qualified name of the HousekeepingService's - // Machine RPC. - HousekeepingServiceMachineProcedure = "/metalstack.admin.v2.HousekeepingService/Machine" + // HousekeepingServiceMachineLivelinessProcedure is the fully-qualified name of the + // HousekeepingService's MachineLiveliness RPC. + HousekeepingServiceMachineLivelinessProcedure = "/metalstack.admin.v2.HousekeepingService/MachineLiveliness" + // HousekeepingServiceMachineVPNConnectedProcedure is the fully-qualified name of the + // HousekeepingService's MachineVPNConnected RPC. + HousekeepingServiceMachineVPNConnectedProcedure = "/metalstack.admin.v2.HousekeepingService/MachineVPNConnected" + // HousekeepingServiceMachineResurrectProcedure is the fully-qualified name of the + // HousekeepingService's MachineResurrect RPC. + HousekeepingServiceMachineResurrectProcedure = "/metalstack.admin.v2.HousekeepingService/MachineResurrect" ) // HousekeepingServiceClient is a client for the metalstack.admin.v2.HousekeepingService service. type HousekeepingServiceClient interface { - // Machine housekeeping - Machine(context.Context, *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) + // Machine liveliness + MachineLiveliness(context.Context, *v2.HousekeepingServiceMachineLivelinessRequest) (*v2.HousekeepingServiceMachineLivelinessResponse, error) + // Machine vpn connected + MachineVPNConnected(context.Context, *v2.HousekeepingServiceMachineVPNConnectedRequest) (*v2.HousekeepingServiceMachineVPNConnectedResponse, error) + // Machine resurrect dead machines + MachineResurrect(context.Context, *v2.HousekeepingServiceMachineResurrectRequest) (*v2.HousekeepingServiceMachineResurrectResponse, error) } // NewHousekeepingServiceClient constructs a client for the metalstack.admin.v2.HousekeepingService @@ -55,10 +65,22 @@ func NewHousekeepingServiceClient(httpClient connect.HTTPClient, baseURL string, baseURL = strings.TrimRight(baseURL, "/") housekeepingServiceMethods := v2.File_metalstack_admin_v2_housekeeping_proto.Services().ByName("HousekeepingService").Methods() return &housekeepingServiceClient{ - machine: connect.NewClient[v2.HousekeepingServiceMachineRequest, v2.HousekeepingServiceMachineResponse]( + machineLiveliness: connect.NewClient[v2.HousekeepingServiceMachineLivelinessRequest, v2.HousekeepingServiceMachineLivelinessResponse]( httpClient, - baseURL+HousekeepingServiceMachineProcedure, - connect.WithSchema(housekeepingServiceMethods.ByName("Machine")), + baseURL+HousekeepingServiceMachineLivelinessProcedure, + connect.WithSchema(housekeepingServiceMethods.ByName("MachineLiveliness")), + connect.WithClientOptions(opts...), + ), + machineVPNConnected: connect.NewClient[v2.HousekeepingServiceMachineVPNConnectedRequest, v2.HousekeepingServiceMachineVPNConnectedResponse]( + httpClient, + baseURL+HousekeepingServiceMachineVPNConnectedProcedure, + connect.WithSchema(housekeepingServiceMethods.ByName("MachineVPNConnected")), + connect.WithClientOptions(opts...), + ), + machineResurrect: connect.NewClient[v2.HousekeepingServiceMachineResurrectRequest, v2.HousekeepingServiceMachineResurrectResponse]( + httpClient, + baseURL+HousekeepingServiceMachineResurrectProcedure, + connect.WithSchema(housekeepingServiceMethods.ByName("MachineResurrect")), connect.WithClientOptions(opts...), ), } @@ -66,12 +88,32 @@ func NewHousekeepingServiceClient(httpClient connect.HTTPClient, baseURL string, // housekeepingServiceClient implements HousekeepingServiceClient. type housekeepingServiceClient struct { - machine *connect.Client[v2.HousekeepingServiceMachineRequest, v2.HousekeepingServiceMachineResponse] + machineLiveliness *connect.Client[v2.HousekeepingServiceMachineLivelinessRequest, v2.HousekeepingServiceMachineLivelinessResponse] + machineVPNConnected *connect.Client[v2.HousekeepingServiceMachineVPNConnectedRequest, v2.HousekeepingServiceMachineVPNConnectedResponse] + machineResurrect *connect.Client[v2.HousekeepingServiceMachineResurrectRequest, v2.HousekeepingServiceMachineResurrectResponse] +} + +// MachineLiveliness calls metalstack.admin.v2.HousekeepingService.MachineLiveliness. +func (c *housekeepingServiceClient) MachineLiveliness(ctx context.Context, req *v2.HousekeepingServiceMachineLivelinessRequest) (*v2.HousekeepingServiceMachineLivelinessResponse, error) { + response, err := c.machineLiveliness.CallUnary(ctx, connect.NewRequest(req)) + if response != nil { + return response.Msg, err + } + return nil, err +} + +// MachineVPNConnected calls metalstack.admin.v2.HousekeepingService.MachineVPNConnected. +func (c *housekeepingServiceClient) MachineVPNConnected(ctx context.Context, req *v2.HousekeepingServiceMachineVPNConnectedRequest) (*v2.HousekeepingServiceMachineVPNConnectedResponse, error) { + response, err := c.machineVPNConnected.CallUnary(ctx, connect.NewRequest(req)) + if response != nil { + return response.Msg, err + } + return nil, err } -// Machine calls metalstack.admin.v2.HousekeepingService.Machine. -func (c *housekeepingServiceClient) Machine(ctx context.Context, req *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) { - response, err := c.machine.CallUnary(ctx, connect.NewRequest(req)) +// MachineResurrect calls metalstack.admin.v2.HousekeepingService.MachineResurrect. +func (c *housekeepingServiceClient) MachineResurrect(ctx context.Context, req *v2.HousekeepingServiceMachineResurrectRequest) (*v2.HousekeepingServiceMachineResurrectResponse, error) { + response, err := c.machineResurrect.CallUnary(ctx, connect.NewRequest(req)) if response != nil { return response.Msg, err } @@ -81,8 +123,12 @@ func (c *housekeepingServiceClient) Machine(ctx context.Context, req *v2.Houseke // HousekeepingServiceHandler is an implementation of the metalstack.admin.v2.HousekeepingService // service. type HousekeepingServiceHandler interface { - // Machine housekeeping - Machine(context.Context, *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) + // Machine liveliness + MachineLiveliness(context.Context, *v2.HousekeepingServiceMachineLivelinessRequest) (*v2.HousekeepingServiceMachineLivelinessResponse, error) + // Machine vpn connected + MachineVPNConnected(context.Context, *v2.HousekeepingServiceMachineVPNConnectedRequest) (*v2.HousekeepingServiceMachineVPNConnectedResponse, error) + // Machine resurrect dead machines + MachineResurrect(context.Context, *v2.HousekeepingServiceMachineResurrectRequest) (*v2.HousekeepingServiceMachineResurrectResponse, error) } // NewHousekeepingServiceHandler builds an HTTP handler from the service implementation. It returns @@ -92,16 +138,32 @@ type HousekeepingServiceHandler interface { // and JSON codecs. They also support gzip compression. func NewHousekeepingServiceHandler(svc HousekeepingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { housekeepingServiceMethods := v2.File_metalstack_admin_v2_housekeeping_proto.Services().ByName("HousekeepingService").Methods() - housekeepingServiceMachineHandler := connect.NewUnaryHandlerSimple( - HousekeepingServiceMachineProcedure, - svc.Machine, - connect.WithSchema(housekeepingServiceMethods.ByName("Machine")), + housekeepingServiceMachineLivelinessHandler := connect.NewUnaryHandlerSimple( + HousekeepingServiceMachineLivelinessProcedure, + svc.MachineLiveliness, + connect.WithSchema(housekeepingServiceMethods.ByName("MachineLiveliness")), + connect.WithHandlerOptions(opts...), + ) + housekeepingServiceMachineVPNConnectedHandler := connect.NewUnaryHandlerSimple( + HousekeepingServiceMachineVPNConnectedProcedure, + svc.MachineVPNConnected, + connect.WithSchema(housekeepingServiceMethods.ByName("MachineVPNConnected")), + connect.WithHandlerOptions(opts...), + ) + housekeepingServiceMachineResurrectHandler := connect.NewUnaryHandlerSimple( + HousekeepingServiceMachineResurrectProcedure, + svc.MachineResurrect, + connect.WithSchema(housekeepingServiceMethods.ByName("MachineResurrect")), connect.WithHandlerOptions(opts...), ) return "/metalstack.admin.v2.HousekeepingService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { - case HousekeepingServiceMachineProcedure: - housekeepingServiceMachineHandler.ServeHTTP(w, r) + case HousekeepingServiceMachineLivelinessProcedure: + housekeepingServiceMachineLivelinessHandler.ServeHTTP(w, r) + case HousekeepingServiceMachineVPNConnectedProcedure: + housekeepingServiceMachineVPNConnectedHandler.ServeHTTP(w, r) + case HousekeepingServiceMachineResurrectProcedure: + housekeepingServiceMachineResurrectHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -111,6 +173,14 @@ func NewHousekeepingServiceHandler(svc HousekeepingServiceHandler, opts ...conne // UnimplementedHousekeepingServiceHandler returns CodeUnimplemented from all methods. type UnimplementedHousekeepingServiceHandler struct{} -func (UnimplementedHousekeepingServiceHandler) Machine(context.Context, *v2.HousekeepingServiceMachineRequest) (*v2.HousekeepingServiceMachineResponse, error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.HousekeepingService.Machine is not implemented")) +func (UnimplementedHousekeepingServiceHandler) MachineLiveliness(context.Context, *v2.HousekeepingServiceMachineLivelinessRequest) (*v2.HousekeepingServiceMachineLivelinessResponse, error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.HousekeepingService.MachineLiveliness is not implemented")) +} + +func (UnimplementedHousekeepingServiceHandler) MachineVPNConnected(context.Context, *v2.HousekeepingServiceMachineVPNConnectedRequest) (*v2.HousekeepingServiceMachineVPNConnectedResponse, error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.HousekeepingService.MachineVPNConnected is not implemented")) +} + +func (UnimplementedHousekeepingServiceHandler) MachineResurrect(context.Context, *v2.HousekeepingServiceMachineResurrectRequest) (*v2.HousekeepingServiceMachineResurrectResponse, error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("metalstack.admin.v2.HousekeepingService.MachineResurrect is not implemented")) } diff --git a/go/metalstack/admin/v2/housekeeping.pb.go b/go/metalstack/admin/v2/housekeeping.pb.go index bb1892da..23d7764d 100644 --- a/go/metalstack/admin/v2/housekeeping.pb.go +++ b/go/metalstack/admin/v2/housekeeping.pb.go @@ -8,7 +8,7 @@ package adminv2 import ( _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" - _ "github.com/metal-stack/api/go/metalstack/api/v2" + v2 "github.com/metal-stack/api/go/metalstack/api/v2" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -23,87 +23,115 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// HousekeepingAction defines which housekeeping action should be triggered. -type MachineHousekeepingAction int32 +// HousekeepingServiceMachineLivelinessRequest is the request payload for a machine liveliness housekeeping request. +type HousekeepingServiceMachineLivelinessRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} -const ( - // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED MachineHousekeepingAction = 0 - // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED MachineHousekeepingAction = 1 - // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_LIVELINESS MachineHousekeepingAction = 2 - // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_RESURRECT MachineHousekeepingAction = 3 -) +func (x *HousekeepingServiceMachineLivelinessRequest) Reset() { + *x = HousekeepingServiceMachineLivelinessRequest{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -// Enum value maps for MachineHousekeepingAction. -var ( - MachineHousekeepingAction_name = map[int32]string{ - 0: "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED", - 1: "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED", - 2: "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS", - 3: "MACHINE_HOUSEKEEPING_ACTION_RESURRECT", - } - MachineHousekeepingAction_value = map[string]int32{ - "MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED": 0, - "MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED": 1, - "MACHINE_HOUSEKEEPING_ACTION_LIVELINESS": 2, - "MACHINE_HOUSEKEEPING_ACTION_RESURRECT": 3, +func (x *HousekeepingServiceMachineLivelinessRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HousekeepingServiceMachineLivelinessRequest) ProtoMessage() {} + +func (x *HousekeepingServiceMachineLivelinessRequest) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } -) + return mi.MessageOf(x) +} -func (x MachineHousekeepingAction) Enum() *MachineHousekeepingAction { - p := new(MachineHousekeepingAction) - *p = x - return p +// Deprecated: Use HousekeepingServiceMachineLivelinessRequest.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineLivelinessRequest) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{0} +} + +// HousekeepingServiceMachineLivelinessResponse is the response payload for a machine liveliness housekeeping request. +type HousekeepingServiceMachineLivelinessResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Modified Machines modified during this housekeeping action. + ModifiedMachines []*MachineWithLiveliness `protobuf:"bytes,1,rep,name=modified_machines,json=modifiedMachines,proto3" json:"modified_machines,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x MachineHousekeepingAction) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +func (x *HousekeepingServiceMachineLivelinessResponse) Reset() { + *x = HousekeepingServiceMachineLivelinessResponse{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (MachineHousekeepingAction) Descriptor() protoreflect.EnumDescriptor { - return file_metalstack_admin_v2_housekeeping_proto_enumTypes[0].Descriptor() +func (x *HousekeepingServiceMachineLivelinessResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (MachineHousekeepingAction) Type() protoreflect.EnumType { - return &file_metalstack_admin_v2_housekeeping_proto_enumTypes[0] +func (*HousekeepingServiceMachineLivelinessResponse) ProtoMessage() {} + +func (x *HousekeepingServiceMachineLivelinessResponse) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (x MachineHousekeepingAction) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +// Deprecated: Use HousekeepingServiceMachineLivelinessResponse.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineLivelinessResponse) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{1} } -// Deprecated: Use MachineHousekeepingAction.Descriptor instead. -func (MachineHousekeepingAction) EnumDescriptor() ([]byte, []int) { - return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{0} +func (x *HousekeepingServiceMachineLivelinessResponse) GetModifiedMachines() []*MachineWithLiveliness { + if x != nil { + return x.ModifiedMachines + } + return nil } -// HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request. -type HousekeepingServiceMachineRequest struct { +// MachineWithLiveliness +type MachineWithLiveliness struct { state protoimpl.MessageState `protogen:"open.v1"` - // Housekeeping Action to perform. - Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` + // UUID of this machine. + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + // Liveliness of this machine. + Liveliness v2.MachineLiveliness `protobuf:"varint,2,opt,name=liveliness,proto3,enum=metalstack.api.v2.MachineLiveliness" json:"liveliness,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *HousekeepingServiceMachineRequest) Reset() { - *x = HousekeepingServiceMachineRequest{} - mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[0] +func (x *MachineWithLiveliness) Reset() { + *x = MachineWithLiveliness{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *HousekeepingServiceMachineRequest) String() string { +func (x *MachineWithLiveliness) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HousekeepingServiceMachineRequest) ProtoMessage() {} +func (*MachineWithLiveliness) ProtoMessage() {} -func (x *HousekeepingServiceMachineRequest) ProtoReflect() protoreflect.Message { - mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[0] +func (x *MachineWithLiveliness) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -114,44 +142,86 @@ func (x *HousekeepingServiceMachineRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use HousekeepingServiceMachineRequest.ProtoReflect.Descriptor instead. -func (*HousekeepingServiceMachineRequest) Descriptor() ([]byte, []int) { - return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{0} +// Deprecated: Use MachineWithLiveliness.ProtoReflect.Descriptor instead. +func (*MachineWithLiveliness) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{2} +} + +func (x *MachineWithLiveliness) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" } -func (x *HousekeepingServiceMachineRequest) GetAction() MachineHousekeepingAction { +func (x *MachineWithLiveliness) GetLiveliness() v2.MachineLiveliness { if x != nil { - return x.Action + return x.Liveliness } - return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED + return v2.MachineLiveliness(0) +} + +// HousekeepingServiceMachineVPNConnectedRequest is the request payload for a machine vpn connected housekeeping request. +type HousekeepingServiceMachineVPNConnectedRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HousekeepingServiceMachineVPNConnectedRequest) Reset() { + *x = HousekeepingServiceMachineVPNConnectedRequest{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HousekeepingServiceMachineVPNConnectedRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. -type HousekeepingServiceMachineResponse struct { +func (*HousekeepingServiceMachineVPNConnectedRequest) ProtoMessage() {} + +func (x *HousekeepingServiceMachineVPNConnectedRequest) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HousekeepingServiceMachineVPNConnectedRequest.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineVPNConnectedRequest) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{3} +} + +// HousekeepingServiceMachineVPNConnectedResponse is the response payload for a machine vpn connected housekeeping request. +type HousekeepingServiceMachineVPNConnectedResponse struct { state protoimpl.MessageState `protogen:"open.v1"` - // Housekeeping Action which was performed. - Action MachineHousekeepingAction `protobuf:"varint,1,opt,name=action,proto3,enum=metalstack.admin.v2.MachineHousekeepingAction" json:"action,omitempty"` - // Modified Machine IDs modified during this housekeeping action. - ModifiedMachineIds []string `protobuf:"bytes,2,rep,name=modified_machine_ids,json=modifiedMachineIds,proto3" json:"modified_machine_ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Nodes connected to the VPN. + ModifiedMachines []*v2.VPNNode `protobuf:"bytes,1,rep,name=modified_machines,json=modifiedMachines,proto3" json:"modified_machines,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *HousekeepingServiceMachineResponse) Reset() { - *x = HousekeepingServiceMachineResponse{} - mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[1] +func (x *HousekeepingServiceMachineVPNConnectedResponse) Reset() { + *x = HousekeepingServiceMachineVPNConnectedResponse{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *HousekeepingServiceMachineResponse) String() string { +func (x *HousekeepingServiceMachineVPNConnectedResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HousekeepingServiceMachineResponse) ProtoMessage() {} +func (*HousekeepingServiceMachineVPNConnectedResponse) ProtoMessage() {} -func (x *HousekeepingServiceMachineResponse) ProtoReflect() protoreflect.Message { - mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[1] +func (x *HousekeepingServiceMachineVPNConnectedResponse) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -162,21 +232,97 @@ func (x *HousekeepingServiceMachineResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use HousekeepingServiceMachineResponse.ProtoReflect.Descriptor instead. -func (*HousekeepingServiceMachineResponse) Descriptor() ([]byte, []int) { - return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{1} +// Deprecated: Use HousekeepingServiceMachineVPNConnectedResponse.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineVPNConnectedResponse) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{4} } -func (x *HousekeepingServiceMachineResponse) GetAction() MachineHousekeepingAction { +func (x *HousekeepingServiceMachineVPNConnectedResponse) GetModifiedMachines() []*v2.VPNNode { if x != nil { - return x.Action + return x.ModifiedMachines } - return MachineHousekeepingAction_MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED + return nil } -func (x *HousekeepingServiceMachineResponse) GetModifiedMachineIds() []string { +// HousekeepingServiceMachineResurrectRequest is the request payload for a machine resurrect housekeeping request. +type HousekeepingServiceMachineResurrectRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HousekeepingServiceMachineResurrectRequest) Reset() { + *x = HousekeepingServiceMachineResurrectRequest{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HousekeepingServiceMachineResurrectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HousekeepingServiceMachineResurrectRequest) ProtoMessage() {} + +func (x *HousekeepingServiceMachineResurrectRequest) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[5] if x != nil { - return x.ModifiedMachineIds + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HousekeepingServiceMachineResurrectRequest.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineResurrectRequest) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{5} +} + +// HousekeepingServiceMachineResurrectResponse is the response payload for a machine resurrect housekeeping request. +type HousekeepingServiceMachineResurrectResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Machines which have been resurrected + ModifiedMachines []*v2.Machine `protobuf:"bytes,1,rep,name=modified_machines,json=modifiedMachines,proto3" json:"modified_machines,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HousekeepingServiceMachineResurrectResponse) Reset() { + *x = HousekeepingServiceMachineResurrectResponse{} + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HousekeepingServiceMachineResurrectResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HousekeepingServiceMachineResurrectResponse) ProtoMessage() {} + +func (x *HousekeepingServiceMachineResurrectResponse) ProtoReflect() protoreflect.Message { + mi := &file_metalstack_admin_v2_housekeeping_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HousekeepingServiceMachineResurrectResponse.ProtoReflect.Descriptor instead. +func (*HousekeepingServiceMachineResurrectResponse) Descriptor() ([]byte, []int) { + return file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP(), []int{6} +} + +func (x *HousekeepingServiceMachineResurrectResponse) GetModifiedMachines() []*v2.Machine { + if x != nil { + return x.ModifiedMachines } return nil } @@ -185,20 +331,25 @@ var File_metalstack_admin_v2_housekeeping_proto protoreflect.FileDescriptor const file_metalstack_admin_v2_housekeeping_proto_rawDesc = "" + "\n" + - "&metalstack/admin/v2/housekeeping.proto\x12\x13metalstack.admin.v2\x1a\x1bbuf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\"u\n" + - "!HousekeepingServiceMachineRequest\x12P\n" + - "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionB\b\xbaH\x05\x82\x01\x02\x10\x01R\x06action\"\x9e\x01\n" + - "\"HousekeepingServiceMachineResponse\x12F\n" + - "\x06action\x18\x01 \x01(\x0e2..metalstack.admin.v2.MachineHousekeepingActionR\x06action\x120\n" + - "\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n" + - "\x19MachineHousekeepingAction\x12+\n" + - "'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n" + - ")MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n" + - "&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\n" + - "liveliness\x128\n" + - "%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x9d\x01\n" + - "\x13HousekeepingService\x12\x85\x01\n" + - "\aMachine\x126.metalstack.admin.v2.HousekeepingServiceMachineRequest\x1a7.metalstack.admin.v2.HousekeepingServiceMachineResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01B\xd5\x01\n" + + "&metalstack/admin/v2/housekeeping.proto\x12\x13metalstack.admin.v2\x1a\x1bbuf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/machine.proto\x1a\x1bmetalstack/api/v2/vpn.proto\"-\n" + + "+HousekeepingServiceMachineLivelinessRequest\"\x87\x01\n" + + ",HousekeepingServiceMachineLivelinessResponse\x12W\n" + + "\x11modified_machines\x18\x01 \x03(\v2*.metalstack.admin.v2.MachineWithLivelinessR\x10modifiedMachines\"\x85\x01\n" + + "\x15MachineWithLiveliness\x12\x1c\n" + + "\x04uuid\x18\x01 \x01(\tB\b\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12N\n" + + "\n" + + "liveliness\x18\x02 \x01(\x0e2$.metalstack.api.v2.MachineLivelinessB\b\xbaH\x05\x82\x01\x02\x10\x01R\n" + + "liveliness\"/\n" + + "-HousekeepingServiceMachineVPNConnectedRequest\"y\n" + + ".HousekeepingServiceMachineVPNConnectedResponse\x12G\n" + + "\x11modified_machines\x18\x01 \x03(\v2\x1a.metalstack.api.v2.VPNNodeR\x10modifiedMachines\",\n" + + "*HousekeepingServiceMachineResurrectRequest\"v\n" + + "+HousekeepingServiceMachineResurrectResponse\x12G\n" + + "\x11modified_machines\x18\x01 \x03(\v2\x1a.metalstack.api.v2.MachineR\x10modifiedMachines2\x8a\x04\n" + + "\x13HousekeepingService\x12\xa3\x01\n" + + "\x11MachineLiveliness\x12@.metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest\x1aA.metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\xa9\x01\n" + + "\x13MachineVPNConnected\x12B.metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest\x1aC.metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\xa0\x01\n" + + "\x10MachineResurrect\x12?.metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest\x1a@.metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01B\xd5\x01\n" + "\x17com.metalstack.admin.v2B\x11HousekeepingProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3" var ( @@ -213,23 +364,35 @@ func file_metalstack_admin_v2_housekeeping_proto_rawDescGZIP() []byte { return file_metalstack_admin_v2_housekeeping_proto_rawDescData } -var file_metalstack_admin_v2_housekeeping_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_metalstack_admin_v2_housekeeping_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_metalstack_admin_v2_housekeeping_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_metalstack_admin_v2_housekeeping_proto_goTypes = []any{ - (MachineHousekeepingAction)(0), // 0: metalstack.admin.v2.MachineHousekeepingAction - (*HousekeepingServiceMachineRequest)(nil), // 1: metalstack.admin.v2.HousekeepingServiceMachineRequest - (*HousekeepingServiceMachineResponse)(nil), // 2: metalstack.admin.v2.HousekeepingServiceMachineResponse + (*HousekeepingServiceMachineLivelinessRequest)(nil), // 0: metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest + (*HousekeepingServiceMachineLivelinessResponse)(nil), // 1: metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse + (*MachineWithLiveliness)(nil), // 2: metalstack.admin.v2.MachineWithLiveliness + (*HousekeepingServiceMachineVPNConnectedRequest)(nil), // 3: metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest + (*HousekeepingServiceMachineVPNConnectedResponse)(nil), // 4: metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse + (*HousekeepingServiceMachineResurrectRequest)(nil), // 5: metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest + (*HousekeepingServiceMachineResurrectResponse)(nil), // 6: metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse + (v2.MachineLiveliness)(0), // 7: metalstack.api.v2.MachineLiveliness + (*v2.VPNNode)(nil), // 8: metalstack.api.v2.VPNNode + (*v2.Machine)(nil), // 9: metalstack.api.v2.Machine } var file_metalstack_admin_v2_housekeeping_proto_depIdxs = []int32{ - 0, // 0: metalstack.admin.v2.HousekeepingServiceMachineRequest.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction - 0, // 1: metalstack.admin.v2.HousekeepingServiceMachineResponse.action:type_name -> metalstack.admin.v2.MachineHousekeepingAction - 1, // 2: metalstack.admin.v2.HousekeepingService.Machine:input_type -> metalstack.admin.v2.HousekeepingServiceMachineRequest - 2, // 3: metalstack.admin.v2.HousekeepingService.Machine:output_type -> metalstack.admin.v2.HousekeepingServiceMachineResponse - 3, // [3:4] is the sub-list for method output_type - 2, // [2:3] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name + 2, // 0: metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse.modified_machines:type_name -> metalstack.admin.v2.MachineWithLiveliness + 7, // 1: metalstack.admin.v2.MachineWithLiveliness.liveliness:type_name -> metalstack.api.v2.MachineLiveliness + 8, // 2: metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse.modified_machines:type_name -> metalstack.api.v2.VPNNode + 9, // 3: metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse.modified_machines:type_name -> metalstack.api.v2.Machine + 0, // 4: metalstack.admin.v2.HousekeepingService.MachineLiveliness:input_type -> metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest + 3, // 5: metalstack.admin.v2.HousekeepingService.MachineVPNConnected:input_type -> metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest + 5, // 6: metalstack.admin.v2.HousekeepingService.MachineResurrect:input_type -> metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest + 1, // 7: metalstack.admin.v2.HousekeepingService.MachineLiveliness:output_type -> metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse + 4, // 8: metalstack.admin.v2.HousekeepingService.MachineVPNConnected:output_type -> metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse + 6, // 9: metalstack.admin.v2.HousekeepingService.MachineResurrect:output_type -> metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse + 7, // [7:10] is the sub-list for method output_type + 4, // [4:7] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_metalstack_admin_v2_housekeeping_proto_init() } @@ -242,14 +405,13 @@ func file_metalstack_admin_v2_housekeeping_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_metalstack_admin_v2_housekeeping_proto_rawDesc), len(file_metalstack_admin_v2_housekeeping_proto_rawDesc)), - NumEnums: 1, - NumMessages: 2, + NumEnums: 0, + NumMessages: 7, NumExtensions: 0, NumServices: 1, }, GoTypes: file_metalstack_admin_v2_housekeeping_proto_goTypes, DependencyIndexes: file_metalstack_admin_v2_housekeeping_proto_depIdxs, - EnumInfos: file_metalstack_admin_v2_housekeeping_proto_enumTypes, MessageInfos: file_metalstack_admin_v2_housekeeping_proto_msgTypes, }.Build() File_metalstack_admin_v2_housekeeping_proto = out.File diff --git a/go/permissions/servicepermissions.go b/go/permissions/servicepermissions.go index a1af931a..005eb39b 100755 --- a/go/permissions/servicepermissions.go +++ b/go/permissions/servicepermissions.go @@ -58,71 +58,73 @@ func GetServicePermissions() *ServicePermissions { Roles: Roles{ Admin: Admin{ apiv2.AdminRole_ADMIN_ROLE_EDITOR: map[string]struct{}{ - "/metalstack.admin.v2.AuditService/Get": {}, - "/metalstack.admin.v2.AuditService/List": {}, - "/metalstack.admin.v2.ComponentService/Delete": {}, - "/metalstack.admin.v2.ComponentService/Get": {}, - "/metalstack.admin.v2.ComponentService/List": {}, - "/metalstack.admin.v2.FilesystemService/Create": {}, - "/metalstack.admin.v2.FilesystemService/Delete": {}, - "/metalstack.admin.v2.FilesystemService/Match": {}, - "/metalstack.admin.v2.FilesystemService/Update": {}, - "/metalstack.admin.v2.HousekeepingService/Machine": {}, - "/metalstack.admin.v2.IPService/List": {}, - "/metalstack.admin.v2.ImageService/Create": {}, - "/metalstack.admin.v2.ImageService/Delete": {}, - "/metalstack.admin.v2.ImageService/Update": {}, - "/metalstack.admin.v2.ImageService/Usage": {}, - "/metalstack.admin.v2.MachineService/BMCCommand": {}, - "/metalstack.admin.v2.MachineService/ConsolePassword": {}, - "/metalstack.admin.v2.MachineService/Delete": {}, - "/metalstack.admin.v2.MachineService/Get": {}, - "/metalstack.admin.v2.MachineService/GetBMC": {}, - "/metalstack.admin.v2.MachineService/Issues": {}, - "/metalstack.admin.v2.MachineService/List": {}, - "/metalstack.admin.v2.MachineService/ListBMC": {}, - "/metalstack.admin.v2.MachineService/SetState": {}, - "/metalstack.admin.v2.NetworkService/Create": {}, - "/metalstack.admin.v2.NetworkService/Delete": {}, - "/metalstack.admin.v2.NetworkService/Get": {}, - "/metalstack.admin.v2.NetworkService/List": {}, - "/metalstack.admin.v2.NetworkService/Update": {}, - "/metalstack.admin.v2.PartitionService/Capacity": {}, - "/metalstack.admin.v2.PartitionService/Create": {}, - "/metalstack.admin.v2.PartitionService/Delete": {}, - "/metalstack.admin.v2.PartitionService/Update": {}, - "/metalstack.admin.v2.ProjectService/Create": {}, - "/metalstack.admin.v2.ProjectService/List": {}, - "/metalstack.admin.v2.SizeImageConstraintService/Create": {}, - "/metalstack.admin.v2.SizeImageConstraintService/Delete": {}, - "/metalstack.admin.v2.SizeImageConstraintService/Get": {}, - "/metalstack.admin.v2.SizeImageConstraintService/List": {}, - "/metalstack.admin.v2.SizeImageConstraintService/Update": {}, - "/metalstack.admin.v2.SizeReservationService/Create": {}, - "/metalstack.admin.v2.SizeReservationService/Delete": {}, - "/metalstack.admin.v2.SizeReservationService/List": {}, - "/metalstack.admin.v2.SizeReservationService/Update": {}, - "/metalstack.admin.v2.SizeService/Create": {}, - "/metalstack.admin.v2.SizeService/Delete": {}, - "/metalstack.admin.v2.SizeService/Update": {}, - "/metalstack.admin.v2.SwitchService/ConnectedMachines": {}, - "/metalstack.admin.v2.SwitchService/Delete": {}, - "/metalstack.admin.v2.SwitchService/Get": {}, - "/metalstack.admin.v2.SwitchService/List": {}, - "/metalstack.admin.v2.SwitchService/Migrate": {}, - "/metalstack.admin.v2.SwitchService/Port": {}, - "/metalstack.admin.v2.SwitchService/Update": {}, - "/metalstack.admin.v2.TaskService/Delete": {}, - "/metalstack.admin.v2.TaskService/Get": {}, - "/metalstack.admin.v2.TaskService/List": {}, - "/metalstack.admin.v2.TaskService/Queues": {}, - "/metalstack.admin.v2.TenantService/Create": {}, - "/metalstack.admin.v2.TenantService/List": {}, - "/metalstack.admin.v2.TokenService/Create": {}, - "/metalstack.admin.v2.TokenService/List": {}, - "/metalstack.admin.v2.TokenService/Revoke": {}, - "/metalstack.admin.v2.VPNService/AuthKey": {}, - "/metalstack.admin.v2.VPNService/ListNodes": {}, + "/metalstack.admin.v2.AuditService/Get": {}, + "/metalstack.admin.v2.AuditService/List": {}, + "/metalstack.admin.v2.ComponentService/Delete": {}, + "/metalstack.admin.v2.ComponentService/Get": {}, + "/metalstack.admin.v2.ComponentService/List": {}, + "/metalstack.admin.v2.FilesystemService/Create": {}, + "/metalstack.admin.v2.FilesystemService/Delete": {}, + "/metalstack.admin.v2.FilesystemService/Match": {}, + "/metalstack.admin.v2.FilesystemService/Update": {}, + "/metalstack.admin.v2.HousekeepingService/MachineLiveliness": {}, + "/metalstack.admin.v2.HousekeepingService/MachineResurrect": {}, + "/metalstack.admin.v2.HousekeepingService/MachineVPNConnected": {}, + "/metalstack.admin.v2.IPService/List": {}, + "/metalstack.admin.v2.ImageService/Create": {}, + "/metalstack.admin.v2.ImageService/Delete": {}, + "/metalstack.admin.v2.ImageService/Update": {}, + "/metalstack.admin.v2.ImageService/Usage": {}, + "/metalstack.admin.v2.MachineService/BMCCommand": {}, + "/metalstack.admin.v2.MachineService/ConsolePassword": {}, + "/metalstack.admin.v2.MachineService/Delete": {}, + "/metalstack.admin.v2.MachineService/Get": {}, + "/metalstack.admin.v2.MachineService/GetBMC": {}, + "/metalstack.admin.v2.MachineService/Issues": {}, + "/metalstack.admin.v2.MachineService/List": {}, + "/metalstack.admin.v2.MachineService/ListBMC": {}, + "/metalstack.admin.v2.MachineService/SetState": {}, + "/metalstack.admin.v2.NetworkService/Create": {}, + "/metalstack.admin.v2.NetworkService/Delete": {}, + "/metalstack.admin.v2.NetworkService/Get": {}, + "/metalstack.admin.v2.NetworkService/List": {}, + "/metalstack.admin.v2.NetworkService/Update": {}, + "/metalstack.admin.v2.PartitionService/Capacity": {}, + "/metalstack.admin.v2.PartitionService/Create": {}, + "/metalstack.admin.v2.PartitionService/Delete": {}, + "/metalstack.admin.v2.PartitionService/Update": {}, + "/metalstack.admin.v2.ProjectService/Create": {}, + "/metalstack.admin.v2.ProjectService/List": {}, + "/metalstack.admin.v2.SizeImageConstraintService/Create": {}, + "/metalstack.admin.v2.SizeImageConstraintService/Delete": {}, + "/metalstack.admin.v2.SizeImageConstraintService/Get": {}, + "/metalstack.admin.v2.SizeImageConstraintService/List": {}, + "/metalstack.admin.v2.SizeImageConstraintService/Update": {}, + "/metalstack.admin.v2.SizeReservationService/Create": {}, + "/metalstack.admin.v2.SizeReservationService/Delete": {}, + "/metalstack.admin.v2.SizeReservationService/List": {}, + "/metalstack.admin.v2.SizeReservationService/Update": {}, + "/metalstack.admin.v2.SizeService/Create": {}, + "/metalstack.admin.v2.SizeService/Delete": {}, + "/metalstack.admin.v2.SizeService/Update": {}, + "/metalstack.admin.v2.SwitchService/ConnectedMachines": {}, + "/metalstack.admin.v2.SwitchService/Delete": {}, + "/metalstack.admin.v2.SwitchService/Get": {}, + "/metalstack.admin.v2.SwitchService/List": {}, + "/metalstack.admin.v2.SwitchService/Migrate": {}, + "/metalstack.admin.v2.SwitchService/Port": {}, + "/metalstack.admin.v2.SwitchService/Update": {}, + "/metalstack.admin.v2.TaskService/Delete": {}, + "/metalstack.admin.v2.TaskService/Get": {}, + "/metalstack.admin.v2.TaskService/List": {}, + "/metalstack.admin.v2.TaskService/Queues": {}, + "/metalstack.admin.v2.TenantService/Create": {}, + "/metalstack.admin.v2.TenantService/List": {}, + "/metalstack.admin.v2.TokenService/Create": {}, + "/metalstack.admin.v2.TokenService/List": {}, + "/metalstack.admin.v2.TokenService/Revoke": {}, + "/metalstack.admin.v2.VPNService/AuthKey": {}, + "/metalstack.admin.v2.VPNService/ListNodes": {}, }, apiv2.AdminRole_ADMIN_ROLE_VIEWER: map[string]struct{}{ "/metalstack.admin.v2.AuditService/Get": {}, @@ -307,7 +309,9 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.admin.v2.FilesystemService/Delete": {}, "/metalstack.admin.v2.FilesystemService/Match": {}, "/metalstack.admin.v2.FilesystemService/Update": {}, - "/metalstack.admin.v2.HousekeepingService/Machine": {}, + "/metalstack.admin.v2.HousekeepingService/MachineLiveliness": {}, + "/metalstack.admin.v2.HousekeepingService/MachineResurrect": {}, + "/metalstack.admin.v2.HousekeepingService/MachineVPNConnected": {}, "/metalstack.admin.v2.IPService/List": {}, "/metalstack.admin.v2.ImageService/Create": {}, "/metalstack.admin.v2.ImageService/Delete": {}, @@ -493,71 +497,73 @@ func GetServicePermissions() *ServicePermissions { "/metalstack.api.v2.UserService/Get": true, }, Admin: map[string]bool{ - "/metalstack.admin.v2.AuditService/Get": true, - "/metalstack.admin.v2.AuditService/List": true, - "/metalstack.admin.v2.ComponentService/Delete": true, - "/metalstack.admin.v2.ComponentService/Get": true, - "/metalstack.admin.v2.ComponentService/List": true, - "/metalstack.admin.v2.FilesystemService/Create": true, - "/metalstack.admin.v2.FilesystemService/Delete": true, - "/metalstack.admin.v2.FilesystemService/Match": true, - "/metalstack.admin.v2.FilesystemService/Update": true, - "/metalstack.admin.v2.HousekeepingService/Machine": true, - "/metalstack.admin.v2.IPService/List": true, - "/metalstack.admin.v2.ImageService/Create": true, - "/metalstack.admin.v2.ImageService/Delete": true, - "/metalstack.admin.v2.ImageService/Update": true, - "/metalstack.admin.v2.ImageService/Usage": true, - "/metalstack.admin.v2.MachineService/BMCCommand": true, - "/metalstack.admin.v2.MachineService/ConsolePassword": true, - "/metalstack.admin.v2.MachineService/Delete": true, - "/metalstack.admin.v2.MachineService/Get": true, - "/metalstack.admin.v2.MachineService/GetBMC": true, - "/metalstack.admin.v2.MachineService/Issues": true, - "/metalstack.admin.v2.MachineService/List": true, - "/metalstack.admin.v2.MachineService/ListBMC": true, - "/metalstack.admin.v2.MachineService/SetState": true, - "/metalstack.admin.v2.NetworkService/Create": true, - "/metalstack.admin.v2.NetworkService/Delete": true, - "/metalstack.admin.v2.NetworkService/Get": true, - "/metalstack.admin.v2.NetworkService/List": true, - "/metalstack.admin.v2.NetworkService/Update": true, - "/metalstack.admin.v2.PartitionService/Capacity": true, - "/metalstack.admin.v2.PartitionService/Create": true, - "/metalstack.admin.v2.PartitionService/Delete": true, - "/metalstack.admin.v2.PartitionService/Update": true, - "/metalstack.admin.v2.ProjectService/Create": true, - "/metalstack.admin.v2.ProjectService/List": true, - "/metalstack.admin.v2.SizeImageConstraintService/Create": true, - "/metalstack.admin.v2.SizeImageConstraintService/Delete": true, - "/metalstack.admin.v2.SizeImageConstraintService/Get": true, - "/metalstack.admin.v2.SizeImageConstraintService/List": true, - "/metalstack.admin.v2.SizeImageConstraintService/Update": true, - "/metalstack.admin.v2.SizeReservationService/Create": true, - "/metalstack.admin.v2.SizeReservationService/Delete": true, - "/metalstack.admin.v2.SizeReservationService/List": true, - "/metalstack.admin.v2.SizeReservationService/Update": true, - "/metalstack.admin.v2.SizeService/Create": true, - "/metalstack.admin.v2.SizeService/Delete": true, - "/metalstack.admin.v2.SizeService/Update": true, - "/metalstack.admin.v2.SwitchService/ConnectedMachines": true, - "/metalstack.admin.v2.SwitchService/Delete": true, - "/metalstack.admin.v2.SwitchService/Get": true, - "/metalstack.admin.v2.SwitchService/List": true, - "/metalstack.admin.v2.SwitchService/Migrate": true, - "/metalstack.admin.v2.SwitchService/Port": true, - "/metalstack.admin.v2.SwitchService/Update": true, - "/metalstack.admin.v2.TaskService/Delete": true, - "/metalstack.admin.v2.TaskService/Get": true, - "/metalstack.admin.v2.TaskService/List": true, - "/metalstack.admin.v2.TaskService/Queues": true, - "/metalstack.admin.v2.TenantService/Create": true, - "/metalstack.admin.v2.TenantService/List": true, - "/metalstack.admin.v2.TokenService/Create": true, - "/metalstack.admin.v2.TokenService/List": true, - "/metalstack.admin.v2.TokenService/Revoke": true, - "/metalstack.admin.v2.VPNService/AuthKey": true, - "/metalstack.admin.v2.VPNService/ListNodes": true, + "/metalstack.admin.v2.AuditService/Get": true, + "/metalstack.admin.v2.AuditService/List": true, + "/metalstack.admin.v2.ComponentService/Delete": true, + "/metalstack.admin.v2.ComponentService/Get": true, + "/metalstack.admin.v2.ComponentService/List": true, + "/metalstack.admin.v2.FilesystemService/Create": true, + "/metalstack.admin.v2.FilesystemService/Delete": true, + "/metalstack.admin.v2.FilesystemService/Match": true, + "/metalstack.admin.v2.FilesystemService/Update": true, + "/metalstack.admin.v2.HousekeepingService/MachineLiveliness": true, + "/metalstack.admin.v2.HousekeepingService/MachineResurrect": true, + "/metalstack.admin.v2.HousekeepingService/MachineVPNConnected": true, + "/metalstack.admin.v2.IPService/List": true, + "/metalstack.admin.v2.ImageService/Create": true, + "/metalstack.admin.v2.ImageService/Delete": true, + "/metalstack.admin.v2.ImageService/Update": true, + "/metalstack.admin.v2.ImageService/Usage": true, + "/metalstack.admin.v2.MachineService/BMCCommand": true, + "/metalstack.admin.v2.MachineService/ConsolePassword": true, + "/metalstack.admin.v2.MachineService/Delete": true, + "/metalstack.admin.v2.MachineService/Get": true, + "/metalstack.admin.v2.MachineService/GetBMC": true, + "/metalstack.admin.v2.MachineService/Issues": true, + "/metalstack.admin.v2.MachineService/List": true, + "/metalstack.admin.v2.MachineService/ListBMC": true, + "/metalstack.admin.v2.MachineService/SetState": true, + "/metalstack.admin.v2.NetworkService/Create": true, + "/metalstack.admin.v2.NetworkService/Delete": true, + "/metalstack.admin.v2.NetworkService/Get": true, + "/metalstack.admin.v2.NetworkService/List": true, + "/metalstack.admin.v2.NetworkService/Update": true, + "/metalstack.admin.v2.PartitionService/Capacity": true, + "/metalstack.admin.v2.PartitionService/Create": true, + "/metalstack.admin.v2.PartitionService/Delete": true, + "/metalstack.admin.v2.PartitionService/Update": true, + "/metalstack.admin.v2.ProjectService/Create": true, + "/metalstack.admin.v2.ProjectService/List": true, + "/metalstack.admin.v2.SizeImageConstraintService/Create": true, + "/metalstack.admin.v2.SizeImageConstraintService/Delete": true, + "/metalstack.admin.v2.SizeImageConstraintService/Get": true, + "/metalstack.admin.v2.SizeImageConstraintService/List": true, + "/metalstack.admin.v2.SizeImageConstraintService/Update": true, + "/metalstack.admin.v2.SizeReservationService/Create": true, + "/metalstack.admin.v2.SizeReservationService/Delete": true, + "/metalstack.admin.v2.SizeReservationService/List": true, + "/metalstack.admin.v2.SizeReservationService/Update": true, + "/metalstack.admin.v2.SizeService/Create": true, + "/metalstack.admin.v2.SizeService/Delete": true, + "/metalstack.admin.v2.SizeService/Update": true, + "/metalstack.admin.v2.SwitchService/ConnectedMachines": true, + "/metalstack.admin.v2.SwitchService/Delete": true, + "/metalstack.admin.v2.SwitchService/Get": true, + "/metalstack.admin.v2.SwitchService/List": true, + "/metalstack.admin.v2.SwitchService/Migrate": true, + "/metalstack.admin.v2.SwitchService/Port": true, + "/metalstack.admin.v2.SwitchService/Update": true, + "/metalstack.admin.v2.TaskService/Delete": true, + "/metalstack.admin.v2.TaskService/Get": true, + "/metalstack.admin.v2.TaskService/List": true, + "/metalstack.admin.v2.TaskService/Queues": true, + "/metalstack.admin.v2.TenantService/Create": true, + "/metalstack.admin.v2.TenantService/List": true, + "/metalstack.admin.v2.TokenService/Create": true, + "/metalstack.admin.v2.TokenService/List": true, + "/metalstack.admin.v2.TokenService/Revoke": true, + "/metalstack.admin.v2.VPNService/AuthKey": true, + "/metalstack.admin.v2.VPNService/ListNodes": true, }, Infra: map[string]bool{ "/metalstack.infra.v2.BMCService/BMCCommandDone": true, @@ -630,162 +636,164 @@ func GetServicePermissions() *ServicePermissions { }, }, Auditable: map[string]bool{ - "/metalstack.admin.v2.AuditService/Get": true, - "/metalstack.admin.v2.AuditService/List": true, - "/metalstack.admin.v2.ComponentService/Delete": true, - "/metalstack.admin.v2.ComponentService/Get": false, - "/metalstack.admin.v2.ComponentService/List": false, - "/metalstack.admin.v2.FilesystemService/Create": true, - "/metalstack.admin.v2.FilesystemService/Delete": true, - "/metalstack.admin.v2.FilesystemService/Match": false, - "/metalstack.admin.v2.FilesystemService/Update": true, - "/metalstack.admin.v2.HousekeepingService/Machine": true, - "/metalstack.admin.v2.IPService/List": false, - "/metalstack.admin.v2.ImageService/Create": true, - "/metalstack.admin.v2.ImageService/Delete": true, - "/metalstack.admin.v2.ImageService/Update": true, - "/metalstack.admin.v2.ImageService/Usage": true, - "/metalstack.admin.v2.MachineService/BMCCommand": true, - "/metalstack.admin.v2.MachineService/ConsolePassword": true, - "/metalstack.admin.v2.MachineService/Delete": true, - "/metalstack.admin.v2.MachineService/Get": false, - "/metalstack.admin.v2.MachineService/GetBMC": true, - "/metalstack.admin.v2.MachineService/Issues": false, - "/metalstack.admin.v2.MachineService/List": false, - "/metalstack.admin.v2.MachineService/ListBMC": true, - "/metalstack.admin.v2.MachineService/SetState": true, - "/metalstack.admin.v2.NetworkService/Create": true, - "/metalstack.admin.v2.NetworkService/Delete": true, - "/metalstack.admin.v2.NetworkService/Get": false, - "/metalstack.admin.v2.NetworkService/List": false, - "/metalstack.admin.v2.NetworkService/Update": true, - "/metalstack.admin.v2.PartitionService/Capacity": false, - "/metalstack.admin.v2.PartitionService/Create": true, - "/metalstack.admin.v2.PartitionService/Delete": true, - "/metalstack.admin.v2.PartitionService/Update": true, - "/metalstack.admin.v2.ProjectService/Create": true, - "/metalstack.admin.v2.ProjectService/List": false, - "/metalstack.admin.v2.SizeImageConstraintService/Create": true, - "/metalstack.admin.v2.SizeImageConstraintService/Delete": true, - "/metalstack.admin.v2.SizeImageConstraintService/Get": false, - "/metalstack.admin.v2.SizeImageConstraintService/List": false, - "/metalstack.admin.v2.SizeImageConstraintService/Update": true, - "/metalstack.admin.v2.SizeReservationService/Create": true, - "/metalstack.admin.v2.SizeReservationService/Delete": true, - "/metalstack.admin.v2.SizeReservationService/List": false, - "/metalstack.admin.v2.SizeReservationService/Update": true, - "/metalstack.admin.v2.SizeService/Create": true, - "/metalstack.admin.v2.SizeService/Delete": true, - "/metalstack.admin.v2.SizeService/Update": true, - "/metalstack.admin.v2.SwitchService/ConnectedMachines": false, - "/metalstack.admin.v2.SwitchService/Delete": true, - "/metalstack.admin.v2.SwitchService/Get": false, - "/metalstack.admin.v2.SwitchService/List": false, - "/metalstack.admin.v2.SwitchService/Migrate": true, - "/metalstack.admin.v2.SwitchService/Port": true, - "/metalstack.admin.v2.SwitchService/Update": true, - "/metalstack.admin.v2.TaskService/Delete": true, - "/metalstack.admin.v2.TaskService/Get": true, - "/metalstack.admin.v2.TaskService/List": true, - "/metalstack.admin.v2.TaskService/Queues": true, - "/metalstack.admin.v2.TenantService/Create": true, - "/metalstack.admin.v2.TenantService/List": true, - "/metalstack.admin.v2.TokenService/Create": true, - "/metalstack.admin.v2.TokenService/List": true, - "/metalstack.admin.v2.TokenService/Revoke": true, - "/metalstack.admin.v2.VPNService/AuthKey": true, - "/metalstack.admin.v2.VPNService/ListNodes": true, - "/metalstack.api.v2.AuditService/Get": false, - "/metalstack.api.v2.AuditService/List": false, - "/metalstack.api.v2.FilesystemService/Get": false, - "/metalstack.api.v2.FilesystemService/List": false, - "/metalstack.api.v2.HealthService/Get": false, - "/metalstack.api.v2.IPService/Create": true, - "/metalstack.api.v2.IPService/Delete": true, - "/metalstack.api.v2.IPService/Get": false, - "/metalstack.api.v2.IPService/List": false, - "/metalstack.api.v2.IPService/Update": true, - "/metalstack.api.v2.ImageService/Get": false, - "/metalstack.api.v2.ImageService/Latest": false, - "/metalstack.api.v2.ImageService/List": false, - "/metalstack.api.v2.MachineService/BMCCommand": true, - "/metalstack.api.v2.MachineService/Create": true, - "/metalstack.api.v2.MachineService/Delete": true, - "/metalstack.api.v2.MachineService/Get": false, - "/metalstack.api.v2.MachineService/GetBMC": true, - "/metalstack.api.v2.MachineService/List": false, - "/metalstack.api.v2.MachineService/Update": true, - "/metalstack.api.v2.MethodService/List": true, - "/metalstack.api.v2.MethodService/TokenScopedList": true, - "/metalstack.api.v2.NetworkService/Create": true, - "/metalstack.api.v2.NetworkService/Delete": true, - "/metalstack.api.v2.NetworkService/Get": false, - "/metalstack.api.v2.NetworkService/List": false, - "/metalstack.api.v2.NetworkService/ListBaseNetworks": false, - "/metalstack.api.v2.NetworkService/Update": true, - "/metalstack.api.v2.PartitionService/Get": false, - "/metalstack.api.v2.PartitionService/List": false, - "/metalstack.api.v2.ProjectMemberService/Create": true, - "/metalstack.api.v2.ProjectMemberService/Delete": true, - "/metalstack.api.v2.ProjectMemberService/Get": false, - "/metalstack.api.v2.ProjectMemberService/Leave": true, - "/metalstack.api.v2.ProjectMemberService/List": false, - "/metalstack.api.v2.ProjectMemberService/Update": true, - "/metalstack.api.v2.ProjectService/Create": true, - "/metalstack.api.v2.ProjectService/Delete": true, - "/metalstack.api.v2.ProjectService/Get": false, - "/metalstack.api.v2.ProjectService/Invite": true, - "/metalstack.api.v2.ProjectService/InviteAccept": true, - "/metalstack.api.v2.ProjectService/InviteDelete": true, - "/metalstack.api.v2.ProjectService/InviteGet": false, - "/metalstack.api.v2.ProjectService/InvitesList": false, - "/metalstack.api.v2.ProjectService/List": false, - "/metalstack.api.v2.ProjectService/Update": true, - "/metalstack.api.v2.SizeImageConstraintService/Try": false, - "/metalstack.api.v2.SizeReservationService/Get": false, - "/metalstack.api.v2.SizeReservationService/List": false, - "/metalstack.api.v2.SizeService/Get": false, - "/metalstack.api.v2.SizeService/List": false, - "/metalstack.api.v2.TenantMemberService/Create": true, - "/metalstack.api.v2.TenantMemberService/Delete": true, - "/metalstack.api.v2.TenantMemberService/Get": false, - "/metalstack.api.v2.TenantMemberService/Leave": true, - "/metalstack.api.v2.TenantMemberService/List": false, - "/metalstack.api.v2.TenantMemberService/Update": true, - "/metalstack.api.v2.TenantService/Create": true, - "/metalstack.api.v2.TenantService/Delete": true, - "/metalstack.api.v2.TenantService/Get": false, - "/metalstack.api.v2.TenantService/Invite": true, - "/metalstack.api.v2.TenantService/InviteAccept": true, - "/metalstack.api.v2.TenantService/InviteDelete": true, - "/metalstack.api.v2.TenantService/InviteGet": false, - "/metalstack.api.v2.TenantService/InvitesList": false, - "/metalstack.api.v2.TenantService/List": false, - "/metalstack.api.v2.TenantService/Update": true, - "/metalstack.api.v2.TokenService/Create": true, - "/metalstack.api.v2.TokenService/Get": true, - "/metalstack.api.v2.TokenService/List": true, - "/metalstack.api.v2.TokenService/Refresh": true, - "/metalstack.api.v2.TokenService/Revoke": true, - "/metalstack.api.v2.TokenService/Update": true, - "/metalstack.api.v2.UserService/Get": true, - "/metalstack.api.v2.VersionService/Get": false, - "/metalstack.infra.v2.BMCService/BMCCommandDone": true, - "/metalstack.infra.v2.BMCService/UpdateBMCInfo": true, - "/metalstack.infra.v2.BMCService/WaitForBMCCommand": true, - "/metalstack.infra.v2.BootService/Boot": true, - "/metalstack.infra.v2.BootService/Dhcp": true, - "/metalstack.infra.v2.BootService/InstallationSucceeded": true, - "/metalstack.infra.v2.BootService/MachineToken": true, - "/metalstack.infra.v2.BootService/Register": true, - "/metalstack.infra.v2.BootService/SendEvent": true, - "/metalstack.infra.v2.BootService/SuperUserPassword": true, - "/metalstack.infra.v2.BootService/Wait": true, - "/metalstack.infra.v2.ComponentService/Ping": false, - "/metalstack.infra.v2.EventService/Send": false, - "/metalstack.infra.v2.SwitchService/Get": false, - "/metalstack.infra.v2.SwitchService/Heartbeat": false, - "/metalstack.infra.v2.SwitchService/Register": true, + "/metalstack.admin.v2.AuditService/Get": true, + "/metalstack.admin.v2.AuditService/List": true, + "/metalstack.admin.v2.ComponentService/Delete": true, + "/metalstack.admin.v2.ComponentService/Get": false, + "/metalstack.admin.v2.ComponentService/List": false, + "/metalstack.admin.v2.FilesystemService/Create": true, + "/metalstack.admin.v2.FilesystemService/Delete": true, + "/metalstack.admin.v2.FilesystemService/Match": false, + "/metalstack.admin.v2.FilesystemService/Update": true, + "/metalstack.admin.v2.HousekeepingService/MachineLiveliness": true, + "/metalstack.admin.v2.HousekeepingService/MachineResurrect": true, + "/metalstack.admin.v2.HousekeepingService/MachineVPNConnected": true, + "/metalstack.admin.v2.IPService/List": false, + "/metalstack.admin.v2.ImageService/Create": true, + "/metalstack.admin.v2.ImageService/Delete": true, + "/metalstack.admin.v2.ImageService/Update": true, + "/metalstack.admin.v2.ImageService/Usage": true, + "/metalstack.admin.v2.MachineService/BMCCommand": true, + "/metalstack.admin.v2.MachineService/ConsolePassword": true, + "/metalstack.admin.v2.MachineService/Delete": true, + "/metalstack.admin.v2.MachineService/Get": false, + "/metalstack.admin.v2.MachineService/GetBMC": true, + "/metalstack.admin.v2.MachineService/Issues": false, + "/metalstack.admin.v2.MachineService/List": false, + "/metalstack.admin.v2.MachineService/ListBMC": true, + "/metalstack.admin.v2.MachineService/SetState": true, + "/metalstack.admin.v2.NetworkService/Create": true, + "/metalstack.admin.v2.NetworkService/Delete": true, + "/metalstack.admin.v2.NetworkService/Get": false, + "/metalstack.admin.v2.NetworkService/List": false, + "/metalstack.admin.v2.NetworkService/Update": true, + "/metalstack.admin.v2.PartitionService/Capacity": false, + "/metalstack.admin.v2.PartitionService/Create": true, + "/metalstack.admin.v2.PartitionService/Delete": true, + "/metalstack.admin.v2.PartitionService/Update": true, + "/metalstack.admin.v2.ProjectService/Create": true, + "/metalstack.admin.v2.ProjectService/List": false, + "/metalstack.admin.v2.SizeImageConstraintService/Create": true, + "/metalstack.admin.v2.SizeImageConstraintService/Delete": true, + "/metalstack.admin.v2.SizeImageConstraintService/Get": false, + "/metalstack.admin.v2.SizeImageConstraintService/List": false, + "/metalstack.admin.v2.SizeImageConstraintService/Update": true, + "/metalstack.admin.v2.SizeReservationService/Create": true, + "/metalstack.admin.v2.SizeReservationService/Delete": true, + "/metalstack.admin.v2.SizeReservationService/List": false, + "/metalstack.admin.v2.SizeReservationService/Update": true, + "/metalstack.admin.v2.SizeService/Create": true, + "/metalstack.admin.v2.SizeService/Delete": true, + "/metalstack.admin.v2.SizeService/Update": true, + "/metalstack.admin.v2.SwitchService/ConnectedMachines": false, + "/metalstack.admin.v2.SwitchService/Delete": true, + "/metalstack.admin.v2.SwitchService/Get": false, + "/metalstack.admin.v2.SwitchService/List": false, + "/metalstack.admin.v2.SwitchService/Migrate": true, + "/metalstack.admin.v2.SwitchService/Port": true, + "/metalstack.admin.v2.SwitchService/Update": true, + "/metalstack.admin.v2.TaskService/Delete": true, + "/metalstack.admin.v2.TaskService/Get": true, + "/metalstack.admin.v2.TaskService/List": true, + "/metalstack.admin.v2.TaskService/Queues": true, + "/metalstack.admin.v2.TenantService/Create": true, + "/metalstack.admin.v2.TenantService/List": true, + "/metalstack.admin.v2.TokenService/Create": true, + "/metalstack.admin.v2.TokenService/List": true, + "/metalstack.admin.v2.TokenService/Revoke": true, + "/metalstack.admin.v2.VPNService/AuthKey": true, + "/metalstack.admin.v2.VPNService/ListNodes": true, + "/metalstack.api.v2.AuditService/Get": false, + "/metalstack.api.v2.AuditService/List": false, + "/metalstack.api.v2.FilesystemService/Get": false, + "/metalstack.api.v2.FilesystemService/List": false, + "/metalstack.api.v2.HealthService/Get": false, + "/metalstack.api.v2.IPService/Create": true, + "/metalstack.api.v2.IPService/Delete": true, + "/metalstack.api.v2.IPService/Get": false, + "/metalstack.api.v2.IPService/List": false, + "/metalstack.api.v2.IPService/Update": true, + "/metalstack.api.v2.ImageService/Get": false, + "/metalstack.api.v2.ImageService/Latest": false, + "/metalstack.api.v2.ImageService/List": false, + "/metalstack.api.v2.MachineService/BMCCommand": true, + "/metalstack.api.v2.MachineService/Create": true, + "/metalstack.api.v2.MachineService/Delete": true, + "/metalstack.api.v2.MachineService/Get": false, + "/metalstack.api.v2.MachineService/GetBMC": true, + "/metalstack.api.v2.MachineService/List": false, + "/metalstack.api.v2.MachineService/Update": true, + "/metalstack.api.v2.MethodService/List": true, + "/metalstack.api.v2.MethodService/TokenScopedList": true, + "/metalstack.api.v2.NetworkService/Create": true, + "/metalstack.api.v2.NetworkService/Delete": true, + "/metalstack.api.v2.NetworkService/Get": false, + "/metalstack.api.v2.NetworkService/List": false, + "/metalstack.api.v2.NetworkService/ListBaseNetworks": false, + "/metalstack.api.v2.NetworkService/Update": true, + "/metalstack.api.v2.PartitionService/Get": false, + "/metalstack.api.v2.PartitionService/List": false, + "/metalstack.api.v2.ProjectMemberService/Create": true, + "/metalstack.api.v2.ProjectMemberService/Delete": true, + "/metalstack.api.v2.ProjectMemberService/Get": false, + "/metalstack.api.v2.ProjectMemberService/Leave": true, + "/metalstack.api.v2.ProjectMemberService/List": false, + "/metalstack.api.v2.ProjectMemberService/Update": true, + "/metalstack.api.v2.ProjectService/Create": true, + "/metalstack.api.v2.ProjectService/Delete": true, + "/metalstack.api.v2.ProjectService/Get": false, + "/metalstack.api.v2.ProjectService/Invite": true, + "/metalstack.api.v2.ProjectService/InviteAccept": true, + "/metalstack.api.v2.ProjectService/InviteDelete": true, + "/metalstack.api.v2.ProjectService/InviteGet": false, + "/metalstack.api.v2.ProjectService/InvitesList": false, + "/metalstack.api.v2.ProjectService/List": false, + "/metalstack.api.v2.ProjectService/Update": true, + "/metalstack.api.v2.SizeImageConstraintService/Try": false, + "/metalstack.api.v2.SizeReservationService/Get": false, + "/metalstack.api.v2.SizeReservationService/List": false, + "/metalstack.api.v2.SizeService/Get": false, + "/metalstack.api.v2.SizeService/List": false, + "/metalstack.api.v2.TenantMemberService/Create": true, + "/metalstack.api.v2.TenantMemberService/Delete": true, + "/metalstack.api.v2.TenantMemberService/Get": false, + "/metalstack.api.v2.TenantMemberService/Leave": true, + "/metalstack.api.v2.TenantMemberService/List": false, + "/metalstack.api.v2.TenantMemberService/Update": true, + "/metalstack.api.v2.TenantService/Create": true, + "/metalstack.api.v2.TenantService/Delete": true, + "/metalstack.api.v2.TenantService/Get": false, + "/metalstack.api.v2.TenantService/Invite": true, + "/metalstack.api.v2.TenantService/InviteAccept": true, + "/metalstack.api.v2.TenantService/InviteDelete": true, + "/metalstack.api.v2.TenantService/InviteGet": false, + "/metalstack.api.v2.TenantService/InvitesList": false, + "/metalstack.api.v2.TenantService/List": false, + "/metalstack.api.v2.TenantService/Update": true, + "/metalstack.api.v2.TokenService/Create": true, + "/metalstack.api.v2.TokenService/Get": true, + "/metalstack.api.v2.TokenService/List": true, + "/metalstack.api.v2.TokenService/Refresh": true, + "/metalstack.api.v2.TokenService/Revoke": true, + "/metalstack.api.v2.TokenService/Update": true, + "/metalstack.api.v2.UserService/Get": true, + "/metalstack.api.v2.VersionService/Get": false, + "/metalstack.infra.v2.BMCService/BMCCommandDone": true, + "/metalstack.infra.v2.BMCService/UpdateBMCInfo": true, + "/metalstack.infra.v2.BMCService/WaitForBMCCommand": true, + "/metalstack.infra.v2.BootService/Boot": true, + "/metalstack.infra.v2.BootService/Dhcp": true, + "/metalstack.infra.v2.BootService/InstallationSucceeded": true, + "/metalstack.infra.v2.BootService/MachineToken": true, + "/metalstack.infra.v2.BootService/Register": true, + "/metalstack.infra.v2.BootService/SendEvent": true, + "/metalstack.infra.v2.BootService/SuperUserPassword": true, + "/metalstack.infra.v2.BootService/Wait": true, + "/metalstack.infra.v2.ComponentService/Ping": false, + "/metalstack.infra.v2.EventService/Send": false, + "/metalstack.infra.v2.SwitchService/Get": false, + "/metalstack.infra.v2.SwitchService/Heartbeat": false, + "/metalstack.infra.v2.SwitchService/Register": true, }, } } diff --git a/js/metalstack/admin/v2/housekeeping_pb.d.ts b/js/metalstack/admin/v2/housekeeping_pb.d.ts index 164b3e46..5f15ea60 100644 --- a/js/metalstack/admin/v2/housekeeping_pb.d.ts +++ b/js/metalstack/admin/v2/housekeeping_pb.d.ts @@ -1,86 +1,122 @@ -import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import type { Machine, MachineLiveliness } from "../../api/v2/machine_pb"; +import type { VPNNode } from "../../api/v2/vpn_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file metalstack/admin/v2/housekeeping.proto. */ export declare const file_metalstack_admin_v2_housekeeping: GenFile; /** - * HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request. + * HousekeepingServiceMachineLivelinessRequest is the request payload for a machine liveliness housekeeping request. * - * @generated from message metalstack.admin.v2.HousekeepingServiceMachineRequest + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest */ -export type HousekeepingServiceMachineRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineRequest"> & { +export type HousekeepingServiceMachineLivelinessRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest"> & {}; +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest. + * Use `create(HousekeepingServiceMachineLivelinessRequestSchema)` to create a new message. + */ +export declare const HousekeepingServiceMachineLivelinessRequestSchema: GenMessage; +/** + * HousekeepingServiceMachineLivelinessResponse is the response payload for a machine liveliness housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse + */ +export type HousekeepingServiceMachineLivelinessResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse"> & { /** - * Housekeeping Action to perform. + * Modified Machines modified during this housekeeping action. * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + * @generated from field: repeated metalstack.admin.v2.MachineWithLiveliness modified_machines = 1; */ - action: MachineHousekeepingAction; + modifiedMachines: MachineWithLiveliness[]; }; /** - * Describes the message metalstack.admin.v2.HousekeepingServiceMachineRequest. - * Use `create(HousekeepingServiceMachineRequestSchema)` to create a new message. + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse. + * Use `create(HousekeepingServiceMachineLivelinessResponseSchema)` to create a new message. */ -export declare const HousekeepingServiceMachineRequestSchema: GenMessage; +export declare const HousekeepingServiceMachineLivelinessResponseSchema: GenMessage; /** - * HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. + * MachineWithLiveliness * - * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResponse + * @generated from message metalstack.admin.v2.MachineWithLiveliness */ -export type HousekeepingServiceMachineResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineResponse"> & { +export type MachineWithLiveliness = Message<"metalstack.admin.v2.MachineWithLiveliness"> & { /** - * Housekeeping Action which was performed. + * UUID of this machine. * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; + * @generated from field: string uuid = 1; */ - action: MachineHousekeepingAction; + uuid: string; /** - * Modified Machine IDs modified during this housekeeping action. + * Liveliness of this machine. * - * @generated from field: repeated string modified_machine_ids = 2; + * @generated from field: metalstack.api.v2.MachineLiveliness liveliness = 2; */ - modifiedMachineIds: string[]; + liveliness: MachineLiveliness; }; /** - * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResponse. - * Use `create(HousekeepingServiceMachineResponseSchema)` to create a new message. + * Describes the message metalstack.admin.v2.MachineWithLiveliness. + * Use `create(MachineWithLivelinessSchema)` to create a new message. */ -export declare const HousekeepingServiceMachineResponseSchema: GenMessage; +export declare const MachineWithLivelinessSchema: GenMessage; /** - * HousekeepingAction defines which housekeeping action should be triggered. + * HousekeepingServiceMachineVPNConnectedRequest is the request payload for a machine vpn connected housekeeping request. * - * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest */ -export declare enum MachineHousekeepingAction { - /** - * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - /** - * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; - */ - VPN_CONNECTED = 1, +export type HousekeepingServiceMachineVPNConnectedRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest"> & {}; +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest. + * Use `create(HousekeepingServiceMachineVPNConnectedRequestSchema)` to create a new message. + */ +export declare const HousekeepingServiceMachineVPNConnectedRequestSchema: GenMessage; +/** + * HousekeepingServiceMachineVPNConnectedResponse is the response payload for a machine vpn connected housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse + */ +export type HousekeepingServiceMachineVPNConnectedResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse"> & { /** - * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * Nodes connected to the VPN. * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + * @generated from field: repeated metalstack.api.v2.VPNNode modified_machines = 1; */ - LIVELINESS = 2, + modifiedMachines: VPNNode[]; +}; +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse. + * Use `create(HousekeepingServiceMachineVPNConnectedResponseSchema)` to create a new message. + */ +export declare const HousekeepingServiceMachineVPNConnectedResponseSchema: GenMessage; +/** + * HousekeepingServiceMachineResurrectRequest is the request payload for a machine resurrect housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest + */ +export type HousekeepingServiceMachineResurrectRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest"> & {}; +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest. + * Use `create(HousekeepingServiceMachineResurrectRequestSchema)` to create a new message. + */ +export declare const HousekeepingServiceMachineResurrectRequestSchema: GenMessage; +/** + * HousekeepingServiceMachineResurrectResponse is the response payload for a machine resurrect housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse + */ +export type HousekeepingServiceMachineResurrectResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse"> & { /** - * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * Machines which have been resurrected * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + * @generated from field: repeated metalstack.api.v2.Machine modified_machines = 1; */ - RESURRECT = 3 -} + modifiedMachines: Machine[]; +}; /** - * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse. + * Use `create(HousekeepingServiceMachineResurrectResponseSchema)` to create a new message. */ -export declare const MachineHousekeepingActionSchema: GenEnum; +export declare const HousekeepingServiceMachineResurrectResponseSchema: GenMessage; /** * HousekeepingService provides housekeeping operations. * @@ -88,13 +124,33 @@ export declare const MachineHousekeepingActionSchema: GenEnum; diff --git a/js/metalstack/admin/v2/housekeeping_pb.js b/js/metalstack/admin/v2/housekeeping_pb.js index ba37e14b..a4244101 100644 --- a/js/metalstack/admin/v2/housekeeping_pb.js +++ b/js/metalstack/admin/v2/housekeeping_pb.js @@ -1,59 +1,50 @@ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts" // @generated from file metalstack/admin/v2/housekeeping.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ -import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; +import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb"; +import { file_metalstack_api_v2_vpn } from "../../api/v2/vpn_pb"; /** * Describes the file metalstack/admin/v2/housekeeping.proto. */ -export const file_metalstack_admin_v2_housekeeping = /*@__PURE__*/ fileDesc("CiZtZXRhbHN0YW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hY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common]); +export const file_metalstack_admin_v2_housekeeping = /*@__PURE__*/ fileDesc("CiZtZXRhbHN0YWNrL2FkbWluL3YyL2hvdXNla2VlcGluZy5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiItCitIb3VzZWtlZXBpbmdTZXJ2aWNlTWFjaGluZUxpdmVsaW5lc3NSZXF1ZXN0InUKLEhvdXNla2VlcGluZ1NlcnZpY2VNYWNoaW5lTGl2ZWxpbmVzc1Jlc3BvbnNlEkUKEW1vZGlmaWVkX21hY2hpbmVzGAEgAygLMioubWV0YWxzdGFjay5hZG1pbi52Mi5NYWNoaW5lV2l0aExpdmVsaW5lc3MicwoVTWFjaGluZVdpdGhMaXZlbGluZXNzEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEkIKCmxpdmVsaW5lc3MYAiABKA4yJC5tZXRhbHN0YWNrLmFwaS52Mi5NYWNoaW5lTGl2ZWxpbmVzc0IIukgFggECEAEiLwotSG91c2VrZWVwaW5nU2VydmljZU1hY2hpbmVWUE5Db25uZWN0ZWRSZXF1ZXN0ImcKLkhvdXNla2VlcGluZ1NlcnZpY2VNYWNoaW5lVlBOQ29ubmVjdGVkUmVzcG9uc2USNQoRbW9kaWZpZWRfbWFjaGluZXMYASADKAsyGi5tZXRhbHN0YWNrLmFwaS52Mi5WUE5Ob2RlIiwKKkhvdXNla2VlcGluZ1NlcnZpY2VNYWNoaW5lUmVzdXJyZWN0UmVxdWVzdCJkCitIb3VzZWtlZXBpbmdTZXJ2aWNlTWFjaGluZVJlc3VycmVjdFJlc3BvbnNlEjUKEW1vZGlmaWVkX21hY2hpbmVzGAE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2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_vpn]); /** - * Describes the message metalstack.admin.v2.HousekeepingServiceMachineRequest. - * Use `create(HousekeepingServiceMachineRequestSchema)` to create a new message. + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest. + * Use `create(HousekeepingServiceMachineLivelinessRequestSchema)` to create a new message. */ -export const HousekeepingServiceMachineRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 0); +export const HousekeepingServiceMachineLivelinessRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 0); /** - * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResponse. - * Use `create(HousekeepingServiceMachineResponseSchema)` to create a new message. + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse. + * Use `create(HousekeepingServiceMachineLivelinessResponseSchema)` to create a new message. */ -export const HousekeepingServiceMachineResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 1); +export const HousekeepingServiceMachineLivelinessResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 1); /** - * HousekeepingAction defines which housekeeping action should be triggered. - * - * @generated from enum metalstack.admin.v2.MachineHousekeepingAction - */ -export var MachineHousekeepingAction; -(function (MachineHousekeepingAction) { - /** - * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; - */ - MachineHousekeepingAction[MachineHousekeepingAction["UNSPECIFIED"] = 0] = "UNSPECIFIED"; - /** - * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; - */ - MachineHousekeepingAction[MachineHousekeepingAction["VPN_CONNECTED"] = 1] = "VPN_CONNECTED"; - /** - * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; - */ - MachineHousekeepingAction[MachineHousekeepingAction["LIVELINESS"] = 2] = "LIVELINESS"; - /** - * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; - */ - MachineHousekeepingAction[MachineHousekeepingAction["RESURRECT"] = 3] = "RESURRECT"; -})(MachineHousekeepingAction || (MachineHousekeepingAction = {})); -/** - * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. - */ -export const MachineHousekeepingActionSchema = /*@__PURE__*/ enumDesc(file_metalstack_admin_v2_housekeeping, 0); + * Describes the message metalstack.admin.v2.MachineWithLiveliness. + * Use `create(MachineWithLivelinessSchema)` to create a new message. + */ +export const MachineWithLivelinessSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 2); +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest. + * Use `create(HousekeepingServiceMachineVPNConnectedRequestSchema)` to create a new message. + */ +export const HousekeepingServiceMachineVPNConnectedRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 3); +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse. + * Use `create(HousekeepingServiceMachineVPNConnectedResponseSchema)` to create a new message. + */ +export const HousekeepingServiceMachineVPNConnectedResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 4); +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest. + * Use `create(HousekeepingServiceMachineResurrectRequestSchema)` to create a new message. + */ +export const HousekeepingServiceMachineResurrectRequestSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 5); +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse. + * Use `create(HousekeepingServiceMachineResurrectResponseSchema)` to create a new message. + */ +export const HousekeepingServiceMachineResurrectResponseSchema = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 6); /** * HousekeepingService provides housekeeping operations. * diff --git a/js/metalstack/admin/v2/housekeeping_pb.ts b/js/metalstack/admin/v2/housekeeping_pb.ts index 165f9ffc..89af5275 100644 --- a/js/metalstack/admin/v2/housekeeping_pb.ts +++ b/js/metalstack/admin/v2/housekeeping_pb.ts @@ -2,107 +2,157 @@ // @generated from file metalstack/admin/v2/housekeeping.proto (package metalstack.admin.v2, syntax proto3) /* eslint-disable */ -import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; -import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_buf_validate_validate } from "../../../buf/validate/validate_pb"; import { file_metalstack_api_v2_common } from "../../api/v2/common_pb"; +import type { Machine, MachineLiveliness } from "../../api/v2/machine_pb"; +import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb"; +import type { VPNNode } from "../../api/v2/vpn_pb"; +import { file_metalstack_api_v2_vpn } from "../../api/v2/vpn_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file metalstack/admin/v2/housekeeping.proto. */ export const file_metalstack_admin_v2_housekeeping: GenFile = /*@__PURE__*/ - fileDesc("CiZtZXRhbHN0YWNrL2FkbWluL3YyL2hvdXNla2VlcGluZy5wcm90bxITbWV0YWxzdGFjay5hZG1pbi52MiJtCiFIb3VzZWtlZXBpbmdTZXJ2aWNlTWFjaGluZVJlcXVlc3QSSAoGYWN0aW9uGAEgASgOMi4ubWV0YWxzdGFjay5hZG1pbi52Mi5NYWNoaW5lSG91c2VrZWVwaW5nQWN0aW9uQgi6SAWCAQIQASKCAQoiSG91c2VrZWVwaW5nU2VydmljZU1hY2hpbmVSZXNwb25zZRI+CgZhY3Rp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pbmVWUE5Db25uZWN0ZWQSQi5tZXRhbHN0YWNrLmFkbWluLnYyLkhvdXNla2VlcGluZ1NlcnZpY2VNYWNoaW5lVlBOQ29ubmVjdGVkUmVxdWVzdBpDLm1ldGFsc3RhY2suYWRtaW4udjIuSG91c2VrZWVwaW5nU2VydmljZU1hY2hpbmVWUE5Db25uZWN0ZWRSZXNwb25zZSIJ0vMYAQHg8xgBEqABChBNYWNoaW5lUmVzdXJyZWN0Ej8ubWV0YWxzdGFjay5hZG1pbi52Mi5Ib3VzZWtlZXBpbmdTZXJ2aWNlTWFjaGluZVJlc3VycmVjdFJlcXVlc3QaQC5tZXRhbHN0YWNrLmFkbWluLnYyLkhvdXNla2VlcGluZ1NlcnZpY2VNYWNoaW5lUmVzdXJyZWN0UmVzcG9uc2UiCdLzGAEB4PMYAULVAQoXY29tLm1ldGFsc3RhY2suYWRtaW4udjJCEUhvdXNla2VlcGluZ1Byb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_vpn]); /** - * HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request. + * HousekeepingServiceMachineLivelinessRequest is the request payload for a machine liveliness housekeeping request. * - * @generated from message metalstack.admin.v2.HousekeepingServiceMachineRequest + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest */ -export type HousekeepingServiceMachineRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineRequest"> & { - /** - * Housekeeping Action to perform. - * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; - */ - action: MachineHousekeepingAction; +export type HousekeepingServiceMachineLivelinessRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest"> & { }; /** - * Describes the message metalstack.admin.v2.HousekeepingServiceMachineRequest. - * Use `create(HousekeepingServiceMachineRequestSchema)` to create a new message. + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest. + * Use `create(HousekeepingServiceMachineLivelinessRequestSchema)` to create a new message. */ -export const HousekeepingServiceMachineRequestSchema: GenMessage = /*@__PURE__*/ +export const HousekeepingServiceMachineLivelinessRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 0); /** - * HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. + * HousekeepingServiceMachineLivelinessResponse is the response payload for a machine liveliness housekeeping request. * - * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResponse + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse */ -export type HousekeepingServiceMachineResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineResponse"> & { - /** - * Housekeeping Action which was performed. - * - * @generated from field: metalstack.admin.v2.MachineHousekeepingAction action = 1; - */ - action: MachineHousekeepingAction; - +export type HousekeepingServiceMachineLivelinessResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse"> & { /** - * Modified Machine IDs modified during this housekeeping action. + * Modified Machines modified during this housekeeping action. * - * @generated from field: repeated string modified_machine_ids = 2; + * @generated from field: repeated metalstack.admin.v2.MachineWithLiveliness modified_machines = 1; */ - modifiedMachineIds: string[]; + modifiedMachines: MachineWithLiveliness[]; }; /** - * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResponse. - * Use `create(HousekeepingServiceMachineResponseSchema)` to create a new message. + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse. + * Use `create(HousekeepingServiceMachineLivelinessResponseSchema)` to create a new message. */ -export const HousekeepingServiceMachineResponseSchema: GenMessage = /*@__PURE__*/ +export const HousekeepingServiceMachineLivelinessResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_metalstack_admin_v2_housekeeping, 1); /** - * HousekeepingAction defines which housekeeping action should be triggered. + * MachineWithLiveliness * - * @generated from enum metalstack.admin.v2.MachineHousekeepingAction + * @generated from message metalstack.admin.v2.MachineWithLiveliness */ -export enum MachineHousekeepingAction { +export type MachineWithLiveliness = Message<"metalstack.admin.v2.MachineWithLiveliness"> & { /** - * MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. + * UUID of this machine. * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; + * @generated from field: string uuid = 1; */ - UNSPECIFIED = 0, + uuid: string; /** - * MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. + * Liveliness of this machine. * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1; + * @generated from field: metalstack.api.v2.MachineLiveliness liveliness = 2; */ - VPN_CONNECTED = 1, + liveliness: MachineLiveliness; +}; + +/** + * Describes the message metalstack.admin.v2.MachineWithLiveliness. + * Use `create(MachineWithLivelinessSchema)` to create a new message. + */ +export const MachineWithLivelinessSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_housekeeping, 2); + +/** + * HousekeepingServiceMachineVPNConnectedRequest is the request payload for a machine vpn connected housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest + */ +export type HousekeepingServiceMachineVPNConnectedRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest"> & { +}; + +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest. + * Use `create(HousekeepingServiceMachineVPNConnectedRequestSchema)` to create a new message. + */ +export const HousekeepingServiceMachineVPNConnectedRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_housekeeping, 3); +/** + * HousekeepingServiceMachineVPNConnectedResponse is the response payload for a machine vpn connected housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse + */ +export type HousekeepingServiceMachineVPNConnectedResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse"> & { /** - * MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. + * Nodes connected to the VPN. * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2; + * @generated from field: repeated metalstack.api.v2.VPNNode modified_machines = 1; */ - LIVELINESS = 2, + modifiedMachines: VPNNode[]; +}; + +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse. + * Use `create(HousekeepingServiceMachineVPNConnectedResponseSchema)` to create a new message. + */ +export const HousekeepingServiceMachineVPNConnectedResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_housekeeping, 4); + +/** + * HousekeepingServiceMachineResurrectRequest is the request payload for a machine resurrect housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest + */ +export type HousekeepingServiceMachineResurrectRequest = Message<"metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest"> & { +}; + +/** + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest. + * Use `create(HousekeepingServiceMachineResurrectRequestSchema)` to create a new message. + */ +export const HousekeepingServiceMachineResurrectRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_housekeeping, 5); +/** + * HousekeepingServiceMachineResurrectResponse is the response payload for a machine resurrect housekeeping request. + * + * @generated from message metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse + */ +export type HousekeepingServiceMachineResurrectResponse = Message<"metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse"> & { /** - * MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. + * Machines which have been resurrected * - * @generated from enum value: MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3; + * @generated from field: repeated metalstack.api.v2.Machine modified_machines = 1; */ - RESURRECT = 3, -} + modifiedMachines: Machine[]; +}; /** - * Describes the enum metalstack.admin.v2.MachineHousekeepingAction. + * Describes the message metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse. + * Use `create(HousekeepingServiceMachineResurrectResponseSchema)` to create a new message. */ -export const MachineHousekeepingActionSchema: GenEnum = /*@__PURE__*/ - enumDesc(file_metalstack_admin_v2_housekeeping, 0); +export const HousekeepingServiceMachineResurrectResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_metalstack_admin_v2_housekeeping, 6); /** * HousekeepingService provides housekeeping operations. @@ -111,14 +161,34 @@ export const MachineHousekeepingActionSchema: GenEnum */ export const HousekeepingService: GenService<{ /** - * Machine housekeeping + * Machine liveliness + * + * @generated from rpc metalstack.admin.v2.HousekeepingService.MachineLiveliness + */ + machineLiveliness: { + methodKind: "unary"; + input: typeof HousekeepingServiceMachineLivelinessRequestSchema; + output: typeof HousekeepingServiceMachineLivelinessResponseSchema; + }, + /** + * Machine vpn connected + * + * @generated from rpc metalstack.admin.v2.HousekeepingService.MachineVPNConnected + */ + machineVPNConnected: { + methodKind: "unary"; + input: typeof HousekeepingServiceMachineVPNConnectedRequestSchema; + output: typeof HousekeepingServiceMachineVPNConnectedResponseSchema; + }, + /** + * Machine resurrect dead machines * - * @generated from rpc metalstack.admin.v2.HousekeepingService.Machine + * @generated from rpc metalstack.admin.v2.HousekeepingService.MachineResurrect */ - machine: { + machineResurrect: { methodKind: "unary"; - input: typeof HousekeepingServiceMachineRequestSchema; - output: typeof HousekeepingServiceMachineResponseSchema; + input: typeof HousekeepingServiceMachineResurrectRequestSchema; + output: typeof HousekeepingServiceMachineResurrectResponseSchema; }, }> = /*@__PURE__*/ serviceDesc(file_metalstack_admin_v2_housekeeping, 0); diff --git a/proto/metalstack/admin/v2/housekeeping.proto b/proto/metalstack/admin/v2/housekeeping.proto index caa60a7b..4896be87 100644 --- a/proto/metalstack/admin/v2/housekeeping.proto +++ b/proto/metalstack/admin/v2/housekeeping.proto @@ -4,38 +4,60 @@ package metalstack.admin.v2; import "buf/validate/validate.proto"; import "metalstack/api/v2/common.proto"; +import "metalstack/api/v2/machine.proto"; +import "metalstack/api/v2/vpn.proto"; // HousekeepingService provides housekeeping operations. service HousekeepingService { - // Machine housekeeping - rpc Machine(HousekeepingServiceMachineRequest) returns (HousekeepingServiceMachineResponse) { + // Machine liveliness + rpc MachineLiveliness(HousekeepingServiceMachineLivelinessRequest) returns (HousekeepingServiceMachineLivelinessResponse) { option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; option (metalstack.api.v2.auditing) = AUDITING_INCLUDED; } + // Machine vpn connected + rpc MachineVPNConnected(HousekeepingServiceMachineVPNConnectedRequest) returns (HousekeepingServiceMachineVPNConnectedResponse) { + option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; + option (metalstack.api.v2.auditing) = AUDITING_INCLUDED; + } + + // Machine resurrect dead machines + rpc MachineResurrect(HousekeepingServiceMachineResurrectRequest) returns (HousekeepingServiceMachineResurrectResponse) { + option (metalstack.api.v2.admin_roles) = ADMIN_ROLE_EDITOR; + option (metalstack.api.v2.auditing) = AUDITING_INCLUDED; + } +} + +// HousekeepingServiceMachineLivelinessRequest is the request payload for a machine liveliness housekeeping request. +message HousekeepingServiceMachineLivelinessRequest {} + +// HousekeepingServiceMachineLivelinessResponse is the response payload for a machine liveliness housekeeping request. +message HousekeepingServiceMachineLivelinessResponse { + // Modified Machines modified during this housekeeping action. + repeated MachineWithLiveliness modified_machines = 1; } -// HousekeepingServiceMachineRequest is the request payload for a machine housekeeping request. -message HousekeepingServiceMachineRequest { - // Housekeeping Action to perform. - MachineHousekeepingAction action = 1 [(buf.validate.field).enum.defined_only = true]; +// MachineWithLiveliness +message MachineWithLiveliness { + // UUID of this machine. + string uuid = 1 [(buf.validate.field).string.uuid = true]; + // Liveliness of this machine. + metalstack.api.v2.MachineLiveliness liveliness = 2 [(buf.validate.field).enum.defined_only = true]; } -// HousekeepingServiceMachineResponse is the response payload for a machine housekeeping request. -message HousekeepingServiceMachineResponse { - // Housekeeping Action which was performed. - MachineHousekeepingAction action = 1; - // Modified Machine IDs modified during this housekeeping action. - repeated string modified_machine_ids = 2; +// HousekeepingServiceMachineVPNConnectedRequest is the request payload for a machine vpn connected housekeeping request. +message HousekeepingServiceMachineVPNConnectedRequest {} + +// HousekeepingServiceMachineVPNConnectedResponse is the response payload for a machine vpn connected housekeeping request. +message HousekeepingServiceMachineVPNConnectedResponse { + // Nodes connected to the VPN. + repeated metalstack.api.v2.VPNNode modified_machines = 1; } -// HousekeepingAction defines which housekeeping action should be triggered. -enum MachineHousekeepingAction { - // MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED is not defined. - MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED = 0; - // MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED updates machines which have vpn configured if they are connected or not. - MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED = 1 [(metalstack.api.v2.enum_string_value) = "vpn-connected"]; - // MACHINE_HOUSEKEEPING_ACTION_LIVELINESS reports the liveliness of machines. - MACHINE_HOUSEKEEPING_ACTION_LIVELINESS = 2 [(metalstack.api.v2.enum_string_value) = "liveliness"]; - // MACHINE_HOUSEKEEPING_ACTION_RESURRECT resurrect dead machines. - MACHINE_HOUSEKEEPING_ACTION_RESURRECT = 3 [(metalstack.api.v2.enum_string_value) = "resurrect"]; +// HousekeepingServiceMachineResurrectRequest is the request payload for a machine resurrect housekeeping request. +message HousekeepingServiceMachineResurrectRequest {} + +// HousekeepingServiceMachineResurrectResponse is the response payload for a machine resurrect housekeeping request. +message HousekeepingServiceMachineResurrectResponse { + // Machines which have been resurrected + repeated metalstack.api.v2.Machine modified_machines = 1; } diff --git a/python/metalstack/admin/v2/housekeeping_connect.py b/python/metalstack/admin/v2/housekeeping_connect.py index 1570eebd..8620e5cb 100644 --- a/python/metalstack/admin/v2/housekeeping_connect.py +++ b/python/metalstack/admin/v2/housekeeping_connect.py @@ -18,7 +18,13 @@ class HousekeepingService(Protocol): - async def machine(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + async def machine_liveliness(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + + async def machine_v_p_n_connected(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + + async def machine_resurrect(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse: raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") @@ -27,15 +33,35 @@ def __init__(self, service: HousekeepingService | AsyncGenerator[HousekeepingSer super().__init__( service=service, endpoints=lambda svc: { - "/metalstack.admin.v2.HousekeepingService/Machine": Endpoint.unary( + "/metalstack.admin.v2.HousekeepingService/MachineLiveliness": Endpoint.unary( method=MethodInfo( - name="Machine", + name="MachineLiveliness", service_name="metalstack.admin.v2.HousekeepingService", - input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, - output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse, idempotency_level=IdempotencyLevel.UNKNOWN, ), - function=svc.machine, + function=svc.machine_liveliness, + ), + "/metalstack.admin.v2.HousekeepingService/MachineVPNConnected": Endpoint.unary( + method=MethodInfo( + name="MachineVPNConnected", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=svc.machine_v_p_n_connected, + ), + "/metalstack.admin.v2.HousekeepingService/MachineResurrect": Endpoint.unary( + method=MethodInfo( + name="MachineResurrect", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=svc.machine_resurrect, ), }, interceptors=interceptors, @@ -51,20 +77,60 @@ def path(self) -> str: class HousekeepingServiceClient(ConnectClient): - async def machine( + async def machine_liveliness( + self, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse: + return await self.execute_unary( + request=request, + method=MethodInfo( + name="MachineLiveliness", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + + async def machine_v_p_n_connected( + self, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse: + return await self.execute_unary( + request=request, + method=MethodInfo( + name="MachineVPNConnected", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + + async def machine_resurrect( self, - request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, *, headers: Headers | Mapping[str, str] | None = None, timeout_ms: int | None = None, - ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse: return await self.execute_unary( request=request, method=MethodInfo( - name="Machine", + name="MachineResurrect", service_name="metalstack.admin.v2.HousekeepingService", - input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, - output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse, idempotency_level=IdempotencyLevel.UNKNOWN, ), headers=headers, @@ -76,7 +142,11 @@ async def machine( class HousekeepingServiceSync(Protocol): - def machine(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + def machine_liveliness(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + def machine_v_p_n_connected(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse: + raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") + def machine_resurrect(self, request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse: raise ConnectError(Code.UNIMPLEMENTED, "Not implemented") @@ -84,15 +154,35 @@ class HousekeepingServiceWSGIApplication(ConnectWSGIApplication): def __init__(self, service: HousekeepingServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None: super().__init__( endpoints={ - "/metalstack.admin.v2.HousekeepingService/Machine": EndpointSync.unary( + "/metalstack.admin.v2.HousekeepingService/MachineLiveliness": EndpointSync.unary( method=MethodInfo( - name="Machine", + name="MachineLiveliness", service_name="metalstack.admin.v2.HousekeepingService", - input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, - output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse, idempotency_level=IdempotencyLevel.UNKNOWN, ), - function=service.machine, + function=service.machine_liveliness, + ), + "/metalstack.admin.v2.HousekeepingService/MachineVPNConnected": EndpointSync.unary( + method=MethodInfo( + name="MachineVPNConnected", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=service.machine_v_p_n_connected, + ), + "/metalstack.admin.v2.HousekeepingService/MachineResurrect": EndpointSync.unary( + method=MethodInfo( + name="MachineResurrect", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + function=service.machine_resurrect, ), }, interceptors=interceptors, @@ -108,20 +198,60 @@ def path(self) -> str: class HousekeepingServiceClientSync(ConnectClientSync): - def machine( + def machine_liveliness( + self, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse: + return self.execute_unary( + request=request, + method=MethodInfo( + name="MachineLiveliness", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineLivelinessResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + + def machine_v_p_n_connected( + self, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, + *, + headers: Headers | Mapping[str, str] | None = None, + timeout_ms: int | None = None, + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse: + return self.execute_unary( + request=request, + method=MethodInfo( + name="MachineVPNConnected", + service_name="metalstack.admin.v2.HousekeepingService", + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineVPNConnectedResponse, + idempotency_level=IdempotencyLevel.UNKNOWN, + ), + headers=headers, + timeout_ms=timeout_ms, + ) + + def machine_resurrect( self, - request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, + request: metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, *, headers: Headers | Mapping[str, str] | None = None, timeout_ms: int | None = None, - ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse: + ) -> metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse: return self.execute_unary( request=request, method=MethodInfo( - name="Machine", + name="MachineResurrect", service_name="metalstack.admin.v2.HousekeepingService", - input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineRequest, - output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResponse, + input=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectRequest, + output=metalstack_dot_admin_dot_v2_dot_housekeeping__pb2.HousekeepingServiceMachineResurrectResponse, idempotency_level=IdempotencyLevel.UNKNOWN, ), headers=headers, diff --git a/python/metalstack/admin/v2/housekeeping_pb2.py b/python/metalstack/admin/v2/housekeeping_pb2.py index 75065747..3870e0f2 100644 --- a/python/metalstack/admin/v2/housekeeping_pb2.py +++ b/python/metalstack/admin/v2/housekeeping_pb2.py @@ -24,9 +24,11 @@ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2 +from metalstack.api.v2 import machine_pb2 as metalstack_dot_api_dot_v2_dot_machine__pb2 +from metalstack.api.v2 import vpn_pb2 as metalstack_dot_api_dot_v2_dot_vpn__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&metalstack/admin/v2/housekeeping.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\"u\n!HousekeepingServiceMachineRequest\x12P\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06\x61\x63tion\"\x9e\x01\n\"HousekeepingServiceMachineResponse\x12\x46\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32..metalstack.admin.v2.MachineHousekeepingActionR\x06\x61\x63tion\x12\x30\n\x14modified_machine_ids\x18\x02 \x03(\tR\x12modifiedMachineIds*\x80\x02\n\x19MachineHousekeepingAction\x12+\n\'MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED\x10\x00\x12@\n)MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED\x10\x01\x1a\x11\x82\xb2\x19\rvpn-connected\x12:\n&MACHINE_HOUSEKEEPING_ACTION_LIVELINESS\x10\x02\x1a\x0e\x82\xb2\x19\nliveliness\x12\x38\n%MACHINE_HOUSEKEEPING_ACTION_RESURRECT\x10\x03\x1a\r\x82\xb2\x19\tresurrect2\x9d\x01\n\x13HousekeepingService\x12\x85\x01\n\x07Machine\x12\x36.metalstack.admin.v2.HousekeepingServiceMachineRequest\x1a\x37.metalstack.admin.v2.HousekeepingServiceMachineResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x42\xd5\x01\n\x17\x63om.metalstack.admin.v2B\x11HousekeepingProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&metalstack/admin/v2/housekeeping.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/machine.proto\x1a\x1bmetalstack/api/v2/vpn.proto\"-\n+HousekeepingServiceMachineLivelinessRequest\"\x87\x01\n,HousekeepingServiceMachineLivelinessResponse\x12W\n\x11modified_machines\x18\x01 \x03(\x0b\x32*.metalstack.admin.v2.MachineWithLivelinessR\x10modifiedMachines\"\x85\x01\n\x15MachineWithLiveliness\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12N\n\nliveliness\x18\x02 \x01(\x0e\x32$.metalstack.api.v2.MachineLivelinessB\x08\xbaH\x05\x82\x01\x02\x10\x01R\nliveliness\"/\n-HousekeepingServiceMachineVPNConnectedRequest\"y\n.HousekeepingServiceMachineVPNConnectedResponse\x12G\n\x11modified_machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.VPNNodeR\x10modifiedMachines\",\n*HousekeepingServiceMachineResurrectRequest\"v\n+HousekeepingServiceMachineResurrectResponse\x12G\n\x11modified_machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x10modifiedMachines2\x8a\x04\n\x13HousekeepingService\x12\xa3\x01\n\x11MachineLiveliness\x12@.metalstack.admin.v2.HousekeepingServiceMachineLivelinessRequest\x1a\x41.metalstack.admin.v2.HousekeepingServiceMachineLivelinessResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\xa9\x01\n\x13MachineVPNConnected\x12\x42.metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedRequest\x1a\x43.metalstack.admin.v2.HousekeepingServiceMachineVPNConnectedResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\xa0\x01\n\x10MachineResurrect\x12?.metalstack.admin.v2.HousekeepingServiceMachineResurrectRequest\x1a@.metalstack.admin.v2.HousekeepingServiceMachineResurrectResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x42\xd5\x01\n\x17\x63om.metalstack.admin.v2B\x11HousekeepingProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -34,22 +36,30 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\021HousekeepingProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2' - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._loaded_options = None - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED"]._serialized_options = b'\202\262\031\rvpn-connected' - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._loaded_options = None - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_LIVELINESS"]._serialized_options = b'\202\262\031\nliveliness' - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._loaded_options = None - _globals['_MACHINEHOUSEKEEPINGACTION'].values_by_name["MACHINE_HOUSEKEEPING_ACTION_RESURRECT"]._serialized_options = b'\202\262\031\tresurrect' - _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST'].fields_by_name['action']._loaded_options = None - _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST'].fields_by_name['action']._serialized_options = b'\272H\005\202\001\002\020\001' - _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['Machine']._loaded_options = None - _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['Machine']._serialized_options = b'\322\363\030\001\001\340\363\030\001' - _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_start=405 - _globals['_MACHINEHOUSEKEEPINGACTION']._serialized_end=661 - _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST']._serialized_start=124 - _globals['_HOUSEKEEPINGSERVICEMACHINEREQUEST']._serialized_end=241 - _globals['_HOUSEKEEPINGSERVICEMACHINERESPONSE']._serialized_start=244 - _globals['_HOUSEKEEPINGSERVICEMACHINERESPONSE']._serialized_end=402 - _globals['_HOUSEKEEPINGSERVICE']._serialized_start=664 - _globals['_HOUSEKEEPINGSERVICE']._serialized_end=821 + _globals['_MACHINEWITHLIVELINESS'].fields_by_name['uuid']._loaded_options = None + _globals['_MACHINEWITHLIVELINESS'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001' + _globals['_MACHINEWITHLIVELINESS'].fields_by_name['liveliness']._loaded_options = None + _globals['_MACHINEWITHLIVELINESS'].fields_by_name['liveliness']._serialized_options = b'\272H\005\202\001\002\020\001' + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['MachineLiveliness']._loaded_options = None + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['MachineLiveliness']._serialized_options = b'\322\363\030\001\001\340\363\030\001' + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['MachineVPNConnected']._loaded_options = None + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['MachineVPNConnected']._serialized_options = b'\322\363\030\001\001\340\363\030\001' + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['MachineResurrect']._loaded_options = None + _globals['_HOUSEKEEPINGSERVICE'].methods_by_name['MachineResurrect']._serialized_options = b'\322\363\030\001\001\340\363\030\001' + _globals['_HOUSEKEEPINGSERVICEMACHINELIVELINESSREQUEST']._serialized_start=186 + _globals['_HOUSEKEEPINGSERVICEMACHINELIVELINESSREQUEST']._serialized_end=231 + _globals['_HOUSEKEEPINGSERVICEMACHINELIVELINESSRESPONSE']._serialized_start=234 + _globals['_HOUSEKEEPINGSERVICEMACHINELIVELINESSRESPONSE']._serialized_end=369 + _globals['_MACHINEWITHLIVELINESS']._serialized_start=372 + _globals['_MACHINEWITHLIVELINESS']._serialized_end=505 + _globals['_HOUSEKEEPINGSERVICEMACHINEVPNCONNECTEDREQUEST']._serialized_start=507 + _globals['_HOUSEKEEPINGSERVICEMACHINEVPNCONNECTEDREQUEST']._serialized_end=554 + _globals['_HOUSEKEEPINGSERVICEMACHINEVPNCONNECTEDRESPONSE']._serialized_start=556 + _globals['_HOUSEKEEPINGSERVICEMACHINEVPNCONNECTEDRESPONSE']._serialized_end=677 + _globals['_HOUSEKEEPINGSERVICEMACHINERESURRECTREQUEST']._serialized_start=679 + _globals['_HOUSEKEEPINGSERVICEMACHINERESURRECTREQUEST']._serialized_end=723 + _globals['_HOUSEKEEPINGSERVICEMACHINERESURRECTRESPONSE']._serialized_start=725 + _globals['_HOUSEKEEPINGSERVICEMACHINERESURRECTRESPONSE']._serialized_end=843 + _globals['_HOUSEKEEPINGSERVICE']._serialized_start=846 + _globals['_HOUSEKEEPINGSERVICE']._serialized_end=1368 # @@protoc_insertion_point(module_scope) diff --git a/python/metalstack/admin/v2/housekeeping_pb2.pyi b/python/metalstack/admin/v2/housekeeping_pb2.pyi index 67ebf14b..369ddbb2 100644 --- a/python/metalstack/admin/v2/housekeeping_pb2.pyi +++ b/python/metalstack/admin/v2/housekeeping_pb2.pyi @@ -1,35 +1,49 @@ from buf.validate import validate_pb2 as _validate_pb2 from metalstack.api.v2 import common_pb2 as _common_pb2 +from metalstack.api.v2 import machine_pb2 as _machine_pb2 +from metalstack.api.v2 import vpn_pb2 as _vpn_pb2 from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from collections.abc import Iterable as _Iterable +from collections.abc import Iterable as _Iterable, Mapping as _Mapping from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor -class MachineHousekeepingAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): +class HousekeepingServiceMachineLivelinessRequest(_message.Message): __slots__ = () - MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: _ClassVar[MachineHousekeepingAction] - MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: _ClassVar[MachineHousekeepingAction] - MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: _ClassVar[MachineHousekeepingAction] - MACHINE_HOUSEKEEPING_ACTION_RESURRECT: _ClassVar[MachineHousekeepingAction] -MACHINE_HOUSEKEEPING_ACTION_UNSPECIFIED: MachineHousekeepingAction -MACHINE_HOUSEKEEPING_ACTION_VPN_CONNECTED: MachineHousekeepingAction -MACHINE_HOUSEKEEPING_ACTION_LIVELINESS: MachineHousekeepingAction -MACHINE_HOUSEKEEPING_ACTION_RESURRECT: MachineHousekeepingAction - -class HousekeepingServiceMachineRequest(_message.Message): - __slots__ = ("action",) - ACTION_FIELD_NUMBER: _ClassVar[int] - action: MachineHousekeepingAction - def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ...) -> None: ... - -class HousekeepingServiceMachineResponse(_message.Message): - __slots__ = ("action", "modified_machine_ids") - ACTION_FIELD_NUMBER: _ClassVar[int] - MODIFIED_MACHINE_IDS_FIELD_NUMBER: _ClassVar[int] - action: MachineHousekeepingAction - modified_machine_ids: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, action: _Optional[_Union[MachineHousekeepingAction, str]] = ..., modified_machine_ids: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__(self) -> None: ... + +class HousekeepingServiceMachineLivelinessResponse(_message.Message): + __slots__ = ("modified_machines",) + MODIFIED_MACHINES_FIELD_NUMBER: _ClassVar[int] + modified_machines: _containers.RepeatedCompositeFieldContainer[MachineWithLiveliness] + def __init__(self, modified_machines: _Optional[_Iterable[_Union[MachineWithLiveliness, _Mapping]]] = ...) -> None: ... + +class MachineWithLiveliness(_message.Message): + __slots__ = ("uuid", "liveliness") + UUID_FIELD_NUMBER: _ClassVar[int] + LIVELINESS_FIELD_NUMBER: _ClassVar[int] + uuid: str + liveliness: _machine_pb2.MachineLiveliness + def __init__(self, uuid: _Optional[str] = ..., liveliness: _Optional[_Union[_machine_pb2.MachineLiveliness, str]] = ...) -> None: ... + +class HousekeepingServiceMachineVPNConnectedRequest(_message.Message): + __slots__ = () + def __init__(self) -> None: ... + +class HousekeepingServiceMachineVPNConnectedResponse(_message.Message): + __slots__ = ("modified_machines",) + MODIFIED_MACHINES_FIELD_NUMBER: _ClassVar[int] + modified_machines: _containers.RepeatedCompositeFieldContainer[_vpn_pb2.VPNNode] + def __init__(self, modified_machines: _Optional[_Iterable[_Union[_vpn_pb2.VPNNode, _Mapping]]] = ...) -> None: ... + +class HousekeepingServiceMachineResurrectRequest(_message.Message): + __slots__ = () + def __init__(self) -> None: ... + +class HousekeepingServiceMachineResurrectResponse(_message.Message): + __slots__ = ("modified_machines",) + MODIFIED_MACHINES_FIELD_NUMBER: _ClassVar[int] + modified_machines: _containers.RepeatedCompositeFieldContainer[_machine_pb2.Machine] + def __init__(self, modified_machines: _Optional[_Iterable[_Union[_machine_pb2.Machine, _Mapping]]] = ...) -> None: ...