Skip to content

Commit

Permalink
fix: align all http annotations
Browse files Browse the repository at this point in the history
leaving List and Parent for next PR

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
  • Loading branch information
glimchb committed Sep 23, 2023
1 parent 94550f5 commit 0b94b84
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 64 deletions.
12 changes: 6 additions & 6 deletions storage/v1alpha1/backend_aio.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ service AioVolumeService {
// Create an Aio Volume
rpc CreateAioVolume (CreateAioVolumeRequest) returns (AioVolume) {
option (google.api.http) = {
post: "/v1/volumes"
post: "/v1/aioVolumes"
body: "aio_volume"
};
option (google.api.method_signature) = "aio_volume,aio_volume_id";
}
// Delete an Aio Volume
rpc DeleteAioVolume (DeleteAioVolumeRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1/{name=AioVolumes/*}"
delete: "/v1/{name=aioVolumes/*}"
};
option (google.api.method_signature) = "name";
}
// Update an Aio Volume
rpc UpdateAioVolume (UpdateAioVolumeRequest) returns (AioVolume) {
option (google.api.http) = {
patch: "/v1/{aio_volume.name=subsystems}"
patch: "/v1/{aio_volume.name=aioVolumes/*}"
body: "aio_volume"
};
option (google.api.method_signature) = "aio_volume,update_mask";
Expand All @@ -55,14 +55,14 @@ service AioVolumeService {
// Get an Aio Volume
rpc GetAioVolume (GetAioVolumeRequest) returns (AioVolume) {
option (google.api.http) = {
get: "/v1/{name=AioVolumes/*}"
get: "/v1/{name=aioVolumes/*}"
};
option (google.api.method_signature) = "name";
}
// Get an Aio Volume statistics
rpc StatsAioVolume (StatsAioVolumeRequest) returns (StatsAioVolumeResponse) {
option (google.api.http) = {
get: "/v1/{name=AioVolumes/*}:stats"
get: "/v1/{name=aioVolumes/*}:stats"
};
option (google.api.method_signature) = "name";
}
Expand All @@ -71,7 +71,7 @@ service AioVolumeService {
message AioVolume {
option (google.api.resource) = {
type: "storage.opiproject.org/AioVolume"
pattern: "volumes/{volume}"
pattern: "aioVolumes/{volume}"
singular: "aioVolume"
plural: "aioVolumes"
};
Expand Down
12 changes: 6 additions & 6 deletions storage/v1alpha1/backend_null.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ service NullVolumeService {
// Create an Null Volume
rpc CreateNullVolume (CreateNullVolumeRequest) returns (NullVolume) {
option (google.api.http) = {
post: "/v1/volumes"
post: "/v1/nullVolumes"
body: "null_volume"
};
option (google.api.method_signature) = "null_volume,null_volume_id";
}
// Delete an Null Volume
rpc DeleteNullVolume (DeleteNullVolumeRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1/{name=NullVolumes/*}"
delete: "/v1/{name=nullVolumes/*}"
};
option (google.api.method_signature) = "name";
}
// Update an Null Volume
rpc UpdateNullVolume (UpdateNullVolumeRequest) returns (NullVolume) {
option (google.api.http) = {
patch: "/v1/{null_volume.name=subsystems}"
patch: "/v1/{null_volume.name=nullVolumes/*}"
body: "null_volume"
};
option (google.api.method_signature) = "null_volume,update_mask";
Expand All @@ -55,14 +55,14 @@ service NullVolumeService {
// Get an Null Volume
rpc GetNullVolume (GetNullVolumeRequest) returns (NullVolume) {
option (google.api.http) = {
get: "/v1/{name=NullVolumes/*}"
get: "/v1/{name=nullVolumes/*}"
};
option (google.api.method_signature) = "name";
}
// Get an Null Volume statistics
rpc StatsNullVolume (StatsNullVolumeRequest) returns (StatsNullVolumeResponse) {
option (google.api.http) = {
get: "/v1/{name=NullVolumes/*}:stats"
get: "/v1/{name=nullVolumes/*}:stats"
};
option (google.api.method_signature) = "name";
}
Expand All @@ -71,7 +71,7 @@ service NullVolumeService {
message NullVolume {
option (google.api.resource) = {
type: "storage.opiproject.org/NullVolume"
pattern: "volumes/{volume}"
pattern: "nullVolumes/{volume}"
singular: "nullVolume"
plural: "nullVolumes"
};
Expand Down
30 changes: 15 additions & 15 deletions storage/v1alpha1/backend_nvme_tcp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ service NvmeRemoteControllerService {
// Create an Nvme Remote Controller
rpc CreateNvmeRemoteController (CreateNvmeRemoteControllerRequest) returns (NvmeRemoteController) {
option (google.api.http) = {
post: "/v1/volumes"
post: "/v1/nvmeRemoteControllers"
body: "nvme_remote_controller"
};
option (google.api.method_signature) = "nvme_remote_controller,nvme_remote_controller_id";
}
// Delete an Nvme Remote Controller
rpc DeleteNvmeRemoteController (DeleteNvmeRemoteControllerRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1/{name=NvmeRemoteControllers/*}"
delete: "/v1/{name=nvmeRemoteControllers/*}"
};
option (google.api.method_signature) = "name";
}
// Update an Nvme Remote Controller
rpc UpdateNvmeRemoteController (UpdateNvmeRemoteControllerRequest) returns (NvmeRemoteController) {
option (google.api.http) = {
patch: "/v1/{nvme_remote_controller.name=subsystems}"
patch: "/v1/{nvme_remote_controller.name=nvmeRemoteControllers/*}"
body: "nvme_remote_controller"
};
option (google.api.method_signature) = "nvme_remote_controller,update_mask";
Expand All @@ -55,22 +55,22 @@ service NvmeRemoteControllerService {
// Get an Nvme Remote Controller
rpc GetNvmeRemoteController (GetNvmeRemoteControllerRequest) returns (NvmeRemoteController) {
option (google.api.http) = {
get: "/v1/{name=NvmeRemoteControllers/*}"
get: "/v1/{name=nvmeRemoteControllers/*}"
};
option (google.api.method_signature) = "name";
}
// Reset an Nvme Remote Controller
rpc ResetNvmeRemoteController (ResetNvmeRemoteControllerRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/v1/{name=NvmeRemoteControllers/*}:reset"
post: "/v1/{name=nvmeRemoteControllers/*}:reset"
body: "*"
};
option (google.api.method_signature) = "name";
}
// Get an Nvme Remote Controller statistics
rpc StatsNvmeRemoteController (StatsNvmeRemoteControllerRequest) returns (StatsNvmeRemoteControllerResponse) {
option (google.api.http) = {
get: "/v1/{name=NvmeRemoteControllers/*}:stats"
get: "/v1/{name=nvmeRemoteControllers/*}:stats"
};
option (google.api.method_signature) = "name";
}
Expand All @@ -84,29 +84,29 @@ service NvmeRemoteControllerService {
// Get an Nvme Remote Namespace
rpc GetNvmeRemoteNamespace (GetNvmeRemoteNamespaceRequest) returns (NvmeRemoteNamespace) {
option (google.api.http) = {
get: "/v1/{name=NvmeRemoteNamespaces/*}"
get: "/v1/{name=nvmeRemoteNamespaces/*}"
};
option (google.api.method_signature) = "name";
}
// Create an Nvme Path
rpc CreateNvmePath (CreateNvmePathRequest) returns (NvmePath) {
option (google.api.http) = {
post: "/v1/volumes"
post: "/v1/nvmePaths"
body: "nvme_path"
};
option (google.api.method_signature) = "nvme_path,nvme_path_id";
}
// Delete an Nvme Path
rpc DeleteNvmePath (DeleteNvmePathRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1/{name=NvmePaths/*}"
delete: "/v1/{name=nvmePaths/*}"
};
option (google.api.method_signature) = "name";
}
// Update an Nvme Path
rpc UpdateNvmePath (UpdateNvmePathRequest) returns (NvmePath) {
option (google.api.http) = {
patch: "/v1/{nvme_path.name=subsystems}"
patch: "/v1/{nvme_path.name=nvmePaths/*}"
body: "nvme_path"
};
option (google.api.method_signature) = "nvme_path,update_mask";
Expand All @@ -121,14 +121,14 @@ service NvmeRemoteControllerService {
// Get an Nvme Path
rpc GetNvmePath (GetNvmePathRequest) returns (NvmePath) {
option (google.api.http) = {
get: "/v1/{name=NvmePaths/*}"
get: "/v1/{name=nvmePaths/*}"
};
option (google.api.method_signature) = "name";
}
// Get an Nvme Path statistics
rpc StatsNvmePath (StatsNvmePathRequest) returns (StatsNvmePathResponse) {
option (google.api.http) = {
get: "/v1/{name=NvmePaths/*}:stats"
get: "/v1/{name=nvmePaths/*}:stats"
};
option (google.api.method_signature) = "name";
}
Expand All @@ -137,7 +137,7 @@ service NvmeRemoteControllerService {
message NvmeRemoteController {
option (google.api.resource) = {
type: "storage.opiproject.org/NvmeRemoteController"
pattern: "volumes/{volume}"
pattern: "nvmeRemoteControllers/{volume}"
singular: "nvmeRemoteController"
plural: "nvmeRemoteControllers"
};
Expand Down Expand Up @@ -178,7 +178,7 @@ message TcpController {
message NvmePath {
option (google.api.resource) = {
type: "storage.opiproject.org/NvmePath"
pattern: "volumes/{volume}"
pattern: "nvmePaths/{volume}"
singular: "nvmePath"
plural: "nvmePaths"
};
Expand Down Expand Up @@ -229,7 +229,7 @@ message NvmeRemoteNamespace {
// namespace's unique key. Assign to middle/front-end objects.
option (google.api.resource) = {
type: "storage.opiproject.org/NvmeRemoteNamespace"
pattern: "volumes/{volume}"
pattern: "nvmeRemoteNamespaces/{volume}"
singular: "nvmeRemoteNamespace"
plural: "nvmeRemoteNamespaces"
};
Expand Down
12 changes: 6 additions & 6 deletions storage/v1alpha1/frontend_virtio_blk.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ service FrontendVirtioBlkService {
// Create an Virtio Blk
rpc CreateVirtioBlk (CreateVirtioBlkRequest) returns (VirtioBlk) {
option (google.api.http) = {
post: "/v1/volumes"
post: "/v1/virtioBlks"
body: "virtio_blk"
};
option (google.api.method_signature) = "virtio_blk,virtio_blk_id";
}
// Delete an Virtio Blk
rpc DeleteVirtioBlk (DeleteVirtioBlkRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1/{name=VirtioBlks/*}"
delete: "/v1/{name=virtioBlks/*}"
};
option (google.api.method_signature) = "name";
}
// Update an Virtio Blk
rpc UpdateVirtioBlk (UpdateVirtioBlkRequest) returns (VirtioBlk) {
option (google.api.http) = {
patch: "/v1/{virtio_blk.name=subsystems}"
patch: "/v1/{virtio_blk.name=virtioBlks/*}"
body: "virtio_blk"
};
option (google.api.method_signature) = "virtio_blk,update_mask";
Expand All @@ -54,14 +54,14 @@ service FrontendVirtioBlkService {
// Get an Virtio Blk
rpc GetVirtioBlk (GetVirtioBlkRequest) returns (VirtioBlk) {
option (google.api.http) = {
get: "/v1/{name=VirtioBlks/*}"
get: "/v1/{name=virtioBlks/*}"
};
option (google.api.method_signature) = "name";
}
// Get an Virtio Blk statistics
rpc StatsVirtioBlk (StatsVirtioBlkRequest) returns (StatsVirtioBlkResponse) {
option (google.api.http) = {
get: "/v1/{name=VirtioBlks/*}:stats"
get: "/v1/{name=virtioBlks/*}:stats"
};
option (google.api.method_signature) = "name";
}
Expand All @@ -70,7 +70,7 @@ service FrontendVirtioBlkService {
message VirtioBlk {
option (google.api.resource) = {
type: "storage.opiproject.org/VirtioBlk"
pattern: "volumes/{volume}"
pattern: "virtioBlks/{volume}"
singular: "virtioBlk"
plural: "virtioBlks"
};
Expand Down
Loading

0 comments on commit 0b94b84

Please sign in to comment.