Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
423 changes: 423 additions & 0 deletions proto/kms/api/cmk/registry/mapping/v1/mapping.pb.go

Large diffs are not rendered by default.

666 changes: 666 additions & 0 deletions proto/kms/api/cmk/registry/mapping/v1/mapping.pb.validate.go

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions proto/kms/api/cmk/registry/mapping/v1/mapping.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
syntax = "proto3";

package kms.api.cmk.registry.mapping.v1;

service Service {
rpc UnmapSystemFromTenant(UnmapSystemFromTenantRequest) returns (UnmapSystemFromTenantResponse) {}
rpc MapSystemToTenant(MapSystemToTenantRequest) returns (MapSystemToTenantResponse) {}
rpc Get(GetRequest) returns (GetResponse) {}
}

message UnmapSystemFromTenantRequest {
string external_id = 10;
string type = 20;
string tenant_id = 30;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a tenant_id here ? If this method is replacing unlink tenant we never required tenant_id there.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we don't need it, but in the discussion Today we aligned to send it, so we don't accidentally unmap something unexpected.

}

message UnmapSystemFromTenantResponse {
bool success = 10;
}

message MapSystemToTenantRequest {
string external_id = 10;
string type = 20;
string tenant_id = 30;
}

message MapSystemToTenantResponse {
bool success = 10;
}

message GetRequest {
string external_id = 10;
string type = 20;
}

message GetResponse {
string tenant_id = 10;
}
197 changes: 197 additions & 0 deletions proto/kms/api/cmk/registry/mapping/v1/mapping_grpc.pb.go

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

Loading