fix: full resource names to resource names in names #879
+57
−63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The full resource names are changed to resource names due to the following reasons:
As I understand, a full resource names are used when a field refers to resources in multiple APIs and ambiguity can arise. For example, if a field can refer to a book in a library API, a product in an e-commerce API, or a user in an authentication API, just using the relative resource name could lead to confusion. In this case, the field could refer to a book ID, a product ID, or a user ID, depending on the context. And to avoid this ambiguity, the full resource name should be used when a field refers to resources in multiple APIs. The full resource name clearly indicates which API the resource belongs to, making it clear whether foo refers to a book in the library API (//library.googleapis.com/publishers/foo), a product in the store API (//ecommerce.googleapis.com/products/foo), or a user in the let's say authentication API (//auth.googleapis.com/users/foo). It shouldn't be used in Names of our resources because the requests are sent to a dedicated known service
//storage.opiproject.org/
Unblocks enabling of HTTP gateway #878
Need godpu patch to pass CI opiproject/godpu#437