Skip to content

Commit 71f6491

Browse files
chore(AIP-155): fix request message to include book_id (#1292)
1 parent f5def3c commit 71f6491

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

aip/general/0155.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,20 @@ message CreateBookRequest {
3535
child_type: "library.googleapis.com/Book"
3636
}];
3737
38+
// The ID to use for the book, which will become the final component of
39+
// the book's resource name.
40+
//
41+
// This value should be 4-63 characters, and valid characters
42+
// are /[a-z][0-9]-/.
43+
string book_id = 2 [(google.api.field_behavior) = REQUIRED];
44+
3845
// The book to create.
39-
Book book = 2 [(google.api.field_behavior) = REQUIRED];
46+
Book book = 3 [(google.api.field_behavior) = REQUIRED];
4047
4148
// A unique identifier for this request. Restricted to 36 ASCII characters.
4249
// A random UUID is recommended.
4350
// This request is only idempotent if a `request_id` is provided.
44-
string request_id = 3 [(google.api.field_info).format = UUID4];
51+
string request_id = 4 [(google.api.field_info).format = UUID4];
4552
}
4653
```
4754

@@ -89,6 +96,7 @@ for collisions when done correctly.
8996

9097
## Changelog
9198

99+
- **2024-01-08**: Add book_id to request message.
92100
- **2023-10-02**: Add UUID format extension guidance.
93101
- **2019-08-01**: Changed the examples from "shelves" to "publishers", to
94102
present a better example of resource ownership.

0 commit comments

Comments
 (0)