volumes.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // Copyright 2020 Docker Compose CLI authors
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. // Unless required by applicable law or agreed to in writing, software
  8. // distributed under the License is distributed on an "AS IS" BASIS,
  9. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. // See the License for the specific language governing permissions and
  11. // limitations under the License.
  12. syntax = "proto3";
  13. package com.docker.api.protos.volumes.v1;
  14. import "google/protobuf/any.proto";
  15. option go_package = "github.com/docker/compose-cli/cli/server/protos/volumes/v1;v1";
  16. service Volumes {
  17. rpc VolumesCreate(VolumesCreateRequest) returns (VolumesCreateResponse);
  18. rpc VolumesList(VolumesListRequest) returns (VolumesListResponse);
  19. rpc VolumesDelete(VolumesDeleteRequest) returns (VolumesDeleteResponse);
  20. rpc VolumesInspect(VolumesInspectRequest) returns (VolumesInspectResponse);
  21. }
  22. message Volume {
  23. string id = 1;
  24. string description = 2;
  25. }
  26. message AciVolumeCreateOptions {
  27. string storage_account = 1;
  28. }
  29. message VolumesCreateRequest {
  30. string name = 1;
  31. oneof options {
  32. AciVolumeCreateOptions aci_option = 2;
  33. }
  34. }
  35. message VolumesCreateResponse {
  36. Volume volume = 1;
  37. }
  38. message VolumesListRequest {
  39. }
  40. message VolumesListResponse {
  41. repeated Volume volumes = 1;
  42. }
  43. message VolumesDeleteRequest {
  44. string id = 1;
  45. }
  46. message VolumesDeleteResponse {
  47. }
  48. message VolumesInspectRequest {
  49. string id = 1;
  50. }
  51. message VolumesInspectResponse {
  52. Volume volume = 1;
  53. }