feat(hostsets): Classify all proto fields
This commit is contained in:
1 parent
8fa3e8dee0
commit
d51ce41db8
11 files changed
+483
-285
No files matched your search
@@ -8,6 +8,9 @@ import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "google/api/annotations.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "controller/api/resources/hostsets/v1/host_set.proto";
|
||||
import "controller/custom_options/v1/options.proto";
|
||||
|
||||
option (custom_options.v1.domain) = "host";
|
||||
|
||||
service HostSetService {
|
||||
// GetHostSet returns a stored Host Set if present. The provided request
|
||||
@@ -135,7 +138,7 @@ service HostSetService {
|
||||
}
|
||||
|
||||
message GetHostSetRequest {
|
||||
string id = 1;
|
||||
string id = 1; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message GetHostSetResponse {
|
||||
@@ -143,8 +146,8 @@ message GetHostSetResponse {
|
||||
}
|
||||
|
||||
message ListHostSetsRequest {
|
||||
string host_catalog_id = 1 [json_name="host_catalog_id"];
|
||||
string filter = 30 [json_name="filter"];
|
||||
string host_catalog_id = 1 [json_name="host_catalog_id"]; // @gotags: `class:"public"`
|
||||
string filter = 30 [json_name="filter"]; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message ListHostSetsResponse {
|
||||
@@ -156,12 +159,12 @@ message CreateHostSetRequest {
|
||||
}
|
||||
|
||||
message CreateHostSetResponse {
|
||||
string uri = 1;
|
||||
string uri = 1; // @gotags: `class:"public"`
|
||||
api.resources.hostsets.v1.HostSet item = 2;
|
||||
}
|
||||
|
||||
message UpdateHostSetRequest {
|
||||
string id = 1;
|
||||
string id = 1; // @gotags: `class:"public"`
|
||||
api.resources.hostsets.v1.HostSet item = 2;
|
||||
google.protobuf.FieldMask update_mask = 3 [json_name="update_mask"];
|
||||
}
|
||||
@@ -171,19 +174,19 @@ message UpdateHostSetResponse {
|
||||
}
|
||||
|
||||
message DeleteHostSetRequest {
|
||||
string id = 1;
|
||||
string id = 1; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message DeleteHostSetResponse {}
|
||||
|
||||
message AddHostSetHostsRequest {
|
||||
string id = 1;
|
||||
string id = 1; // @gotags: `class:"public"`
|
||||
// Version is used to ensure this resource has not changed.
|
||||
// The mutation will fail if the version does not match the latest known good version.
|
||||
uint32 version = 2;
|
||||
uint32 version = 2; // @gotags: `class:"public"`
|
||||
|
||||
// A list of Host IDs which will be added to this Host Set. Each Host referenced here must be a child of the same Host Catalog of which this Host Set is a child.
|
||||
repeated string host_ids = 3 [json_name="host_ids"];
|
||||
repeated string host_ids = 3 [json_name="host_ids"]; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message AddHostSetHostsResponse {
|
||||
@@ -191,13 +194,13 @@ message AddHostSetHostsResponse {
|
||||
}
|
||||
|
||||
message SetHostSetHostsRequest {
|
||||
string id = 1;
|
||||
string id = 1; // @gotags: `class:"public"`
|
||||
// Version is used to ensure this resource has not changed.
|
||||
// The mutation will fail if the version does not match the latest known good version.
|
||||
uint32 version = 2;
|
||||
uint32 version = 2; // @gotags: `class:"public"`
|
||||
|
||||
// A list of Host IDs which will be set on this Host Set. Each Host referenced here must be a child of the same Host Catalog of which this Host Set is a child.
|
||||
repeated string host_ids = 3 [json_name="host_ids"];
|
||||
repeated string host_ids = 3 [json_name="host_ids"]; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message SetHostSetHostsResponse {
|
||||
@@ -205,13 +208,13 @@ message SetHostSetHostsResponse {
|
||||
}
|
||||
|
||||
message RemoveHostSetHostsRequest {
|
||||
string id = 1;
|
||||
string id = 1; // @gotags: `class:"public"`
|
||||
// Version is used to ensure this resource has not changed.
|
||||
// The mutation will fail if the version does not match the latest known good version.
|
||||
uint32 version = 2;
|
||||
uint32 version = 2; // @gotags: `class:"public"`
|
||||
|
||||
// A list of Host IDs which will be removed from this Host Set.
|
||||
repeated string host_ids = 3 [json_name="host_ids"];
|
||||
repeated string host_ids = 3 [json_name="host_ids"]; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message RemoveHostSetHostsResponse {
|
||||
|
||||
Reference in new issue
Block a user