resource.proto 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. syntax = "proto3";
  2. package atlas.resource.v1;
  3. import "protoc-gen-openapiv2/options/annotations.proto";
  4. option go_package = "github.com/infobloxopen/atlas-app-toolkit/atlas/resource;resource";
  5. // A number of application services require a mechanism to
  6. // encode the identity of a particular resource across applications.
  7. // The resource identifiers consist of the application ID,
  8. // an application-defined resource type,
  9. // and an application-defined ID for that resource
  10. message Identifier {
  11. option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
  12. json_schema: {
  13. type: STRING;
  14. // TODO: update to correct name atlas.resource.v1.Identifier
  15. description: "atlas.rpc.Identifier";
  16. };
  17. };
  18. // An application identifier that will be used among
  19. // other infrastructure services to identify the application
  20. string application_name = 1;
  21. // An application specific type name of a resource
  22. string resource_type = 2;
  23. // An application specific resource identity of a resource
  24. string resource_id = 3;
  25. }