github.com/microsoft/moc@v0.17.1/rpc/cloudagent/security/roleassignment/moc_cloudagent_roleassignment.proto (about) 1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the Apache v2.0 license. 3 4 syntax = "proto3"; 5 option go_package = "github.com/microsoft/moc/rpc/cloudagent/security"; 6 package moc.cloudagent.security; 7 8 import "google/protobuf/wrappers.proto"; 9 import "moc_common_common.proto"; 10 import "moc_common_security.proto"; 11 12 message RoleAssignmentRequest { 13 repeated RoleAssignment roleAssignments = 2; 14 Operation OperationType = 3; 15 } 16 17 message RoleAssignmentResponse { 18 repeated RoleAssignment roleAssignments = 1; 19 google.protobuf.BoolValue Result = 2; 20 string Error = 3; 21 } 22 23 message RoleAssignment { 24 string name = 1; 25 string id = 2; 26 // Name of role to be applied 27 string roleName = 3; 28 // Scope to which role is applied 29 Scope scope = 4; 30 // Name of identity to be assigned to 31 string identityName = 5; 32 Status status = 6; 33 Tags tags = 7; 34 } 35 36 service RoleAssignmentAgent { 37 rpc Invoke(RoleAssignmentRequest) returns (RoleAssignmentResponse) {} 38 }