Update Google v1
Adding setUpRedfishRoute for all handlers because this method is required
to return a gRPC response. In setUpRedfishRoute, the Odata version header
is set and this is required for gRPC to return a response
Tested:
ytbjs2-n1:~# /data/milotic_tool_cli --resource_url='/google/v1/' --uid= \
--host host-control-node.localproductionnode.goog --port 443 \
--auth tls_not_verify_server --command get \
--cert_chain /root/.zatar/cert.pem --private_key /root/.zatar/key.pem
URL is /google/v1/
Response JSON is /google/v1/{
"@odata.id": "/google/v1",
"@odata.type": "#GoogleServiceRoot.v1_0_0.GoogleServiceRoot",
"Id": "Google Rest RootService",
"Name": "Google Service Root",
"RootOfTrustCollection": {
"@odata.id": "/google/v1/RootOfTrustCollection"
},
"Version": "1.0.0"
}
Google-Bug-Id: 272117695
Change-Id: I9349f53de881de74589c5084490a9721e59b95b4
Signed-off-by: Edward Lee <edwarddl@google.com>
(cherry picked from commit 148f3ff8fa6714f164fadb45a8c0330b483bc63f)
2 files changed