From 78d4e223072b06e1d66407fe854e85fead5f873e Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Tue, 23 Apr 2024 14:37:36 +0800 Subject: [PATCH] feat(mgmt): add Permission data for in organization response --- core/mgmt/v1beta/mgmt.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/mgmt/v1beta/mgmt.proto b/core/mgmt/v1beta/mgmt.proto index e4cc13bb..27affd9c 100644 --- a/core/mgmt/v1beta/mgmt.proto +++ b/core/mgmt/v1beta/mgmt.proto @@ -59,6 +59,12 @@ enum OwnerType { OWNER_TYPE_ORGANIZATION = 2; } +// Permission defines how a resource can be used. +message Permission { + // Defines whether the resource can be modified. + bool can_edit = 1; +} + // MembershipState describes the state of a user membership to an organization. enum MembershipState { // Unspecified. @@ -705,6 +711,8 @@ message Organization { User owner = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Profile. OrganizationProfile profile = 12; + // Permission + Permission permission = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ListOrganizationsRequest represents a request to list all organizations