github.com/microsoft/moc@v0.17.1/rpc/cloudagent/security/identity/moc_cloudagent_identity.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_cloudagent_certificate.proto"; 10 import "moc_common_common.proto"; 11 import "moc_common_security.proto"; 12 13 message IdentityRequest { 14 repeated Identity Identitys = 1; 15 Operation OperationType = 2; 16 } 17 18 message IdentityResponse { 19 repeated Identity Identitys = 1; 20 google.protobuf.BoolValue Result = 2; 21 string Error = 3; 22 } 23 24 message IdentityOperationRequest { 25 repeated Identity Identities = 1; 26 IdentityOperation OBSOLETE_OperationType = 2 [deprecated=true]; 27 ProviderAccessOperation OperationType = 3; 28 } 29 30 message IdentityCertificateRequest { 31 string IdentityName = 1; 32 repeated CertificateSigningRequest CSR = 2; 33 IdentityCertificateOperation OBSOLETE_OperationType = 3 [deprecated=true]; 34 ProviderAccessOperation OperationType = 4; 35 } 36 37 message IdentityCertificateResponse { 38 repeated Certificate Certificates = 1; 39 google.protobuf.BoolValue Result = 2; 40 string Error = 3; 41 } 42 43 message Identity { 44 string name = 1; 45 string id = 2; 46 string resourceGroup = 3; 47 string password = 4 [(sensitive) = true]; 48 string token = 5 [(sensitive) = true]; 49 Status status = 7; 50 string locationName = 10; 51 Tags tags = 11; 52 map<string, string> certificates = 12 [(sensitive) = true]; 53 int64 tokenExpiry = 13 [deprecated = true]; 54 ClientType clientType = 14; 55 string cloudFqdn = 15; 56 int32 cloudPort = 16; 57 int32 cloudAuthPort = 17; 58 AuthenticationType authType = 18 [deprecated = true];; 59 bool revoked = 19; 60 bool autoRotate = 20; 61 string loginFilePath = 21; 62 int64 tokenExpiryInSeconds = 22; 63 } 64 65 service IdentityAgent { 66 rpc Invoke(IdentityRequest) returns (IdentityResponse) {} 67 rpc Operate(IdentityOperationRequest) returns (IdentityResponse) {} 68 rpc OperateCertificates(IdentityCertificateRequest) returns (IdentityCertificateResponse) {} 69 }