2024-01-10 17:05:12 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2024-01-09 18:57:59 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package hashicorp.consul.hcp.v2;
|
|
|
|
|
2024-01-31 19:47:05 +00:00
|
|
|
import "pbhcp/v2/hcp_config.proto";
|
2024-01-09 18:57:59 +00:00
|
|
|
import "pbresource/annotations.proto";
|
|
|
|
|
2024-01-19 15:02:55 +00:00
|
|
|
enum AccessLevel {
|
|
|
|
ACCESS_LEVEL_UNSPECIFIED = 0;
|
|
|
|
ACCESS_LEVEL_GLOBAL_READ_WRITE = 1;
|
|
|
|
ACCESS_LEVEL_GLOBAL_READ_ONLY = 2;
|
|
|
|
}
|
|
|
|
|
2024-01-09 18:57:59 +00:00
|
|
|
message Link {
|
|
|
|
option (hashicorp.consul.resource.spec) = {scope: SCOPE_CLUSTER};
|
|
|
|
|
|
|
|
string resource_id = 1;
|
|
|
|
string client_id = 2;
|
|
|
|
string client_secret = 3;
|
|
|
|
string hcp_cluster_url = 4;
|
2024-01-19 15:02:55 +00:00
|
|
|
AccessLevel access_level = 5;
|
2024-01-31 19:47:05 +00:00
|
|
|
HCPConfig hcp_config = 6;
|
2024-01-09 18:57:59 +00:00
|
|
|
}
|