Skip to content

Commit

Permalink
created a message for delete that is only the reporter data.
Browse files Browse the repository at this point in the history
  • Loading branch information
randymgeorge committed Sep 5, 2024
1 parent 2f0bf32 commit 37f3a97
Show file tree
Hide file tree
Showing 11 changed files with 395 additions and 350 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ syntax = "proto3";
package kessel.inventory.v1beta1.relationships;

import "google/api/annotations.proto";
import "buf/validate/validate.proto";

import "kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster.proto";
import "kessel/inventory/v1beta1/relationships/reporter_data.proto";

option go_package = "github.com/project-kessel/inventory-api/api/kessel/inventory/v1beta1/relationships";
option java_multiple_files = true;
option java_package = "org.project_kessel.api.inventory.v1beta1.relationships";

message CreateK8SPolicyIsPropagatedToK8SClusterRequest {
// The resource relationship to create in Kessel Asset Inventory
K8SPolicyIsPropagatedToK8SCluster k8spolicy_ispropagatedto_k8scluster = 1;
K8SPolicyIsPropagatedToK8SCluster k8spolicy_ispropagatedto_k8scluster = 1 [ (buf.validate.field).required = true ];
}

message CreateK8SPolicyIsPropagatedToK8SClusterResponse {}
Expand All @@ -22,7 +24,7 @@ message UpdateK8SPolicyIsPropagatedToK8SClusterRequest {
// \"<reporter_data.reporter_type>:<reporter_instance_id>:<reporter_data.subject_local_resource_id>\"
// AND \"<reporter_data.reporter_type>:<reporter_instance_id>:<reporter_data.object_local_resource_id>\"
// from the request body.
K8SPolicyIsPropagatedToK8SCluster k8spolicy_ispropagatedto_k8scluster = 1;
K8SPolicyIsPropagatedToK8SCluster k8spolicy_ispropagatedto_k8scluster = 1 [ (buf.validate.field).required = true ];
}

message UpdateK8SPolicyIsPropagatedToK8SClusterResponse {}
Expand All @@ -32,7 +34,7 @@ message DeleteK8SPolicyIsPropagatedToK8SClusterRequest {
// \"<reporter_data.reporter_type>:<reporter_instance_id>:<reporter_data.subject_local_resource_id>\"
// AND \"<reporter_data.reporter_type>:<reporter_instance_id>:<reporter_data.object_local_resource_id>\"
// from the request body.
K8SPolicyIsPropagatedToK8SCluster k8spolicy_ispropagatedto_k8scluster = 1;
ReporterData reporter_data = 1 [ (buf.validate.field).required = true ];
}

message DeleteK8SPolicyIsPropagatedToK8SClusterResponse {}
Expand Down
Loading

0 comments on commit 37f3a97

Please sign in to comment.