@@ -108,30 +108,22 @@ A resource ID segment identifies the resource within its parent collection. In
108108the resource name ` publishers/123/books/les-miserables ` , ` 123 ` is the resource
109109ID for the publisher, and ` les-miserables ` is the resource ID for the book.
110110
111- - Resource IDs ** may** be either always set by users (required on resource
112- creation), optionally set by users (optional on resource creation,
113- server-generated if unset), or never set by users (not accepted at resource
114- creation). They ** should** be immutable once created.
115- - If resource IDs are user-settable, the API ** must** document allowed
116- formats. User-settable resource IDs ** should** conform to [ RFC-1034] [ ] ;
117- which restricts to letters, numbers, and hyphen, with the first character
118- a letter, the last a letter or a number, and a 63 character maximum.
119- - Additionally, user-settable resource IDs ** should** restrict letters to
120- lower-case (` ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$ ` ).
121- - Characters outside of ASCII ** should not** be permitted; however, if
122- Unicode characters are necessary, APIs ** must** follow guidance in
123- [ AIP-210] [ ] .
124- - User-settable IDs ** should not** be permitted to be a UUID (or any value
125- that syntactically appears to be a UUID).
126- - If resource IDs are not user-settable, the API ** should** document the
127- basic format, and any upper boundaries (for example, "at most 63
128- characters").
129- - For more information, see the [ create] [ ] standard method.
130-
131- ** Important:** Resources that are declarative-friendly ([ AIP-128] [ ] ) ** must** use
132- user-settable resource IDs.
133-
134- [ aip-128 ] : ./0128.md
111+ - If resource IDs are user-specified, the API ** must** document allowed
112+ formats. User-specified resource IDs ** should** conform to [ RFC-1034] [ ] ;
113+ which restricts to letters, numbers, and hyphen, with the first character
114+ a letter, the last a letter or a number, and a 63 character maximum.
115+ - Additionally, user-specified resource IDs ** should** restrict letters to
116+ lower-case (` ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$ ` ).
117+ - Characters outside of ASCII ** should not** be permitted; however, if
118+ Unicode characters are necessary, APIs ** must** follow guidance in
119+ [ AIP-210] [ ] .
120+ - User-specified IDs ** should not** be permitted to be a UUID (or any value
121+ that syntactically appears to be a UUID).
122+ - If resource IDs are not user-settable, the API ** should** document the
123+ basic format, and any upper boundaries (for example, "at most 63
124+ characters").
125+ - For more information, see the [ create] [ ] standard method.
126+
135127[ create ] : ./0133.md#user-specified-ids
136128[ rfc-1034 ] : https://tools.ietf.org/html/rfc1034
137129
0 commit comments