github.com/Axway/agent-sdk@v1.1.101/proto/apicentral.proto (about) 1 syntax = "proto3"; 2 3 package central.events.v1.datamodel; 4 5 option go_package = "pkg/watchmanager/proto"; 6 7 // API Server generic resource structure. 8 message ResourceInstance { 9 // Defines the group from which the resource belongs to. The server infers this from the endpoint the client submits the request to. 10 string group = 1; 11 12 // Resource kind 13 string kind = 2; 14 15 // Name of the resource 16 string name = 4; 17 18 // Metadata. 19 Metadata metadata = 5; 20 21 map<string, string> attributes = 6; 22 } 23 24 // Metadata that all server resources have. Data is generated by the server. 25 message Metadata { 26 message ScopeKind { 27 // Internal id of the scope resource where the resource is defined. 28 string id = 1; 29 30 // The kind of the scope resource where the resource is defined. 31 string kind = 2; 32 33 // The name of the scope where the resource is defined. 34 string name = 3; 35 36 // The URL to access the scope resource. 37 string selfLink = 4; 38 } 39 40 // Internal id of the resource. 41 string id = 1; 42 43 // The scope where this resource was defined. 44 ScopeKind scope = 2; 45 46 // The URL representing this resource object. 47 string selfLink = 6; 48 49 // resource references 50 repeated Reference references = 7; 51 } 52 53 // Owner of the resource. 54 message Owner { 55 enum Type { 56 TEAM = 0; 57 } 58 59 // Id of the owner of the resource. 60 string id = 1; 61 62 // The type of the owner. Defaults to team if not present. 63 Type type = 2; 64 } 65 66 // Reference resource 67 message Reference { 68 enum Type { 69 SOFT = 0; 70 HARD = 1; 71 } 72 73 // Unique id generated by the server. 74 string id = 1; 75 76 // The kind of the referenced resource. 77 string kind = 2; 78 79 // The name of the referenced resource. 80 string name = 3; 81 82 // The kind of the referenced resource scope. 83 string scopeKind = 4; 84 85 // The name of the referenced resource scope. 86 string scopeName = 5; 87 88 // The URL representing the referenced resource. 89 string selfLink = 6; 90 91 // Defines the type of the reference: * soft - spec property that has this reference will get nulled out if the referenced resource gets removed. * hard - dictates that the current resource will get removed when the referenced resource gets removed. 92 Type type = 7; 93 }