diff --git a/CHANGELOG.md b/CHANGELOG.md index 29cbfadbc..230c6ce3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - (Maintenance) Kubernetes 1.31.1 libraries - (Feature) Helm Client Support - (Feature) Helm Client Extension +- (Feature) (Integration) SchedulerV2 Definition ## [1.2.43](https://github.com/arangodb/kube-arangodb/tree/1.2.43) (2024-10-14) - (Feature) ArangoRoute CRD diff --git a/integrations/scheduler/v2/definition/consts.go b/integrations/scheduler/v2/definition/consts.go new file mode 100644 index 000000000..b094398b4 --- /dev/null +++ b/integrations/scheduler/v2/definition/consts.go @@ -0,0 +1,25 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +package definition + +const ( + Name = "scheduler.v2" +) diff --git a/integrations/scheduler/v2/definition/definition.pb.go b/integrations/scheduler/v2/definition/definition.pb.go new file mode 100644 index 000000000..c97b551d4 --- /dev/null +++ b/integrations/scheduler/v2/definition/definition.pb.go @@ -0,0 +1,214 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.21.1 +// source: integrations/scheduler/v2/definition/definition.proto + +package definition + +import ( + definition "github.com/arangodb/kube-arangodb/integrations/shared/v1/definition" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +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) +) + +var File_integrations_scheduler_v2_definition_definition_proto protoreflect.FileDescriptor + +var file_integrations_scheduler_v2_definition_definition_proto_rawDesc = []byte{ + 0x0a, 0x35, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x1a, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x68, 0x65, 0x6c, 0x6d, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x35, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, + 0x65, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x69, 0x6e, 0x74, 0x65, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, + 0x76, 0x31, 0x2f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x6d, + 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xb5, 0x08, 0x0a, 0x0b, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x12, 0x2f, 0x0a, 0x0f, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x0d, 0x2e, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x0d, 0x2e, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x41, 0x6c, + 0x69, 0x76, 0x65, 0x12, 0x0d, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x0d, 0x2e, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x12, 0x4d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, + 0x32, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x56, 0x32, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x53, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x2e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x24, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x2a, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x56, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x24, 0x2e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x56, 0x32, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x25, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x07, 0x55, 0x70, 0x67, 0x72, 0x61, + 0x64, 0x65, 0x12, 0x24, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, + 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x5c, 0x0a, 0x09, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x26, 0x2e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x56, 0x32, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, 0x6e, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, + 0x04, 0x54, 0x65, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x54, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, + 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x14, + 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x13, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x30, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0d, 0x4b, 0x75, 0x62, 0x65, 0x72, + 0x6e, 0x65, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, + 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4b, 0x75, 0x62, 0x65, + 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x72, 0x61, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x2d, 0x61, 0x72, + 0x61, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, + 0x2f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var file_integrations_scheduler_v2_definition_definition_proto_goTypes = []interface{}{ + (*definition.Empty)(nil), // 0: shared.Empty + (*SchedulerV2ListRequest)(nil), // 1: scheduler.SchedulerV2ListRequest + (*SchedulerV2StatusRequest)(nil), // 2: scheduler.SchedulerV2StatusRequest + (*SchedulerV2StatusObjectsRequest)(nil), // 3: scheduler.SchedulerV2StatusObjectsRequest + (*SchedulerV2InstallRequest)(nil), // 4: scheduler.SchedulerV2InstallRequest + (*SchedulerV2UpgradeRequest)(nil), // 5: scheduler.SchedulerV2UpgradeRequest + (*SchedulerV2UninstallRequest)(nil), // 6: scheduler.SchedulerV2UninstallRequest + (*SchedulerV2TestRequest)(nil), // 7: scheduler.SchedulerV2TestRequest + (*SchedulerV2DiscoverAPIResourcesRequest)(nil), // 8: scheduler.SchedulerV2DiscoverAPIResourcesRequest + (*SchedulerV2DiscoverAPIResourceRequest)(nil), // 9: scheduler.SchedulerV2DiscoverAPIResourceRequest + (*SchedulerV2KubernetesGetRequest)(nil), // 10: scheduler.SchedulerV2KubernetesGetRequest + (*SchedulerV2ListResponse)(nil), // 11: scheduler.SchedulerV2ListResponse + (*SchedulerV2StatusResponse)(nil), // 12: scheduler.SchedulerV2StatusResponse + (*SchedulerV2StatusObjectsResponse)(nil), // 13: scheduler.SchedulerV2StatusObjectsResponse + (*SchedulerV2InstallResponse)(nil), // 14: scheduler.SchedulerV2InstallResponse + (*SchedulerV2UpgradeResponse)(nil), // 15: scheduler.SchedulerV2UpgradeResponse + (*SchedulerV2UninstallResponse)(nil), // 16: scheduler.SchedulerV2UninstallResponse + (*SchedulerV2TestResponse)(nil), // 17: scheduler.SchedulerV2TestResponse + (*SchedulerV2DiscoverAPIResourcesResponse)(nil), // 18: scheduler.SchedulerV2DiscoverAPIResourcesResponse + (*SchedulerV2DiscoverAPIResourceResponse)(nil), // 19: scheduler.SchedulerV2DiscoverAPIResourceResponse + (*SchedulerV2KubernetesGetResponse)(nil), // 20: scheduler.SchedulerV2KubernetesGetResponse +} +var file_integrations_scheduler_v2_definition_definition_proto_depIdxs = []int32{ + 0, // 0: scheduler.SchedulerV2.InvalidateCache:input_type -> shared.Empty + 0, // 1: scheduler.SchedulerV2.Alive:input_type -> shared.Empty + 1, // 2: scheduler.SchedulerV2.List:input_type -> scheduler.SchedulerV2ListRequest + 2, // 3: scheduler.SchedulerV2.Status:input_type -> scheduler.SchedulerV2StatusRequest + 3, // 4: scheduler.SchedulerV2.StatusObjects:input_type -> scheduler.SchedulerV2StatusObjectsRequest + 4, // 5: scheduler.SchedulerV2.Install:input_type -> scheduler.SchedulerV2InstallRequest + 5, // 6: scheduler.SchedulerV2.Upgrade:input_type -> scheduler.SchedulerV2UpgradeRequest + 6, // 7: scheduler.SchedulerV2.Uninstall:input_type -> scheduler.SchedulerV2UninstallRequest + 7, // 8: scheduler.SchedulerV2.Test:input_type -> scheduler.SchedulerV2TestRequest + 8, // 9: scheduler.SchedulerV2.DiscoverAPIResources:input_type -> scheduler.SchedulerV2DiscoverAPIResourcesRequest + 9, // 10: scheduler.SchedulerV2.DiscoverAPIResource:input_type -> scheduler.SchedulerV2DiscoverAPIResourceRequest + 10, // 11: scheduler.SchedulerV2.KubernetesGet:input_type -> scheduler.SchedulerV2KubernetesGetRequest + 0, // 12: scheduler.SchedulerV2.InvalidateCache:output_type -> shared.Empty + 0, // 13: scheduler.SchedulerV2.Alive:output_type -> shared.Empty + 11, // 14: scheduler.SchedulerV2.List:output_type -> scheduler.SchedulerV2ListResponse + 12, // 15: scheduler.SchedulerV2.Status:output_type -> scheduler.SchedulerV2StatusResponse + 13, // 16: scheduler.SchedulerV2.StatusObjects:output_type -> scheduler.SchedulerV2StatusObjectsResponse + 14, // 17: scheduler.SchedulerV2.Install:output_type -> scheduler.SchedulerV2InstallResponse + 15, // 18: scheduler.SchedulerV2.Upgrade:output_type -> scheduler.SchedulerV2UpgradeResponse + 16, // 19: scheduler.SchedulerV2.Uninstall:output_type -> scheduler.SchedulerV2UninstallResponse + 17, // 20: scheduler.SchedulerV2.Test:output_type -> scheduler.SchedulerV2TestResponse + 18, // 21: scheduler.SchedulerV2.DiscoverAPIResources:output_type -> scheduler.SchedulerV2DiscoverAPIResourcesResponse + 19, // 22: scheduler.SchedulerV2.DiscoverAPIResource:output_type -> scheduler.SchedulerV2DiscoverAPIResourceResponse + 20, // 23: scheduler.SchedulerV2.KubernetesGet:output_type -> scheduler.SchedulerV2KubernetesGetResponse + 12, // [12:24] is the sub-list for method output_type + 0, // [0:12] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_integrations_scheduler_v2_definition_definition_proto_init() } +func file_integrations_scheduler_v2_definition_definition_proto_init() { + if File_integrations_scheduler_v2_definition_definition_proto != nil { + return + } + file_integrations_scheduler_v2_definition_helm_proto_init() + file_integrations_scheduler_v2_definition_kubernetes_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_integrations_scheduler_v2_definition_definition_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_integrations_scheduler_v2_definition_definition_proto_goTypes, + DependencyIndexes: file_integrations_scheduler_v2_definition_definition_proto_depIdxs, + }.Build() + File_integrations_scheduler_v2_definition_definition_proto = out.File + file_integrations_scheduler_v2_definition_definition_proto_rawDesc = nil + file_integrations_scheduler_v2_definition_definition_proto_goTypes = nil + file_integrations_scheduler_v2_definition_definition_proto_depIdxs = nil +} diff --git a/integrations/scheduler/v2/definition/definition.proto b/integrations/scheduler/v2/definition/definition.proto new file mode 100644 index 000000000..284d1bf51 --- /dev/null +++ b/integrations/scheduler/v2/definition/definition.proto @@ -0,0 +1,61 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +syntax = "proto3"; + +package scheduler; + +import "integrations/scheduler/v2/definition/helm.proto"; +import "integrations/scheduler/v2/definition/kubernetes.proto"; +import "integrations/shared/v1/definition/empty.proto"; + +option go_package = "github.com/arangodb/kube-arangodb/integrations/scheduler/v2/definition"; + +// Integration Service +service SchedulerV2 { + // Invalidates local ServiceDiscover cache + rpc InvalidateCache(shared.Empty) returns (shared.Empty); + // Ensure that Helm Client is able to communicate with Kubernetes + rpc Alive(shared.Empty) returns (shared.Empty); + + // Executes Helm List Action + rpc List(SchedulerV2ListRequest) returns (SchedulerV2ListResponse); + // Executes Helm Status Action + rpc Status(SchedulerV2StatusRequest) returns (SchedulerV2StatusResponse); + // Executes Helm Status Action and fetch Resources from Kubernetes API + rpc StatusObjects(SchedulerV2StatusObjectsRequest) returns (SchedulerV2StatusObjectsResponse); + // Executes Helm Install Action + rpc Install(SchedulerV2InstallRequest) returns (SchedulerV2InstallResponse); + // Executes Helm Upgrade Action + rpc Upgrade(SchedulerV2UpgradeRequest) returns (SchedulerV2UpgradeResponse); + // Executes Helm Uninstall Action + rpc Uninstall(SchedulerV2UninstallRequest) returns (SchedulerV2UninstallResponse); + // Executes Helm Test Action + rpc Test(SchedulerV2TestRequest) returns (SchedulerV2TestResponse); + + // Discovers Kubernetes API Resources for Group + rpc DiscoverAPIResources(SchedulerV2DiscoverAPIResourcesRequest) returns (SchedulerV2DiscoverAPIResourcesResponse); + // Discovers Kubernetes API Resources for Kind + rpc DiscoverAPIResource(SchedulerV2DiscoverAPIResourceRequest) returns (SchedulerV2DiscoverAPIResourceResponse); + + // Gets Kubernetes objects from the API + rpc KubernetesGet(SchedulerV2KubernetesGetRequest) returns (SchedulerV2KubernetesGetResponse); +} + diff --git a/integrations/scheduler/v2/definition/definition_grpc.pb.go b/integrations/scheduler/v2/definition/definition_grpc.pb.go new file mode 100644 index 000000000..75805fdf8 --- /dev/null +++ b/integrations/scheduler/v2/definition/definition_grpc.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.1 +// source: integrations/scheduler/v2/definition/definition.proto + +package definition + +import ( + context "context" + definition "github.com/arangodb/kube-arangodb/integrations/shared/v1/definition" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// SchedulerV2Client is the client API for SchedulerV2 service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SchedulerV2Client interface { + // Invalidates local ServiceDiscover cache + InvalidateCache(ctx context.Context, in *definition.Empty, opts ...grpc.CallOption) (*definition.Empty, error) + // Ensure that Helm Client is able to communicate with Kubernetes + Alive(ctx context.Context, in *definition.Empty, opts ...grpc.CallOption) (*definition.Empty, error) + // Executes Helm List Action + List(ctx context.Context, in *SchedulerV2ListRequest, opts ...grpc.CallOption) (*SchedulerV2ListResponse, error) + // Executes Helm Status Action + Status(ctx context.Context, in *SchedulerV2StatusRequest, opts ...grpc.CallOption) (*SchedulerV2StatusResponse, error) + // Executes Helm Status Action and fetch Resources from Kubernetes API + StatusObjects(ctx context.Context, in *SchedulerV2StatusObjectsRequest, opts ...grpc.CallOption) (*SchedulerV2StatusObjectsResponse, error) + // Executes Helm Install Action + Install(ctx context.Context, in *SchedulerV2InstallRequest, opts ...grpc.CallOption) (*SchedulerV2InstallResponse, error) + // Executes Helm Upgrade Action + Upgrade(ctx context.Context, in *SchedulerV2UpgradeRequest, opts ...grpc.CallOption) (*SchedulerV2UpgradeResponse, error) + // Executes Helm Uninstall Action + Uninstall(ctx context.Context, in *SchedulerV2UninstallRequest, opts ...grpc.CallOption) (*SchedulerV2UninstallResponse, error) + // Executes Helm Test Action + Test(ctx context.Context, in *SchedulerV2TestRequest, opts ...grpc.CallOption) (*SchedulerV2TestResponse, error) + // Discovers Kubernetes API Resources for Group + DiscoverAPIResources(ctx context.Context, in *SchedulerV2DiscoverAPIResourcesRequest, opts ...grpc.CallOption) (*SchedulerV2DiscoverAPIResourcesResponse, error) + // Discovers Kubernetes API Resources for Kind + DiscoverAPIResource(ctx context.Context, in *SchedulerV2DiscoverAPIResourceRequest, opts ...grpc.CallOption) (*SchedulerV2DiscoverAPIResourceResponse, error) + // Gets Kubernetes objects from the API + KubernetesGet(ctx context.Context, in *SchedulerV2KubernetesGetRequest, opts ...grpc.CallOption) (*SchedulerV2KubernetesGetResponse, error) +} + +type schedulerV2Client struct { + cc grpc.ClientConnInterface +} + +func NewSchedulerV2Client(cc grpc.ClientConnInterface) SchedulerV2Client { + return &schedulerV2Client{cc} +} + +func (c *schedulerV2Client) InvalidateCache(ctx context.Context, in *definition.Empty, opts ...grpc.CallOption) (*definition.Empty, error) { + out := new(definition.Empty) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/InvalidateCache", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) Alive(ctx context.Context, in *definition.Empty, opts ...grpc.CallOption) (*definition.Empty, error) { + out := new(definition.Empty) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/Alive", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) List(ctx context.Context, in *SchedulerV2ListRequest, opts ...grpc.CallOption) (*SchedulerV2ListResponse, error) { + out := new(SchedulerV2ListResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/List", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) Status(ctx context.Context, in *SchedulerV2StatusRequest, opts ...grpc.CallOption) (*SchedulerV2StatusResponse, error) { + out := new(SchedulerV2StatusResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/Status", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) StatusObjects(ctx context.Context, in *SchedulerV2StatusObjectsRequest, opts ...grpc.CallOption) (*SchedulerV2StatusObjectsResponse, error) { + out := new(SchedulerV2StatusObjectsResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/StatusObjects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) Install(ctx context.Context, in *SchedulerV2InstallRequest, opts ...grpc.CallOption) (*SchedulerV2InstallResponse, error) { + out := new(SchedulerV2InstallResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/Install", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) Upgrade(ctx context.Context, in *SchedulerV2UpgradeRequest, opts ...grpc.CallOption) (*SchedulerV2UpgradeResponse, error) { + out := new(SchedulerV2UpgradeResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/Upgrade", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) Uninstall(ctx context.Context, in *SchedulerV2UninstallRequest, opts ...grpc.CallOption) (*SchedulerV2UninstallResponse, error) { + out := new(SchedulerV2UninstallResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/Uninstall", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) Test(ctx context.Context, in *SchedulerV2TestRequest, opts ...grpc.CallOption) (*SchedulerV2TestResponse, error) { + out := new(SchedulerV2TestResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/Test", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) DiscoverAPIResources(ctx context.Context, in *SchedulerV2DiscoverAPIResourcesRequest, opts ...grpc.CallOption) (*SchedulerV2DiscoverAPIResourcesResponse, error) { + out := new(SchedulerV2DiscoverAPIResourcesResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/DiscoverAPIResources", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) DiscoverAPIResource(ctx context.Context, in *SchedulerV2DiscoverAPIResourceRequest, opts ...grpc.CallOption) (*SchedulerV2DiscoverAPIResourceResponse, error) { + out := new(SchedulerV2DiscoverAPIResourceResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/DiscoverAPIResource", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schedulerV2Client) KubernetesGet(ctx context.Context, in *SchedulerV2KubernetesGetRequest, opts ...grpc.CallOption) (*SchedulerV2KubernetesGetResponse, error) { + out := new(SchedulerV2KubernetesGetResponse) + err := c.cc.Invoke(ctx, "/scheduler.SchedulerV2/KubernetesGet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SchedulerV2Server is the server API for SchedulerV2 service. +// All implementations must embed UnimplementedSchedulerV2Server +// for forward compatibility +type SchedulerV2Server interface { + // Invalidates local ServiceDiscover cache + InvalidateCache(context.Context, *definition.Empty) (*definition.Empty, error) + // Ensure that Helm Client is able to communicate with Kubernetes + Alive(context.Context, *definition.Empty) (*definition.Empty, error) + // Executes Helm List Action + List(context.Context, *SchedulerV2ListRequest) (*SchedulerV2ListResponse, error) + // Executes Helm Status Action + Status(context.Context, *SchedulerV2StatusRequest) (*SchedulerV2StatusResponse, error) + // Executes Helm Status Action and fetch Resources from Kubernetes API + StatusObjects(context.Context, *SchedulerV2StatusObjectsRequest) (*SchedulerV2StatusObjectsResponse, error) + // Executes Helm Install Action + Install(context.Context, *SchedulerV2InstallRequest) (*SchedulerV2InstallResponse, error) + // Executes Helm Upgrade Action + Upgrade(context.Context, *SchedulerV2UpgradeRequest) (*SchedulerV2UpgradeResponse, error) + // Executes Helm Uninstall Action + Uninstall(context.Context, *SchedulerV2UninstallRequest) (*SchedulerV2UninstallResponse, error) + // Executes Helm Test Action + Test(context.Context, *SchedulerV2TestRequest) (*SchedulerV2TestResponse, error) + // Discovers Kubernetes API Resources for Group + DiscoverAPIResources(context.Context, *SchedulerV2DiscoverAPIResourcesRequest) (*SchedulerV2DiscoverAPIResourcesResponse, error) + // Discovers Kubernetes API Resources for Kind + DiscoverAPIResource(context.Context, *SchedulerV2DiscoverAPIResourceRequest) (*SchedulerV2DiscoverAPIResourceResponse, error) + // Gets Kubernetes objects from the API + KubernetesGet(context.Context, *SchedulerV2KubernetesGetRequest) (*SchedulerV2KubernetesGetResponse, error) + mustEmbedUnimplementedSchedulerV2Server() +} + +// UnimplementedSchedulerV2Server must be embedded to have forward compatible implementations. +type UnimplementedSchedulerV2Server struct { +} + +func (UnimplementedSchedulerV2Server) InvalidateCache(context.Context, *definition.Empty) (*definition.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidateCache not implemented") +} +func (UnimplementedSchedulerV2Server) Alive(context.Context, *definition.Empty) (*definition.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Alive not implemented") +} +func (UnimplementedSchedulerV2Server) List(context.Context, *SchedulerV2ListRequest) (*SchedulerV2ListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedSchedulerV2Server) Status(context.Context, *SchedulerV2StatusRequest) (*SchedulerV2StatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") +} +func (UnimplementedSchedulerV2Server) StatusObjects(context.Context, *SchedulerV2StatusObjectsRequest) (*SchedulerV2StatusObjectsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StatusObjects not implemented") +} +func (UnimplementedSchedulerV2Server) Install(context.Context, *SchedulerV2InstallRequest) (*SchedulerV2InstallResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Install not implemented") +} +func (UnimplementedSchedulerV2Server) Upgrade(context.Context, *SchedulerV2UpgradeRequest) (*SchedulerV2UpgradeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Upgrade not implemented") +} +func (UnimplementedSchedulerV2Server) Uninstall(context.Context, *SchedulerV2UninstallRequest) (*SchedulerV2UninstallResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Uninstall not implemented") +} +func (UnimplementedSchedulerV2Server) Test(context.Context, *SchedulerV2TestRequest) (*SchedulerV2TestResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Test not implemented") +} +func (UnimplementedSchedulerV2Server) DiscoverAPIResources(context.Context, *SchedulerV2DiscoverAPIResourcesRequest) (*SchedulerV2DiscoverAPIResourcesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DiscoverAPIResources not implemented") +} +func (UnimplementedSchedulerV2Server) DiscoverAPIResource(context.Context, *SchedulerV2DiscoverAPIResourceRequest) (*SchedulerV2DiscoverAPIResourceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DiscoverAPIResource not implemented") +} +func (UnimplementedSchedulerV2Server) KubernetesGet(context.Context, *SchedulerV2KubernetesGetRequest) (*SchedulerV2KubernetesGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KubernetesGet not implemented") +} +func (UnimplementedSchedulerV2Server) mustEmbedUnimplementedSchedulerV2Server() {} + +// UnsafeSchedulerV2Server may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SchedulerV2Server will +// result in compilation errors. +type UnsafeSchedulerV2Server interface { + mustEmbedUnimplementedSchedulerV2Server() +} + +func RegisterSchedulerV2Server(s grpc.ServiceRegistrar, srv SchedulerV2Server) { + s.RegisterService(&SchedulerV2_ServiceDesc, srv) +} + +func _SchedulerV2_InvalidateCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(definition.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).InvalidateCache(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/InvalidateCache", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).InvalidateCache(ctx, req.(*definition.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_Alive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(definition.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).Alive(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/Alive", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).Alive(ctx, req.(*definition.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2ListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).List(ctx, req.(*SchedulerV2ListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2StatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).Status(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/Status", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).Status(ctx, req.(*SchedulerV2StatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_StatusObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2StatusObjectsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).StatusObjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/StatusObjects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).StatusObjects(ctx, req.(*SchedulerV2StatusObjectsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_Install_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2InstallRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).Install(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/Install", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).Install(ctx, req.(*SchedulerV2InstallRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_Upgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2UpgradeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).Upgrade(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/Upgrade", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).Upgrade(ctx, req.(*SchedulerV2UpgradeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_Uninstall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2UninstallRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).Uninstall(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/Uninstall", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).Uninstall(ctx, req.(*SchedulerV2UninstallRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_Test_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2TestRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).Test(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/Test", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).Test(ctx, req.(*SchedulerV2TestRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_DiscoverAPIResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2DiscoverAPIResourcesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).DiscoverAPIResources(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/DiscoverAPIResources", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).DiscoverAPIResources(ctx, req.(*SchedulerV2DiscoverAPIResourcesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_DiscoverAPIResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2DiscoverAPIResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).DiscoverAPIResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/DiscoverAPIResource", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).DiscoverAPIResource(ctx, req.(*SchedulerV2DiscoverAPIResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchedulerV2_KubernetesGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SchedulerV2KubernetesGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchedulerV2Server).KubernetesGet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/scheduler.SchedulerV2/KubernetesGet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchedulerV2Server).KubernetesGet(ctx, req.(*SchedulerV2KubernetesGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SchedulerV2_ServiceDesc is the grpc.ServiceDesc for SchedulerV2 service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SchedulerV2_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "scheduler.SchedulerV2", + HandlerType: (*SchedulerV2Server)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "InvalidateCache", + Handler: _SchedulerV2_InvalidateCache_Handler, + }, + { + MethodName: "Alive", + Handler: _SchedulerV2_Alive_Handler, + }, + { + MethodName: "List", + Handler: _SchedulerV2_List_Handler, + }, + { + MethodName: "Status", + Handler: _SchedulerV2_Status_Handler, + }, + { + MethodName: "StatusObjects", + Handler: _SchedulerV2_StatusObjects_Handler, + }, + { + MethodName: "Install", + Handler: _SchedulerV2_Install_Handler, + }, + { + MethodName: "Upgrade", + Handler: _SchedulerV2_Upgrade_Handler, + }, + { + MethodName: "Uninstall", + Handler: _SchedulerV2_Uninstall_Handler, + }, + { + MethodName: "Test", + Handler: _SchedulerV2_Test_Handler, + }, + { + MethodName: "DiscoverAPIResources", + Handler: _SchedulerV2_DiscoverAPIResources_Handler, + }, + { + MethodName: "DiscoverAPIResource", + Handler: _SchedulerV2_DiscoverAPIResource_Handler, + }, + { + MethodName: "KubernetesGet", + Handler: _SchedulerV2_KubernetesGet_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "integrations/scheduler/v2/definition/definition.proto", +} diff --git a/integrations/scheduler/v2/definition/helm.pb.go b/integrations/scheduler/v2/definition/helm.pb.go new file mode 100644 index 000000000..195b36596 --- /dev/null +++ b/integrations/scheduler/v2/definition/helm.pb.go @@ -0,0 +1,1642 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.21.1 +// source: integrations/scheduler/v2/definition/helm.proto + +package definition + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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) +) + +// Request +type SchedulerV2ListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Request Options + Options *SchedulerV2ListRequestOptions `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` +} + +func (x *SchedulerV2ListRequest) Reset() { + *x = SchedulerV2ListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2ListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2ListRequest) ProtoMessage() {} + +func (x *SchedulerV2ListRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2ListRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2ListRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{0} +} + +func (x *SchedulerV2ListRequest) GetOptions() *SchedulerV2ListRequestOptions { + if x != nil { + return x.Options + } + return nil +} + +// Request Options +type SchedulerV2ListRequestOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Label selectors + Selectors map[string]string `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *SchedulerV2ListRequestOptions) Reset() { + *x = SchedulerV2ListRequestOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2ListRequestOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2ListRequestOptions) ProtoMessage() {} + +func (x *SchedulerV2ListRequestOptions) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2ListRequestOptions.ProtoReflect.Descriptor instead. +func (*SchedulerV2ListRequestOptions) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{1} +} + +func (x *SchedulerV2ListRequestOptions) GetSelectors() map[string]string { + if x != nil { + return x.Selectors + } + return nil +} + +// Response +type SchedulerV2ListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of the releases + Releases map[string]*SchedulerV2Release `protobuf:"bytes,1,rep,name=releases,proto3" json:"releases,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *SchedulerV2ListResponse) Reset() { + *x = SchedulerV2ListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2ListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2ListResponse) ProtoMessage() {} + +func (x *SchedulerV2ListResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2ListResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2ListResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{2} +} + +func (x *SchedulerV2ListResponse) GetReleases() map[string]*SchedulerV2Release { + if x != nil { + return x.Releases + } + return nil +} + +// Request +type SchedulerV2StatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Request Options + Options *SchedulerV2StatusRequestOptions `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` + // Helm Release Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *SchedulerV2StatusRequest) Reset() { + *x = SchedulerV2StatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2StatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2StatusRequest) ProtoMessage() {} + +func (x *SchedulerV2StatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2StatusRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2StatusRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{3} +} + +func (x *SchedulerV2StatusRequest) GetOptions() *SchedulerV2StatusRequestOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *SchedulerV2StatusRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Request Options +type SchedulerV2StatusRequestOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SchedulerV2StatusRequestOptions) Reset() { + *x = SchedulerV2StatusRequestOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2StatusRequestOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2StatusRequestOptions) ProtoMessage() {} + +func (x *SchedulerV2StatusRequestOptions) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2StatusRequestOptions.ProtoReflect.Descriptor instead. +func (*SchedulerV2StatusRequestOptions) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{4} +} + +// Response +type SchedulerV2StatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Helm Release Object + Release *SchedulerV2Release `protobuf:"bytes,1,opt,name=release,proto3,oneof" json:"release,omitempty"` +} + +func (x *SchedulerV2StatusResponse) Reset() { + *x = SchedulerV2StatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2StatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2StatusResponse) ProtoMessage() {} + +func (x *SchedulerV2StatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2StatusResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2StatusResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{5} +} + +func (x *SchedulerV2StatusResponse) GetRelease() *SchedulerV2Release { + if x != nil { + return x.Release + } + return nil +} + +// Request +type SchedulerV2StatusObjectsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Request Options + Options *SchedulerV2StatusRequestOptions `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` + // Helm Release Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *SchedulerV2StatusObjectsRequest) Reset() { + *x = SchedulerV2StatusObjectsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2StatusObjectsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2StatusObjectsRequest) ProtoMessage() {} + +func (x *SchedulerV2StatusObjectsRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2StatusObjectsRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2StatusObjectsRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{6} +} + +func (x *SchedulerV2StatusObjectsRequest) GetOptions() *SchedulerV2StatusRequestOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *SchedulerV2StatusObjectsRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Response +type SchedulerV2StatusObjectsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Helm Release Object + Release *SchedulerV2Release `protobuf:"bytes,1,opt,name=release,proto3,oneof" json:"release,omitempty"` + // List of the Kubernetes Objects + Objects []*SchedulerV2ReleaseInfoResourceObject `protobuf:"bytes,2,rep,name=objects,proto3" json:"objects,omitempty"` +} + +func (x *SchedulerV2StatusObjectsResponse) Reset() { + *x = SchedulerV2StatusObjectsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2StatusObjectsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2StatusObjectsResponse) ProtoMessage() {} + +func (x *SchedulerV2StatusObjectsResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2StatusObjectsResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2StatusObjectsResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{7} +} + +func (x *SchedulerV2StatusObjectsResponse) GetRelease() *SchedulerV2Release { + if x != nil { + return x.Release + } + return nil +} + +func (x *SchedulerV2StatusObjectsResponse) GetObjects() []*SchedulerV2ReleaseInfoResourceObject { + if x != nil { + return x.Objects + } + return nil +} + +// Request +type SchedulerV2InstallRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Request Options + Options *SchedulerV2InstallRequestOptions `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` + // Helm Release Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Helm Chart Tar GZip File Bytes + Chart []byte `protobuf:"bytes,3,opt,name=chart,proto3" json:"chart,omitempty"` + // Helm Chart Values bytes + Values []byte `protobuf:"bytes,4,opt,name=values,proto3" json:"values,omitempty"` +} + +func (x *SchedulerV2InstallRequest) Reset() { + *x = SchedulerV2InstallRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2InstallRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2InstallRequest) ProtoMessage() {} + +func (x *SchedulerV2InstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2InstallRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2InstallRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{8} +} + +func (x *SchedulerV2InstallRequest) GetOptions() *SchedulerV2InstallRequestOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *SchedulerV2InstallRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchedulerV2InstallRequest) GetChart() []byte { + if x != nil { + return x.Chart + } + return nil +} + +func (x *SchedulerV2InstallRequest) GetValues() []byte { + if x != nil { + return x.Values + } + return nil +} + +// Request Options +type SchedulerV2InstallRequestOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Release Labels + Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *SchedulerV2InstallRequestOptions) Reset() { + *x = SchedulerV2InstallRequestOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2InstallRequestOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2InstallRequestOptions) ProtoMessage() {} + +func (x *SchedulerV2InstallRequestOptions) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2InstallRequestOptions.ProtoReflect.Descriptor instead. +func (*SchedulerV2InstallRequestOptions) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{9} +} + +func (x *SchedulerV2InstallRequestOptions) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +// Response +type SchedulerV2InstallResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Helm Release Object + Release *SchedulerV2Release `protobuf:"bytes,1,opt,name=release,proto3,oneof" json:"release,omitempty"` +} + +func (x *SchedulerV2InstallResponse) Reset() { + *x = SchedulerV2InstallResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2InstallResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2InstallResponse) ProtoMessage() {} + +func (x *SchedulerV2InstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2InstallResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2InstallResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{10} +} + +func (x *SchedulerV2InstallResponse) GetRelease() *SchedulerV2Release { + if x != nil { + return x.Release + } + return nil +} + +// Request +type SchedulerV2UpgradeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Request Options + Options *SchedulerV2UpgradeRequestOptions `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` + // Helm Release Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Helm Chart Tar GZip File Bytes + Chart []byte `protobuf:"bytes,3,opt,name=chart,proto3" json:"chart,omitempty"` + // Helm Chart Values bytes + Values []byte `protobuf:"bytes,4,opt,name=values,proto3" json:"values,omitempty"` +} + +func (x *SchedulerV2UpgradeRequest) Reset() { + *x = SchedulerV2UpgradeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2UpgradeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2UpgradeRequest) ProtoMessage() {} + +func (x *SchedulerV2UpgradeRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2UpgradeRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2UpgradeRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{11} +} + +func (x *SchedulerV2UpgradeRequest) GetOptions() *SchedulerV2UpgradeRequestOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *SchedulerV2UpgradeRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchedulerV2UpgradeRequest) GetChart() []byte { + if x != nil { + return x.Chart + } + return nil +} + +func (x *SchedulerV2UpgradeRequest) GetValues() []byte { + if x != nil { + return x.Values + } + return nil +} + +// Request Options +type SchedulerV2UpgradeRequestOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Release Labels + Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *SchedulerV2UpgradeRequestOptions) Reset() { + *x = SchedulerV2UpgradeRequestOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2UpgradeRequestOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2UpgradeRequestOptions) ProtoMessage() {} + +func (x *SchedulerV2UpgradeRequestOptions) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2UpgradeRequestOptions.ProtoReflect.Descriptor instead. +func (*SchedulerV2UpgradeRequestOptions) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{12} +} + +func (x *SchedulerV2UpgradeRequestOptions) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +// Response +type SchedulerV2UpgradeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Helm Release Object Before + Before *SchedulerV2Release `protobuf:"bytes,1,opt,name=before,proto3,oneof" json:"before,omitempty"` + // Helm Release Object After + After *SchedulerV2Release `protobuf:"bytes,2,opt,name=after,proto3,oneof" json:"after,omitempty"` +} + +func (x *SchedulerV2UpgradeResponse) Reset() { + *x = SchedulerV2UpgradeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2UpgradeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2UpgradeResponse) ProtoMessage() {} + +func (x *SchedulerV2UpgradeResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2UpgradeResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2UpgradeResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{13} +} + +func (x *SchedulerV2UpgradeResponse) GetBefore() *SchedulerV2Release { + if x != nil { + return x.Before + } + return nil +} + +func (x *SchedulerV2UpgradeResponse) GetAfter() *SchedulerV2Release { + if x != nil { + return x.After + } + return nil +} + +// Request +type SchedulerV2UninstallRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Request Options + Options *SchedulerV2UninstallRequestOptions `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` + // Helm Release Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *SchedulerV2UninstallRequest) Reset() { + *x = SchedulerV2UninstallRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2UninstallRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2UninstallRequest) ProtoMessage() {} + +func (x *SchedulerV2UninstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2UninstallRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2UninstallRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{14} +} + +func (x *SchedulerV2UninstallRequest) GetOptions() *SchedulerV2UninstallRequestOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *SchedulerV2UninstallRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Request Options +type SchedulerV2UninstallRequestOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SchedulerV2UninstallRequestOptions) Reset() { + *x = SchedulerV2UninstallRequestOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2UninstallRequestOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2UninstallRequestOptions) ProtoMessage() {} + +func (x *SchedulerV2UninstallRequestOptions) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2UninstallRequestOptions.ProtoReflect.Descriptor instead. +func (*SchedulerV2UninstallRequestOptions) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{15} +} + +// Response +type SchedulerV2UninstallResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Uninstall info + Info string `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + // Helm Release Object + Release *SchedulerV2Release `protobuf:"bytes,2,opt,name=release,proto3,oneof" json:"release,omitempty"` +} + +func (x *SchedulerV2UninstallResponse) Reset() { + *x = SchedulerV2UninstallResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2UninstallResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2UninstallResponse) ProtoMessage() {} + +func (x *SchedulerV2UninstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2UninstallResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2UninstallResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{16} +} + +func (x *SchedulerV2UninstallResponse) GetInfo() string { + if x != nil { + return x.Info + } + return "" +} + +func (x *SchedulerV2UninstallResponse) GetRelease() *SchedulerV2Release { + if x != nil { + return x.Release + } + return nil +} + +// Request +type SchedulerV2TestRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Request Options + Options *SchedulerV2TestRequestOptions `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` + // Helm Release Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *SchedulerV2TestRequest) Reset() { + *x = SchedulerV2TestRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2TestRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2TestRequest) ProtoMessage() {} + +func (x *SchedulerV2TestRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2TestRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2TestRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{17} +} + +func (x *SchedulerV2TestRequest) GetOptions() *SchedulerV2TestRequestOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *SchedulerV2TestRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Request Options +type SchedulerV2TestRequestOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SchedulerV2TestRequestOptions) Reset() { + *x = SchedulerV2TestRequestOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2TestRequestOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2TestRequestOptions) ProtoMessage() {} + +func (x *SchedulerV2TestRequestOptions) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2TestRequestOptions.ProtoReflect.Descriptor instead. +func (*SchedulerV2TestRequestOptions) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{18} +} + +// Response +type SchedulerV2TestResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Helm Release Object + Release *SchedulerV2Release `protobuf:"bytes,1,opt,name=release,proto3,oneof" json:"release,omitempty"` +} + +func (x *SchedulerV2TestResponse) Reset() { + *x = SchedulerV2TestResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2TestResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2TestResponse) ProtoMessage() {} + +func (x *SchedulerV2TestResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_helm_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2TestResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2TestResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP(), []int{19} +} + +func (x *SchedulerV2TestResponse) GetRelease() *SchedulerV2Release { + if x != nil { + return x.Release + } + return nil +} + +var File_integrations_scheduler_v2_definition_helm_proto protoreflect.FileDescriptor + +var file_integrations_scheduler_v2_definition_helm_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x68, 0x65, 0x6c, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x1a, 0x32, 0x69, 0x6e, + 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x6d, 0x0a, 0x16, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x07, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x56, 0x32, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0xb4, 0x01, 0x0a, 0x1d, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x55, 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x73, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x1a, 0x3c, 0x0a, 0x0e, 0x53, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc3, 0x01, 0x0a, 0x17, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, + 0x1a, 0x5a, 0x0a, 0x0d, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x85, 0x01, 0x0a, + 0x18, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x65, 0x0a, 0x19, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, + 0x65, 0x61, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x88, + 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x8c, + 0x01, 0x0a, 0x1f, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x49, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, + 0x00, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, + 0x0a, 0x20, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x88, 0x01, 0x01, + 0x12, 0x49, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, + 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xb5, 0x01, 0x0a, 0x19, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x61, 0x72, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x61, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0xae, 0x01, 0x0a, 0x20, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4f, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x66, 0x0a, 0x1a, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, + 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, + 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0xb5, 0x01, 0x0a, 0x19, 0x53, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, + 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, + 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x61, 0x72, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x61, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0xae, 0x01, 0x0a, 0x20, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, + 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4f, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, 0x70, 0x67, + 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x1a, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, + 0x32, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x3a, 0x0a, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x48, + 0x00, 0x52, 0x06, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x88, 0x01, 0x01, 0x12, 0x38, 0x0a, 0x05, + 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x48, 0x01, 0x52, 0x05, 0x61, 0x66, + 0x74, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, + 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x22, 0x8b, 0x01, 0x0a, 0x1b, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, 0x6e, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x56, 0x32, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, + 0x08, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x24, 0x0a, 0x22, 0x53, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, 0x6e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0x7c, 0x0a, 0x1c, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x55, 0x6e, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, + 0x6e, 0x66, 0x6f, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, + 0x61, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x88, 0x01, + 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x22, 0x81, 0x01, + 0x0a, 0x16, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x54, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, + 0x32, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, + 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x63, 0x0a, 0x17, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, + 0x32, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, + 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x07, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, + 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x61, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x2f, 0x6b, + 0x75, 0x62, 0x65, 0x2d, 0x61, 0x72, 0x61, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x2f, 0x69, 0x6e, 0x74, + 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_integrations_scheduler_v2_definition_helm_proto_rawDescOnce sync.Once + file_integrations_scheduler_v2_definition_helm_proto_rawDescData = file_integrations_scheduler_v2_definition_helm_proto_rawDesc +) + +func file_integrations_scheduler_v2_definition_helm_proto_rawDescGZIP() []byte { + file_integrations_scheduler_v2_definition_helm_proto_rawDescOnce.Do(func() { + file_integrations_scheduler_v2_definition_helm_proto_rawDescData = protoimpl.X.CompressGZIP(file_integrations_scheduler_v2_definition_helm_proto_rawDescData) + }) + return file_integrations_scheduler_v2_definition_helm_proto_rawDescData +} + +var file_integrations_scheduler_v2_definition_helm_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_integrations_scheduler_v2_definition_helm_proto_goTypes = []interface{}{ + (*SchedulerV2ListRequest)(nil), // 0: scheduler.SchedulerV2ListRequest + (*SchedulerV2ListRequestOptions)(nil), // 1: scheduler.SchedulerV2ListRequestOptions + (*SchedulerV2ListResponse)(nil), // 2: scheduler.SchedulerV2ListResponse + (*SchedulerV2StatusRequest)(nil), // 3: scheduler.SchedulerV2StatusRequest + (*SchedulerV2StatusRequestOptions)(nil), // 4: scheduler.SchedulerV2StatusRequestOptions + (*SchedulerV2StatusResponse)(nil), // 5: scheduler.SchedulerV2StatusResponse + (*SchedulerV2StatusObjectsRequest)(nil), // 6: scheduler.SchedulerV2StatusObjectsRequest + (*SchedulerV2StatusObjectsResponse)(nil), // 7: scheduler.SchedulerV2StatusObjectsResponse + (*SchedulerV2InstallRequest)(nil), // 8: scheduler.SchedulerV2InstallRequest + (*SchedulerV2InstallRequestOptions)(nil), // 9: scheduler.SchedulerV2InstallRequestOptions + (*SchedulerV2InstallResponse)(nil), // 10: scheduler.SchedulerV2InstallResponse + (*SchedulerV2UpgradeRequest)(nil), // 11: scheduler.SchedulerV2UpgradeRequest + (*SchedulerV2UpgradeRequestOptions)(nil), // 12: scheduler.SchedulerV2UpgradeRequestOptions + (*SchedulerV2UpgradeResponse)(nil), // 13: scheduler.SchedulerV2UpgradeResponse + (*SchedulerV2UninstallRequest)(nil), // 14: scheduler.SchedulerV2UninstallRequest + (*SchedulerV2UninstallRequestOptions)(nil), // 15: scheduler.SchedulerV2UninstallRequestOptions + (*SchedulerV2UninstallResponse)(nil), // 16: scheduler.SchedulerV2UninstallResponse + (*SchedulerV2TestRequest)(nil), // 17: scheduler.SchedulerV2TestRequest + (*SchedulerV2TestRequestOptions)(nil), // 18: scheduler.SchedulerV2TestRequestOptions + (*SchedulerV2TestResponse)(nil), // 19: scheduler.SchedulerV2TestResponse + nil, // 20: scheduler.SchedulerV2ListRequestOptions.SelectorsEntry + nil, // 21: scheduler.SchedulerV2ListResponse.ReleasesEntry + nil, // 22: scheduler.SchedulerV2InstallRequestOptions.LabelsEntry + nil, // 23: scheduler.SchedulerV2UpgradeRequestOptions.LabelsEntry + (*SchedulerV2Release)(nil), // 24: scheduler.SchedulerV2Release + (*SchedulerV2ReleaseInfoResourceObject)(nil), // 25: scheduler.SchedulerV2ReleaseInfoResourceObject +} +var file_integrations_scheduler_v2_definition_helm_proto_depIdxs = []int32{ + 1, // 0: scheduler.SchedulerV2ListRequest.options:type_name -> scheduler.SchedulerV2ListRequestOptions + 20, // 1: scheduler.SchedulerV2ListRequestOptions.selectors:type_name -> scheduler.SchedulerV2ListRequestOptions.SelectorsEntry + 21, // 2: scheduler.SchedulerV2ListResponse.releases:type_name -> scheduler.SchedulerV2ListResponse.ReleasesEntry + 4, // 3: scheduler.SchedulerV2StatusRequest.options:type_name -> scheduler.SchedulerV2StatusRequestOptions + 24, // 4: scheduler.SchedulerV2StatusResponse.release:type_name -> scheduler.SchedulerV2Release + 4, // 5: scheduler.SchedulerV2StatusObjectsRequest.options:type_name -> scheduler.SchedulerV2StatusRequestOptions + 24, // 6: scheduler.SchedulerV2StatusObjectsResponse.release:type_name -> scheduler.SchedulerV2Release + 25, // 7: scheduler.SchedulerV2StatusObjectsResponse.objects:type_name -> scheduler.SchedulerV2ReleaseInfoResourceObject + 9, // 8: scheduler.SchedulerV2InstallRequest.options:type_name -> scheduler.SchedulerV2InstallRequestOptions + 22, // 9: scheduler.SchedulerV2InstallRequestOptions.labels:type_name -> scheduler.SchedulerV2InstallRequestOptions.LabelsEntry + 24, // 10: scheduler.SchedulerV2InstallResponse.release:type_name -> scheduler.SchedulerV2Release + 12, // 11: scheduler.SchedulerV2UpgradeRequest.options:type_name -> scheduler.SchedulerV2UpgradeRequestOptions + 23, // 12: scheduler.SchedulerV2UpgradeRequestOptions.labels:type_name -> scheduler.SchedulerV2UpgradeRequestOptions.LabelsEntry + 24, // 13: scheduler.SchedulerV2UpgradeResponse.before:type_name -> scheduler.SchedulerV2Release + 24, // 14: scheduler.SchedulerV2UpgradeResponse.after:type_name -> scheduler.SchedulerV2Release + 15, // 15: scheduler.SchedulerV2UninstallRequest.options:type_name -> scheduler.SchedulerV2UninstallRequestOptions + 24, // 16: scheduler.SchedulerV2UninstallResponse.release:type_name -> scheduler.SchedulerV2Release + 18, // 17: scheduler.SchedulerV2TestRequest.options:type_name -> scheduler.SchedulerV2TestRequestOptions + 24, // 18: scheduler.SchedulerV2TestResponse.release:type_name -> scheduler.SchedulerV2Release + 24, // 19: scheduler.SchedulerV2ListResponse.ReleasesEntry.value:type_name -> scheduler.SchedulerV2Release + 20, // [20:20] is the sub-list for method output_type + 20, // [20:20] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name +} + +func init() { file_integrations_scheduler_v2_definition_helm_proto_init() } +func file_integrations_scheduler_v2_definition_helm_proto_init() { + if File_integrations_scheduler_v2_definition_helm_proto != nil { + return + } + file_integrations_scheduler_v2_definition_release_proto_init() + if !protoimpl.UnsafeEnabled { + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2ListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2ListRequestOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2ListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2StatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2StatusRequestOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2StatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2StatusObjectsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2StatusObjectsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2InstallRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2InstallRequestOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2InstallResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2UpgradeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2UpgradeRequestOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2UpgradeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2UninstallRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2UninstallRequestOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2UninstallResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2TestRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2TestRequestOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2TestResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[7].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[8].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[10].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[11].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[13].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[14].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[16].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[17].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_helm_proto_msgTypes[19].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_integrations_scheduler_v2_definition_helm_proto_rawDesc, + NumEnums: 0, + NumMessages: 24, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_integrations_scheduler_v2_definition_helm_proto_goTypes, + DependencyIndexes: file_integrations_scheduler_v2_definition_helm_proto_depIdxs, + MessageInfos: file_integrations_scheduler_v2_definition_helm_proto_msgTypes, + }.Build() + File_integrations_scheduler_v2_definition_helm_proto = out.File + file_integrations_scheduler_v2_definition_helm_proto_rawDesc = nil + file_integrations_scheduler_v2_definition_helm_proto_goTypes = nil + file_integrations_scheduler_v2_definition_helm_proto_depIdxs = nil +} diff --git a/integrations/scheduler/v2/definition/helm.proto b/integrations/scheduler/v2/definition/helm.proto new file mode 100644 index 000000000..3b1aad2dc --- /dev/null +++ b/integrations/scheduler/v2/definition/helm.proto @@ -0,0 +1,186 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +syntax = "proto3"; + +package scheduler; + +import "integrations/scheduler/v2/definition/release.proto"; + +option go_package = "github.com/arangodb/kube-arangodb/integrations/scheduler/v2/definition"; + +// Request +message SchedulerV2ListRequest { + // Request Options + optional SchedulerV2ListRequestOptions options = 1; +} + +// Request Options +message SchedulerV2ListRequestOptions { + // Label selectors + map selectors = 1; +} + +// Response +message SchedulerV2ListResponse { + // List of the releases + map releases = 1; +} + +// Request +message SchedulerV2StatusRequest { + // Request Options + optional SchedulerV2StatusRequestOptions options = 1; + + // Helm Release Name + string name = 2; +} + +// Request Options +message SchedulerV2StatusRequestOptions { +} + +// Response +message SchedulerV2StatusResponse { + // Helm Release Object + optional SchedulerV2Release release = 1; +} + + +// Request +message SchedulerV2StatusObjectsRequest { + // Request Options + optional SchedulerV2StatusRequestOptions options = 1; + + // Helm Release Name + string name = 2; +} + +// Response +message SchedulerV2StatusObjectsResponse { + // Helm Release Object + optional SchedulerV2Release release = 1; + + // List of the Kubernetes Objects + repeated SchedulerV2ReleaseInfoResourceObject objects = 2; +} + + +// Request +message SchedulerV2InstallRequest { + // Request Options + optional SchedulerV2InstallRequestOptions options = 1; + + // Helm Release Name + string name = 2; + + // Helm Chart Tar GZip File Bytes + bytes chart = 3; + + // Helm Chart Values bytes + bytes values = 4; +} + +// Request Options +message SchedulerV2InstallRequestOptions { + // Release Labels + map labels = 1; +} + +// Response +message SchedulerV2InstallResponse { + // Helm Release Object + optional SchedulerV2Release release = 1; +} + + +// Request +message SchedulerV2UpgradeRequest { + // Request Options + optional SchedulerV2UpgradeRequestOptions options = 1; + + // Helm Release Name + string name = 2; + + // Helm Chart Tar GZip File Bytes + bytes chart = 3; + + // Helm Chart Values bytes + bytes values = 4; +} + +// Request Options +message SchedulerV2UpgradeRequestOptions { + // Release Labels + map labels = 1; +} + +// Response +message SchedulerV2UpgradeResponse { + // Helm Release Object Before + optional SchedulerV2Release before = 1; + + + // Helm Release Object After + optional SchedulerV2Release after = 2; +} + + +// Request +message SchedulerV2UninstallRequest { + // Request Options + optional SchedulerV2UninstallRequestOptions options = 1; + + // Helm Release Name + string name = 2; +} + +// Request Options +message SchedulerV2UninstallRequestOptions { +} + +// Response +message SchedulerV2UninstallResponse { + // Uninstall info + string info = 1; + + // Helm Release Object + optional SchedulerV2Release release = 2; +} + + +// Request +message SchedulerV2TestRequest { + // Request Options + optional SchedulerV2TestRequestOptions options = 1; + + // Helm Release Name + string name = 2; +} + +// Request Options +message SchedulerV2TestRequestOptions { +} + +// Response +message SchedulerV2TestResponse { + // Helm Release Object + optional SchedulerV2Release release = 1; +} \ No newline at end of file diff --git a/integrations/scheduler/v2/definition/helpers.go b/integrations/scheduler/v2/definition/helpers.go new file mode 100644 index 000000000..4bac86284 --- /dev/null +++ b/integrations/scheduler/v2/definition/helpers.go @@ -0,0 +1,178 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +package definition + +import ( + "helm.sh/helm/v3/pkg/action" + "helm.sh/helm/v3/pkg/release" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/selection" + + "github.com/arangodb/kube-arangodb/pkg/util" + "github.com/arangodb/kube-arangodb/pkg/util/k8sutil/helm" +) + +func (i SchedulerV2ReleaseInfoStatus) AsHelmStatus() release.Status { + switch i { + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED: + return release.StatusUnknown + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED: + return release.StatusDeployed + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED: + return release.StatusUninstalled + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED: + return release.StatusSuperseded + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED: + return release.StatusFailed + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING: + return release.StatusUninstalling + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL: + return release.StatusPendingInstall + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE: + return release.StatusPendingUpgrade + case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK: + return release.StatusPendingRollback + default: + return release.StatusUnknown + } +} + +func FromHelmStatus(in release.Status) SchedulerV2ReleaseInfoStatus { + switch in { + case release.StatusUnknown: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED + case release.StatusDeployed: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED + case release.StatusUninstalled: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED + case release.StatusSuperseded: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED + case release.StatusFailed: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED + case release.StatusUninstalling: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING + case release.StatusPendingInstall: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL + case release.StatusPendingUpgrade: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE + case release.StatusPendingRollback: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK + default: + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED + } +} + +func (i *SchedulerV2InstallRequestOptions) Options() []util.Mod[action.Install] { + if i == nil { + return nil + } + + var opts []util.Mod[action.Install] + + if v := i.GetLabels(); len(v) > 0 { + opts = append(opts, func(in *action.Install) { + in.Labels = v + }) + } + + return opts +} + +func (i *SchedulerV2UpgradeRequestOptions) Options() []util.Mod[action.Upgrade] { + if i == nil { + return nil + } + + var opts []util.Mod[action.Upgrade] + + if v := i.GetLabels(); len(v) > 0 { + opts = append(opts, func(in *action.Upgrade) { + in.Labels = v + }) + } + + return opts +} + +func (i *SchedulerV2ListRequestOptions) Options() []util.Mod[action.List] { + if i == nil { + return nil + } + + var opts []util.Mod[action.List] + + if v := i.GetSelectors(); len(v) > 0 { + opts = append(opts, func(in *action.List) { + s := labels.NewSelector() + + for k, v := range v { + if r, err := labels.NewRequirement(k, selection.DoubleEquals, []string{v}); err == nil && r != nil { + s = s.Add(*r) + } + } + + in.Selector = s.String() + }) + } + + return opts +} + +func (i *SchedulerV2UninstallRequestOptions) Options() []util.Mod[action.Uninstall] { + if i == nil { + return nil + } + + var opts []util.Mod[action.Uninstall] + + return opts +} + +func (i *SchedulerV2TestRequestOptions) Options() []util.Mod[action.ReleaseTesting] { + if i == nil { + return nil + } + + var opts []util.Mod[action.ReleaseTesting] + + return opts +} + +func (i *SchedulerV2GVK) AsHelmResource() schema.GroupVersionKind { + return schema.GroupVersionKind{ + Group: i.GetGroup(), + Version: i.GetVersion(), + Kind: i.GetKind(), + } +} + +func (i *SchedulerV2ReleaseInfoResource) AsHelmResource() helm.Resource { + if i == nil { + return helm.Resource{} + } + + return helm.Resource{ + GroupVersionKind: i.GetGvk().AsHelmResource(), + Name: i.GetName(), + Namespace: i.GetNamespace(), + } +} diff --git a/integrations/scheduler/v2/definition/kubernetes.pb.go b/integrations/scheduler/v2/definition/kubernetes.pb.go new file mode 100644 index 000000000..c1bee3050 --- /dev/null +++ b/integrations/scheduler/v2/definition/kubernetes.pb.go @@ -0,0 +1,721 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.21.1 +// source: integrations/scheduler/v2/definition/kubernetes.proto + +package definition + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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) +) + +// Request +type SchedulerV2DiscoverAPIResourcesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Group + Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // Kubernetes API Version + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *SchedulerV2DiscoverAPIResourcesRequest) Reset() { + *x = SchedulerV2DiscoverAPIResourcesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2DiscoverAPIResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2DiscoverAPIResourcesRequest) ProtoMessage() {} + +func (x *SchedulerV2DiscoverAPIResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2DiscoverAPIResourcesRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2DiscoverAPIResourcesRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP(), []int{0} +} + +func (x *SchedulerV2DiscoverAPIResourcesRequest) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResourcesRequest) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +// Response +type SchedulerV2DiscoverAPIResourcesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Resources + Resources []*SchedulerV2DiscoverAPIResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` +} + +func (x *SchedulerV2DiscoverAPIResourcesResponse) Reset() { + *x = SchedulerV2DiscoverAPIResourcesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2DiscoverAPIResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2DiscoverAPIResourcesResponse) ProtoMessage() {} + +func (x *SchedulerV2DiscoverAPIResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2DiscoverAPIResourcesResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2DiscoverAPIResourcesResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP(), []int{1} +} + +func (x *SchedulerV2DiscoverAPIResourcesResponse) GetResources() []*SchedulerV2DiscoverAPIResource { + if x != nil { + return x.Resources + } + return nil +} + +// Request +type SchedulerV2DiscoverAPIResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Group + Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // Kubernetes API Version + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // Kubernetes API Kind + Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` +} + +func (x *SchedulerV2DiscoverAPIResourceRequest) Reset() { + *x = SchedulerV2DiscoverAPIResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2DiscoverAPIResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2DiscoverAPIResourceRequest) ProtoMessage() {} + +func (x *SchedulerV2DiscoverAPIResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2DiscoverAPIResourceRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2DiscoverAPIResourceRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP(), []int{2} +} + +func (x *SchedulerV2DiscoverAPIResourceRequest) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResourceRequest) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResourceRequest) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +// Response +type SchedulerV2DiscoverAPIResourceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Resource + Resource *SchedulerV2DiscoverAPIResource `protobuf:"bytes,1,opt,name=resource,proto3,oneof" json:"resource,omitempty"` +} + +func (x *SchedulerV2DiscoverAPIResourceResponse) Reset() { + *x = SchedulerV2DiscoverAPIResourceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2DiscoverAPIResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2DiscoverAPIResourceResponse) ProtoMessage() {} + +func (x *SchedulerV2DiscoverAPIResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2DiscoverAPIResourceResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2DiscoverAPIResourceResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP(), []int{3} +} + +func (x *SchedulerV2DiscoverAPIResourceResponse) GetResource() *SchedulerV2DiscoverAPIResource { + if x != nil { + return x.Resource + } + return nil +} + +// Kubernetes API Resource Definition +type SchedulerV2DiscoverAPIResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Resource PluralName + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Kubernetes API Resource SingularName + SingularName string `protobuf:"bytes,2,opt,name=singular_name,json=singularName,proto3" json:"singular_name,omitempty"` + // Kubernetes API Resource Namespaced flag + Namespaced bool `protobuf:"varint,3,opt,name=namespaced,proto3" json:"namespaced,omitempty"` + // Kubernetes API Group + Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` + // Kubernetes API Version + Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` + // Kubernetes API Kind + Kind string `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"` + // Kubernetes API Resource Verbs + Verbs []string `protobuf:"bytes,7,rep,name=verbs,proto3" json:"verbs,omitempty"` + // Kubernetes API Resource ShortNames + ShortNames []string `protobuf:"bytes,8,rep,name=short_names,json=shortNames,proto3" json:"short_names,omitempty"` + // Kubernetes API Resource Categories + Categories []string `protobuf:"bytes,9,rep,name=categories,proto3" json:"categories,omitempty"` + // Kubernetes API Resource StorageVersionHash + StorageVersionHash string `protobuf:"bytes,10,opt,name=storage_version_hash,json=storageVersionHash,proto3" json:"storage_version_hash,omitempty"` +} + +func (x *SchedulerV2DiscoverAPIResource) Reset() { + *x = SchedulerV2DiscoverAPIResource{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2DiscoverAPIResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2DiscoverAPIResource) ProtoMessage() {} + +func (x *SchedulerV2DiscoverAPIResource) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2DiscoverAPIResource.ProtoReflect.Descriptor instead. +func (*SchedulerV2DiscoverAPIResource) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP(), []int{4} +} + +func (x *SchedulerV2DiscoverAPIResource) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResource) GetSingularName() string { + if x != nil { + return x.SingularName + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResource) GetNamespaced() bool { + if x != nil { + return x.Namespaced + } + return false +} + +func (x *SchedulerV2DiscoverAPIResource) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResource) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResource) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *SchedulerV2DiscoverAPIResource) GetVerbs() []string { + if x != nil { + return x.Verbs + } + return nil +} + +func (x *SchedulerV2DiscoverAPIResource) GetShortNames() []string { + if x != nil { + return x.ShortNames + } + return nil +} + +func (x *SchedulerV2DiscoverAPIResource) GetCategories() []string { + if x != nil { + return x.Categories + } + return nil +} + +func (x *SchedulerV2DiscoverAPIResource) GetStorageVersionHash() string { + if x != nil { + return x.StorageVersionHash + } + return "" +} + +// Request +type SchedulerV2KubernetesGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Resources + Resources []*SchedulerV2ReleaseInfoResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` +} + +func (x *SchedulerV2KubernetesGetRequest) Reset() { + *x = SchedulerV2KubernetesGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2KubernetesGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2KubernetesGetRequest) ProtoMessage() {} + +func (x *SchedulerV2KubernetesGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2KubernetesGetRequest.ProtoReflect.Descriptor instead. +func (*SchedulerV2KubernetesGetRequest) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP(), []int{5} +} + +func (x *SchedulerV2KubernetesGetRequest) GetResources() []*SchedulerV2ReleaseInfoResource { + if x != nil { + return x.Resources + } + return nil +} + +// Response +type SchedulerV2KubernetesGetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Objects + Objects []*SchedulerV2ReleaseInfoResourceObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` +} + +func (x *SchedulerV2KubernetesGetResponse) Reset() { + *x = SchedulerV2KubernetesGetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2KubernetesGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2KubernetesGetResponse) ProtoMessage() {} + +func (x *SchedulerV2KubernetesGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2KubernetesGetResponse.ProtoReflect.Descriptor instead. +func (*SchedulerV2KubernetesGetResponse) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP(), []int{6} +} + +func (x *SchedulerV2KubernetesGetResponse) GetObjects() []*SchedulerV2ReleaseInfoResourceObject { + if x != nil { + return x.Objects + } + return nil +} + +var File_integrations_scheduler_v2_definition_kubernetes_proto protoreflect.FileDescriptor + +var file_integrations_scheduler_v2_definition_kubernetes_proto_rawDesc = []byte{ + 0x0a, 0x35, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x1a, 0x32, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x26, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x22, 0x72, 0x0a, 0x27, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x09, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, + 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x25, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, + 0x64, 0x22, 0x81, 0x01, 0x0a, 0x26, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, + 0x32, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x08, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, + 0x49, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xc6, 0x02, 0x0a, 0x1e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x56, 0x32, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x41, 0x50, 0x49, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x73, 0x69, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x69, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x64, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x65, 0x72, 0x62, 0x73, 0x18, 0x07, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x65, 0x72, 0x62, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, + 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0a, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, + 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x68, 0x61, 0x73, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x73, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x22, 0x6a, + 0x0a, 0x1f, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4b, 0x75, 0x62, + 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x47, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, + 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x6d, 0x0a, 0x20, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, + 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, + 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2f, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x61, 0x6e, 0x67, 0x6f, 0x64, 0x62, + 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x2d, 0x61, 0x72, 0x61, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescOnce sync.Once + file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescData = file_integrations_scheduler_v2_definition_kubernetes_proto_rawDesc +) + +func file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescGZIP() []byte { + file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescOnce.Do(func() { + file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescData = protoimpl.X.CompressGZIP(file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescData) + }) + return file_integrations_scheduler_v2_definition_kubernetes_proto_rawDescData +} + +var file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_integrations_scheduler_v2_definition_kubernetes_proto_goTypes = []interface{}{ + (*SchedulerV2DiscoverAPIResourcesRequest)(nil), // 0: scheduler.SchedulerV2DiscoverAPIResourcesRequest + (*SchedulerV2DiscoverAPIResourcesResponse)(nil), // 1: scheduler.SchedulerV2DiscoverAPIResourcesResponse + (*SchedulerV2DiscoverAPIResourceRequest)(nil), // 2: scheduler.SchedulerV2DiscoverAPIResourceRequest + (*SchedulerV2DiscoverAPIResourceResponse)(nil), // 3: scheduler.SchedulerV2DiscoverAPIResourceResponse + (*SchedulerV2DiscoverAPIResource)(nil), // 4: scheduler.SchedulerV2DiscoverAPIResource + (*SchedulerV2KubernetesGetRequest)(nil), // 5: scheduler.SchedulerV2KubernetesGetRequest + (*SchedulerV2KubernetesGetResponse)(nil), // 6: scheduler.SchedulerV2KubernetesGetResponse + (*SchedulerV2ReleaseInfoResource)(nil), // 7: scheduler.SchedulerV2ReleaseInfoResource + (*SchedulerV2ReleaseInfoResourceObject)(nil), // 8: scheduler.SchedulerV2ReleaseInfoResourceObject +} +var file_integrations_scheduler_v2_definition_kubernetes_proto_depIdxs = []int32{ + 4, // 0: scheduler.SchedulerV2DiscoverAPIResourcesResponse.resources:type_name -> scheduler.SchedulerV2DiscoverAPIResource + 4, // 1: scheduler.SchedulerV2DiscoverAPIResourceResponse.resource:type_name -> scheduler.SchedulerV2DiscoverAPIResource + 7, // 2: scheduler.SchedulerV2KubernetesGetRequest.resources:type_name -> scheduler.SchedulerV2ReleaseInfoResource + 8, // 3: scheduler.SchedulerV2KubernetesGetResponse.objects:type_name -> scheduler.SchedulerV2ReleaseInfoResourceObject + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] 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_integrations_scheduler_v2_definition_kubernetes_proto_init() } +func file_integrations_scheduler_v2_definition_kubernetes_proto_init() { + if File_integrations_scheduler_v2_definition_kubernetes_proto != nil { + return + } + file_integrations_scheduler_v2_definition_release_proto_init() + if !protoimpl.UnsafeEnabled { + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2DiscoverAPIResourcesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2DiscoverAPIResourcesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2DiscoverAPIResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2DiscoverAPIResourceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2DiscoverAPIResource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2KubernetesGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2KubernetesGetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes[3].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_integrations_scheduler_v2_definition_kubernetes_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_integrations_scheduler_v2_definition_kubernetes_proto_goTypes, + DependencyIndexes: file_integrations_scheduler_v2_definition_kubernetes_proto_depIdxs, + MessageInfos: file_integrations_scheduler_v2_definition_kubernetes_proto_msgTypes, + }.Build() + File_integrations_scheduler_v2_definition_kubernetes_proto = out.File + file_integrations_scheduler_v2_definition_kubernetes_proto_rawDesc = nil + file_integrations_scheduler_v2_definition_kubernetes_proto_goTypes = nil + file_integrations_scheduler_v2_definition_kubernetes_proto_depIdxs = nil +} diff --git a/integrations/scheduler/v2/definition/kubernetes.proto b/integrations/scheduler/v2/definition/kubernetes.proto new file mode 100644 index 000000000..34248f77e --- /dev/null +++ b/integrations/scheduler/v2/definition/kubernetes.proto @@ -0,0 +1,93 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +syntax = "proto3"; + +package scheduler; + +import "integrations/scheduler/v2/definition/release.proto"; + +option go_package = "github.com/arangodb/kube-arangodb/integrations/scheduler/v2/definition"; + +// Request +message SchedulerV2DiscoverAPIResourcesRequest { + // Kubernetes API Group + string group = 1; + // Kubernetes API Version + string version = 2; +} + +// Response +message SchedulerV2DiscoverAPIResourcesResponse { + // Kubernetes API Resources + repeated SchedulerV2DiscoverAPIResource resources = 1; +} + +// Request +message SchedulerV2DiscoverAPIResourceRequest { + // Kubernetes API Group + string group = 1; + // Kubernetes API Version + string version = 2; + // Kubernetes API Kind + string kind = 3; +} + +// Response +message SchedulerV2DiscoverAPIResourceResponse { + // Kubernetes API Resource + optional SchedulerV2DiscoverAPIResource resource = 1; +} + +// Kubernetes API Resource Definition +message SchedulerV2DiscoverAPIResource { + // Kubernetes API Resource PluralName + string name = 1; + // Kubernetes API Resource SingularName + string singular_name = 2; + // Kubernetes API Resource Namespaced flag + bool namespaced = 3; + // Kubernetes API Group + string group = 4; + // Kubernetes API Version + string version = 5; + // Kubernetes API Kind + string kind = 6; + // Kubernetes API Resource Verbs + repeated string verbs = 7; + // Kubernetes API Resource ShortNames + repeated string short_names = 8; + // Kubernetes API Resource Categories + repeated string categories = 9; + // Kubernetes API Resource StorageVersionHash + string storage_version_hash = 10; +} + +// Request +message SchedulerV2KubernetesGetRequest { + // Kubernetes API Resources + repeated SchedulerV2ReleaseInfoResource resources = 1; +} + +// Response +message SchedulerV2KubernetesGetResponse { + // Kubernetes API Objects + repeated SchedulerV2ReleaseInfoResourceObject objects = 1; +} \ No newline at end of file diff --git a/integrations/scheduler/v2/definition/release.pb.go b/integrations/scheduler/v2/definition/release.pb.go new file mode 100644 index 000000000..b6208cb0d --- /dev/null +++ b/integrations/scheduler/v2/definition/release.pb.go @@ -0,0 +1,830 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.21.1 +// source: integrations/scheduler/v2/definition/release.proto + +package definition + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +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) +) + +// Release Object Info Status Enum +type SchedulerV2ReleaseInfoStatus int32 + +const ( + // Unknown + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED SchedulerV2ReleaseInfoStatus = 0 + // Release is Deployed + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED SchedulerV2ReleaseInfoStatus = 1 + // Release is Uninstalled, but not removed + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED SchedulerV2ReleaseInfoStatus = 2 + // Release is Hibernated + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED SchedulerV2ReleaseInfoStatus = 3 + // Release is Failed + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED SchedulerV2ReleaseInfoStatus = 4 + // Release is Uninstalling + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING SchedulerV2ReleaseInfoStatus = 5 + // Release is Pending Installation + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL SchedulerV2ReleaseInfoStatus = 6 + // Release is Pending Upgrade + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE SchedulerV2ReleaseInfoStatus = 7 + // Release is Pending Rollback + SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK SchedulerV2ReleaseInfoStatus = 8 +) + +// Enum value maps for SchedulerV2ReleaseInfoStatus. +var ( + SchedulerV2ReleaseInfoStatus_name = map[int32]string{ + 0: "SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED", + 1: "SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED", + 2: "SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED", + 3: "SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED", + 4: "SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED", + 5: "SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING", + 6: "SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL", + 7: "SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE", + 8: "SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK", + } + SchedulerV2ReleaseInfoStatus_value = map[string]int32{ + "SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED": 0, + "SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED": 1, + "SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED": 2, + "SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED": 3, + "SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED": 4, + "SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING": 5, + "SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL": 6, + "SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE": 7, + "SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK": 8, + } +) + +func (x SchedulerV2ReleaseInfoStatus) Enum() *SchedulerV2ReleaseInfoStatus { + p := new(SchedulerV2ReleaseInfoStatus) + *p = x + return p +} + +func (x SchedulerV2ReleaseInfoStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SchedulerV2ReleaseInfoStatus) Descriptor() protoreflect.EnumDescriptor { + return file_integrations_scheduler_v2_definition_release_proto_enumTypes[0].Descriptor() +} + +func (SchedulerV2ReleaseInfoStatus) Type() protoreflect.EnumType { + return &file_integrations_scheduler_v2_definition_release_proto_enumTypes[0] +} + +func (x SchedulerV2ReleaseInfoStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SchedulerV2ReleaseInfoStatus.Descriptor instead. +func (SchedulerV2ReleaseInfoStatus) EnumDescriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP(), []int{0} +} + +// Release Object +type SchedulerV2Release struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Release Name + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Release Namespace + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + // Release Values Json Bytes + Values []byte `protobuf:"bytes,3,opt,name=values,proto3" json:"values,omitempty"` + // Release Version + Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` + // Release Labels + Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Release Info + Info *SchedulerV2ReleaseInfo `protobuf:"bytes,6,opt,name=info,proto3,oneof" json:"info,omitempty"` +} + +func (x *SchedulerV2Release) Reset() { + *x = SchedulerV2Release{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2Release) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2Release) ProtoMessage() {} + +func (x *SchedulerV2Release) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2Release.ProtoReflect.Descriptor instead. +func (*SchedulerV2Release) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP(), []int{0} +} + +func (x *SchedulerV2Release) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchedulerV2Release) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *SchedulerV2Release) GetValues() []byte { + if x != nil { + return x.Values + } + return nil +} + +func (x *SchedulerV2Release) GetVersion() int64 { + if x != nil { + return x.Version + } + return 0 +} + +func (x *SchedulerV2Release) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *SchedulerV2Release) GetInfo() *SchedulerV2ReleaseInfo { + if x != nil { + return x.Info + } + return nil +} + +// Release Object Info +type SchedulerV2ReleaseInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Release First Deployed time + FirstDeployed *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=first_deployed,json=firstDeployed,proto3,oneof" json:"first_deployed,omitempty"` + // Release Last Deployed time + LastDeployed *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_deployed,json=lastDeployed,proto3,oneof" json:"last_deployed,omitempty"` + // Release Deleted time + Deleted *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=deleted,proto3,oneof" json:"deleted,omitempty"` + // Release Info Description + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Release Info Notes + Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty"` + // Release Info Status + Status SchedulerV2ReleaseInfoStatus `protobuf:"varint,6,opt,name=status,proto3,enum=scheduler.SchedulerV2ReleaseInfoStatus" json:"status,omitempty"` + // Release Resources + Resources []*SchedulerV2ReleaseInfoResource `protobuf:"bytes,7,rep,name=resources,proto3" json:"resources,omitempty"` +} + +func (x *SchedulerV2ReleaseInfo) Reset() { + *x = SchedulerV2ReleaseInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2ReleaseInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2ReleaseInfo) ProtoMessage() {} + +func (x *SchedulerV2ReleaseInfo) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2ReleaseInfo.ProtoReflect.Descriptor instead. +func (*SchedulerV2ReleaseInfo) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP(), []int{1} +} + +func (x *SchedulerV2ReleaseInfo) GetFirstDeployed() *timestamppb.Timestamp { + if x != nil { + return x.FirstDeployed + } + return nil +} + +func (x *SchedulerV2ReleaseInfo) GetLastDeployed() *timestamppb.Timestamp { + if x != nil { + return x.LastDeployed + } + return nil +} + +func (x *SchedulerV2ReleaseInfo) GetDeleted() *timestamppb.Timestamp { + if x != nil { + return x.Deleted + } + return nil +} + +func (x *SchedulerV2ReleaseInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *SchedulerV2ReleaseInfo) GetNotes() string { + if x != nil { + return x.Notes + } + return "" +} + +func (x *SchedulerV2ReleaseInfo) GetStatus() SchedulerV2ReleaseInfoStatus { + if x != nil { + return x.Status + } + return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED +} + +func (x *SchedulerV2ReleaseInfo) GetResources() []*SchedulerV2ReleaseInfoResource { + if x != nil { + return x.Resources + } + return nil +} + +// Release Object Info Resource +type SchedulerV2ReleaseInfoResourceObject struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Release Object Resource + Resource *SchedulerV2ReleaseInfoResource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` + // Release Object Data + Data *SchedulerV2ReleaseInfoResourceObjectData `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` +} + +func (x *SchedulerV2ReleaseInfoResourceObject) Reset() { + *x = SchedulerV2ReleaseInfoResourceObject{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2ReleaseInfoResourceObject) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2ReleaseInfoResourceObject) ProtoMessage() {} + +func (x *SchedulerV2ReleaseInfoResourceObject) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2ReleaseInfoResourceObject.ProtoReflect.Descriptor instead. +func (*SchedulerV2ReleaseInfoResourceObject) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP(), []int{2} +} + +func (x *SchedulerV2ReleaseInfoResourceObject) GetResource() *SchedulerV2ReleaseInfoResource { + if x != nil { + return x.Resource + } + return nil +} + +func (x *SchedulerV2ReleaseInfoResourceObject) GetData() *SchedulerV2ReleaseInfoResourceObjectData { + if x != nil { + return x.Data + } + return nil +} + +// Release Object Info Resource bytes +type SchedulerV2ReleaseInfoResourceObjectData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Release Object Json Bytes + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *SchedulerV2ReleaseInfoResourceObjectData) Reset() { + *x = SchedulerV2ReleaseInfoResourceObjectData{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2ReleaseInfoResourceObjectData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2ReleaseInfoResourceObjectData) ProtoMessage() {} + +func (x *SchedulerV2ReleaseInfoResourceObjectData) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2ReleaseInfoResourceObjectData.ProtoReflect.Descriptor instead. +func (*SchedulerV2ReleaseInfoResourceObjectData) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP(), []int{3} +} + +func (x *SchedulerV2ReleaseInfoResourceObjectData) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +// Release Object Info Resource Meta +type SchedulerV2ReleaseInfoResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // GroupVersionKind + Gvk *SchedulerV2GVK `protobuf:"bytes,1,opt,name=gvk,proto3" json:"gvk,omitempty"` + // Kubernetes API Object Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Kubernetes API Object Namespace + Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` +} + +func (x *SchedulerV2ReleaseInfoResource) Reset() { + *x = SchedulerV2ReleaseInfoResource{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2ReleaseInfoResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2ReleaseInfoResource) ProtoMessage() {} + +func (x *SchedulerV2ReleaseInfoResource) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2ReleaseInfoResource.ProtoReflect.Descriptor instead. +func (*SchedulerV2ReleaseInfoResource) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP(), []int{4} +} + +func (x *SchedulerV2ReleaseInfoResource) GetGvk() *SchedulerV2GVK { + if x != nil { + return x.Gvk + } + return nil +} + +func (x *SchedulerV2ReleaseInfoResource) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchedulerV2ReleaseInfoResource) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +// GroupVersionKind +type SchedulerV2GVK struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Kubernetes API Group + Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // Kubernetes API Version + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // Kubernetes API Kind + Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` +} + +func (x *SchedulerV2GVK) Reset() { + *x = SchedulerV2GVK{} + if protoimpl.UnsafeEnabled { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulerV2GVK) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulerV2GVK) ProtoMessage() {} + +func (x *SchedulerV2GVK) ProtoReflect() protoreflect.Message { + mi := &file_integrations_scheduler_v2_definition_release_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchedulerV2GVK.ProtoReflect.Descriptor instead. +func (*SchedulerV2GVK) Descriptor() ([]byte, []int) { + return file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP(), []int{5} +} + +func (x *SchedulerV2GVK) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *SchedulerV2GVK) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *SchedulerV2GVK) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +var File_integrations_scheduler_v2_definition_release_proto protoreflect.FileDescriptor + +var file_integrations_scheduler_v2_definition_release_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xbb, 0x02, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, + 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, + 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x48, + 0x00, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x88, 0x01, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xd4, + 0x03, 0x0a, 0x16, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, + 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x46, 0x0a, 0x0e, 0x66, 0x69, 0x72, + 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, + 0x0d, 0x66, 0x69, 0x72, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, + 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x48, 0x01, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6c, + 0x6f, 0x79, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x39, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x48, 0x02, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, + 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x47, 0x0a, 0x09, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x64, + 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0xc4, 0x01, 0x0a, 0x24, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x45, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, + 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3e, 0x0a, 0x28, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, + 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x7f, 0x0a, 0x1e, + 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, + 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2b, + 0x0a, 0x03, 0x67, 0x76, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x56, 0x32, 0x47, 0x56, 0x4b, 0x52, 0x03, 0x67, 0x76, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x54, 0x0a, + 0x0e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x56, 0x32, 0x47, 0x56, 0x4b, 0x12, + 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, + 0x69, 0x6e, 0x64, 0x2a, 0xea, 0x03, 0x0a, 0x1c, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x72, 0x56, 0x32, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x38, 0x0a, 0x34, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, + 0x52, 0x5f, 0x56, 0x32, 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, + 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2d, + 0x0a, 0x29, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x56, 0x32, 0x5f, 0x52, + 0x45, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x54, + 0x55, 0x53, 0x5f, 0x44, 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x45, 0x44, 0x10, 0x01, 0x12, 0x30, 0x0a, + 0x2c, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x56, 0x32, 0x5f, 0x52, 0x45, + 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x55, 0x4e, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, + 0x2f, 0x0a, 0x2b, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x56, 0x32, 0x5f, + 0x52, 0x45, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x50, 0x45, 0x52, 0x53, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, + 0x12, 0x2b, 0x0a, 0x27, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x56, 0x32, + 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x31, 0x0a, + 0x2d, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x56, 0x32, 0x5f, 0x52, 0x45, + 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, + 0x53, 0x5f, 0x55, 0x4e, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x05, + 0x12, 0x33, 0x0a, 0x2f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x56, 0x32, + 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x49, 0x4e, 0x53, 0x54, + 0x41, 0x4c, 0x4c, 0x10, 0x06, 0x12, 0x33, 0x0a, 0x2f, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, + 0x45, 0x52, 0x5f, 0x56, 0x32, 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x41, 0x53, 0x45, 0x5f, 0x49, 0x4e, + 0x46, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, + 0x47, 0x55, 0x50, 0x47, 0x52, 0x41, 0x44, 0x45, 0x10, 0x07, 0x12, 0x34, 0x0a, 0x30, 0x53, 0x43, + 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x56, 0x32, 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x41, + 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, + 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x52, 0x4f, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x08, + 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x72, 0x61, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x2d, 0x61, 0x72, 0x61, + 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, + 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_integrations_scheduler_v2_definition_release_proto_rawDescOnce sync.Once + file_integrations_scheduler_v2_definition_release_proto_rawDescData = file_integrations_scheduler_v2_definition_release_proto_rawDesc +) + +func file_integrations_scheduler_v2_definition_release_proto_rawDescGZIP() []byte { + file_integrations_scheduler_v2_definition_release_proto_rawDescOnce.Do(func() { + file_integrations_scheduler_v2_definition_release_proto_rawDescData = protoimpl.X.CompressGZIP(file_integrations_scheduler_v2_definition_release_proto_rawDescData) + }) + return file_integrations_scheduler_v2_definition_release_proto_rawDescData +} + +var file_integrations_scheduler_v2_definition_release_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_integrations_scheduler_v2_definition_release_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_integrations_scheduler_v2_definition_release_proto_goTypes = []interface{}{ + (SchedulerV2ReleaseInfoStatus)(0), // 0: scheduler.SchedulerV2ReleaseInfoStatus + (*SchedulerV2Release)(nil), // 1: scheduler.SchedulerV2Release + (*SchedulerV2ReleaseInfo)(nil), // 2: scheduler.SchedulerV2ReleaseInfo + (*SchedulerV2ReleaseInfoResourceObject)(nil), // 3: scheduler.SchedulerV2ReleaseInfoResourceObject + (*SchedulerV2ReleaseInfoResourceObjectData)(nil), // 4: scheduler.SchedulerV2ReleaseInfoResourceObjectData + (*SchedulerV2ReleaseInfoResource)(nil), // 5: scheduler.SchedulerV2ReleaseInfoResource + (*SchedulerV2GVK)(nil), // 6: scheduler.SchedulerV2GVK + nil, // 7: scheduler.SchedulerV2Release.LabelsEntry + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp +} +var file_integrations_scheduler_v2_definition_release_proto_depIdxs = []int32{ + 7, // 0: scheduler.SchedulerV2Release.labels:type_name -> scheduler.SchedulerV2Release.LabelsEntry + 2, // 1: scheduler.SchedulerV2Release.info:type_name -> scheduler.SchedulerV2ReleaseInfo + 8, // 2: scheduler.SchedulerV2ReleaseInfo.first_deployed:type_name -> google.protobuf.Timestamp + 8, // 3: scheduler.SchedulerV2ReleaseInfo.last_deployed:type_name -> google.protobuf.Timestamp + 8, // 4: scheduler.SchedulerV2ReleaseInfo.deleted:type_name -> google.protobuf.Timestamp + 0, // 5: scheduler.SchedulerV2ReleaseInfo.status:type_name -> scheduler.SchedulerV2ReleaseInfoStatus + 5, // 6: scheduler.SchedulerV2ReleaseInfo.resources:type_name -> scheduler.SchedulerV2ReleaseInfoResource + 5, // 7: scheduler.SchedulerV2ReleaseInfoResourceObject.resource:type_name -> scheduler.SchedulerV2ReleaseInfoResource + 4, // 8: scheduler.SchedulerV2ReleaseInfoResourceObject.data:type_name -> scheduler.SchedulerV2ReleaseInfoResourceObjectData + 6, // 9: scheduler.SchedulerV2ReleaseInfoResource.gvk:type_name -> scheduler.SchedulerV2GVK + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_integrations_scheduler_v2_definition_release_proto_init() } +func file_integrations_scheduler_v2_definition_release_proto_init() { + if File_integrations_scheduler_v2_definition_release_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_integrations_scheduler_v2_definition_release_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2Release); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_release_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2ReleaseInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_release_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2ReleaseInfoResourceObject); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_release_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2ReleaseInfoResourceObjectData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_release_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2ReleaseInfoResource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_integrations_scheduler_v2_definition_release_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchedulerV2GVK); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_integrations_scheduler_v2_definition_release_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_release_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_integrations_scheduler_v2_definition_release_proto_msgTypes[2].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_integrations_scheduler_v2_definition_release_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_integrations_scheduler_v2_definition_release_proto_goTypes, + DependencyIndexes: file_integrations_scheduler_v2_definition_release_proto_depIdxs, + EnumInfos: file_integrations_scheduler_v2_definition_release_proto_enumTypes, + MessageInfos: file_integrations_scheduler_v2_definition_release_proto_msgTypes, + }.Build() + File_integrations_scheduler_v2_definition_release_proto = out.File + file_integrations_scheduler_v2_definition_release_proto_rawDesc = nil + file_integrations_scheduler_v2_definition_release_proto_goTypes = nil + file_integrations_scheduler_v2_definition_release_proto_depIdxs = nil +} diff --git a/integrations/scheduler/v2/definition/release.proto b/integrations/scheduler/v2/definition/release.proto new file mode 100644 index 000000000..83efb6fda --- /dev/null +++ b/integrations/scheduler/v2/definition/release.proto @@ -0,0 +1,117 @@ +// +// DISCLAIMER +// +// Copyright 2024 ArangoDB GmbH, Cologne, Germany +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Copyright holder is ArangoDB GmbH, Cologne, Germany +// + +syntax = "proto3"; + +package scheduler; + +import "google/protobuf/timestamp.proto"; + +option go_package = "github.com/arangodb/kube-arangodb/integrations/scheduler/v2/definition"; + +// Release Object +message SchedulerV2Release { + // Release Name + string name = 1; + // Release Namespace + string namespace = 2; + // Release Values Json Bytes + bytes values = 3; + // Release Version + int64 version = 4; + // Release Labels + map labels = 5; + // Release Info + optional SchedulerV2ReleaseInfo info = 6; +} + +// Release Object Info +message SchedulerV2ReleaseInfo { + // Release First Deployed time + optional google.protobuf.Timestamp first_deployed = 1; + // Release Last Deployed time + optional google.protobuf.Timestamp last_deployed = 2; + // Release Deleted time + optional google.protobuf.Timestamp deleted = 3; + // Release Info Description + string description = 4; + // Release Info Notes + string notes = 5; + // Release Info Status + SchedulerV2ReleaseInfoStatus status = 6; + // Release Resources + repeated SchedulerV2ReleaseInfoResource resources = 7; +} + +// Release Object Info Status Enum +enum SchedulerV2ReleaseInfoStatus { + // Unknown + SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED = 0; + // Release is Deployed + SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED = 1; + // Release is Uninstalled, but not removed + SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED = 2; + // Release is Hibernated + SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED = 3; + // Release is Failed + SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED = 4; + // Release is Uninstalling + SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING = 5; + // Release is Pending Installation + SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL = 6; + // Release is Pending Upgrade + SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE = 7; + // Release is Pending Rollback + SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK = 8; +} + +// Release Object Info Resource +message SchedulerV2ReleaseInfoResourceObject { + // Release Object Resource + SchedulerV2ReleaseInfoResource resource = 1; + // Release Object Data + optional SchedulerV2ReleaseInfoResourceObjectData data = 2; +} + +// Release Object Info Resource bytes +message SchedulerV2ReleaseInfoResourceObjectData { + // Release Object Json Bytes + bytes data = 1; +} + +// Release Object Info Resource Meta +message SchedulerV2ReleaseInfoResource { + // GroupVersionKind + SchedulerV2GVK gvk = 1; + // Kubernetes API Object Name + string name = 2; + // Kubernetes API Object Namespace + string namespace = 3; +} + +// GroupVersionKind +message SchedulerV2GVK { + // Kubernetes API Group + string group = 1; + // Kubernetes API Version + string version = 2; + // Kubernetes API Kind + string kind = 3; +} \ No newline at end of file