consul/proto-public/pbresource/annotations.proto
Matt Keeler 53fcc5d9a5
Add protoc generator to emit resource type variables (#18957)
The annotations include a little more data than is strictly necessary because we will also have a protoc generator for openapi output.
2023-09-21 17:18:47 -04:00

26 lines
469 B
Protocol Buffer

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
syntax = "proto3";
package hashicorp.consul.resource;
import "google/protobuf/descriptor.proto";
enum Scope {
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
SCOPE_UNDEFINED = 0;
SCOPE_CLUSTER = 1;
SCOPE_PARTITION = 2;
SCOPE_NAMESPACE = 3;
}
message ResourceTypeSpec {
Scope scope = 1;
bool dont_map_http = 2;
}
extend google.protobuf.MessageOptions {
ResourceTypeSpec spec = 8500;
}