Skip to content

Commit

Permalink
Merge pull request project-kessel#92 from project-kessel/make-relatio…
Browse files Browse the repository at this point in the history
…nship-IDs-readonly

updated to make readonly
  • Loading branch information
randymgeorge authored Sep 5, 2024
2 parents ad355d8 + e1f5415 commit 2f0bf32
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 53 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 @@ -2,6 +2,9 @@ syntax = "proto3";

package kessel.inventory.v1beta1.relationships;

import "google/api/field_behavior.proto";
import "buf/validate/validate.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";
Expand All @@ -16,15 +19,11 @@ message K8SPolicyIsPropagatedToK8SClusterDetail {
COMPLIANT = 3;
}

// The resource ID assigned to the resource by Kessel Asset Inventory. A
// reporter alias may also be used as a resource ID using the format:
// \"hcrn:<reporter_data.reporter_type>:<reporter_data.reporter_id>::<reporter_data.local_resource_id>\"
int64 k8s_policy_id = 225679544;
// The resource ID assigned to the resource by Kessel Asset Inventory.
int64 k8s_policy_id = 225679544 [ (google.api.field_behavior) = OUTPUT_ONLY ];

// The resource ID assigned to the resource by Kessel Asset Inventory. A
// reporter alias may also be used as a resource ID using the format:
// \"hcrn:<reporter_data.reporter_type>:<reporter_data.reporter_id>::<reporter_data.local_resource_id>\"
int64 k8s_cluster_id = 240280960;
// The resource ID assigned to the resource by Kessel Asset Inventory.
int64 k8s_cluster_id = 240280960 [ (google.api.field_behavior) = OUTPUT_ONLY ];

Status status = 355610639;
}
Status status = 355610639 [ (buf.validate.field).enum = {not_in: [0], defined_only: true} ];
}
12 changes: 4 additions & 8 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -471,17 +471,13 @@ components:
type: object
properties:
k8s_policy_id:
readOnly: true
type: string
description: |-
The resource ID assigned to the resource by Kessel Asset Inventory. A
reporter alias may also be used as a resource ID using the format:
\"hcrn:<reporter_data.reporter_type>:<reporter_data.reporter_id>::<reporter_data.local_resource_id>\"
description: The resource ID assigned to the resource by Kessel Asset Inventory.
k8s_cluster_id:
readOnly: true
type: string
description: |-
The resource ID assigned to the resource by Kessel Asset Inventory. A
reporter alias may also be used as a resource ID using the format:
\"hcrn:<reporter_data.reporter_type>:<reporter_data.reporter_id>::<reporter_data.local_resource_id>\"
description: The resource ID assigned to the resource by Kessel Asset Inventory.
status:
type: integer
format: enum
Expand Down

0 comments on commit 2f0bf32

Please sign in to comment.