-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[storage] [backend] Add Handle to BE object now #217
Conversation
Related to opiproject#174 Resource-oriented design https://google.aip.dev/121 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, just two small questions. thanks
@@ -39,49 +44,37 @@ message NVMfRemoteControllerConnectRequest { | |||
NVMfRemoteController ctrl = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not provide the objectKey here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. according to what we did in frontend, we put the ID inside the object, so I wanted to align those here as well. From https://google.aip.dev/133#user-specified-ids indeed IDs should be in the request message, not the object and named string {resource}_id
} | ||
|
||
message NVMfRemoteControllerListRequest { | ||
int64 id = 1; | ||
int32 page_size = 1; | ||
string page_token = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how are these related to this pr ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could've split in 2 commits here, you are right.
the page fields are from https://google.aip.dev/132
just aligning the objects here from the frontend work we did
we could go with using keys/handles and status/spec on backend objects as well. |
yes, good idea |
See opiproject#174 Resource-oriented design https://google.aip.dev/121 for word in Get List Create Update Delete; do for i in AioController NullDebug NVMfRemoteController; do sed -i "s/${i}${word}/${word}${i}/g" v1alpha1/backend_*.proto ; done; done Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
rpc AioControllerUpdate (AioControllerUpdateRequest) returns (AioController) {} | ||
rpc CreateAioController (CreateAioControllerRequest) returns (AioController) { | ||
option (google.api.http) = { | ||
post: "/v1/subsystems" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URLs will be fixed #188
rpc NullDebugGet (NullDebugGetRequest) returns (NullDebug) {} | ||
rpc CreateNullDebug (CreateNullDebugRequest) returns (NullDebug) { | ||
option (google.api.http) = { | ||
post: "/v1/subsystems" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URLs will be fixed #188
rpc NVMfRemoteControllerGet (NVMfRemoteControllerGetRequest) returns (NVMfRemoteControllerGetResponse) {} | ||
rpc CreateNVMfRemoteController (CreateNVMfRemoteControllerRequest) returns (NVMfRemoteController) { | ||
option (google.api.http) = { | ||
post: "/v1/subsystems" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URLs will be fixed #188
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me
Resource-oriented design https://google.aip.dev/121 for word in Get List Create Update Delete; do for i in AioController NullDebug NVMfRemoteController; do sed -i "s/${i}${word}/${word}${i}/g" v1alpha1/backend_*.proto ; done; done See opiproject/opi-api#217 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Resource-oriented design https://google.aip.dev/121 for word in Get List Create Update Delete; do for i in AioController NullDebug NVMfRemoteController; do sed -i "s/${i}${word}/${word}${i}/g" v1alpha1/backend_*.proto ; done; done See opiproject/opi-api#217 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Resource-oriented design https://google.aip.dev/121 for word in Get List Create Update Delete; do for i in AioController NullDebug NVMfRemoteController; do sed -i "s/${i}${word}/${word}${i}/g" v1alpha1/backend_*.proto ; done; done See opiproject/opi-api#217 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Resource-oriented design https://google.aip.dev/121 for word in Get List Create Update Delete; do for i in AioController NullDebug NVMfRemoteController; do sed -i "s/${i}${word}/${word}${i}/g" v1alpha1/backend_*.proto ; done; done See opiproject/opi-api#217 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Resource-oriented design https://google.aip.dev/121 for word in Get List Create Update Delete; do for i in AioController NullDebug NVMfRemoteController; do sed -i "s/${i}${word}/${word}${i}/g" v1alpha1/backend_*.proto ; done; done See opiproject/opi-api#217 Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Related to #174
Resource-oriented design https://google.aip.dev/121
Signed-off-by: Boris Glimcher Boris.Glimcher@emc.com