Skip to content

Commit 5dc8372

Browse files
committed
doc enum fix
1 parent eb014b2 commit 5dc8372

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

docs/api/v1beta/acquire-lock.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ __Success:__
4949
{
5050
"lock": {
5151
"name": "users/123/profile",
52-
"state": "EXCLUSIVE_LOCKED",
52+
"state": "LOCK_STATE_EXCLUSIVE_LOCKED",
5353
"locked_at": 1695826239671432000,
5454
"last_activity_at": 1695826239671432000,
5555
"lock_holders": [
@@ -72,7 +72,7 @@ __Held by someone else:__
7272
{
7373
"lock": {
7474
"name": "users/123/profile",
75-
"state": "EXCLUSIVE_LOCKED",
75+
"state": "LOCK_STATE_EXCLUSIVE_LOCKED",
7676
"locked_at": 1695826200000000000,
7777
"last_activity_at": 1695826200000000000,
7878
"lock_holders": [

docs/api/v1beta/get-lock.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ __Currently held:__
2626
{
2727
"lock": {
2828
"name": "users/123/profile",
29-
"state": "EXCLUSIVE_LOCKED",
29+
"state": "LOCK_STATE_EXCLUSIVE_LOCKED",
3030
"locked_at": 1695826239671432000,
3131
"last_activity_at": 1695826239671432000,
3232
"lock_holders": [
@@ -48,7 +48,7 @@ __Not held:__
4848
{
4949
"lock": {
5050
"name": "users/123/profile",
51-
"state": "UNLOCKED",
51+
"state": "LOCK_STATE_UNLOCKED",
5252
"locked_at": 0,
5353
"last_activity_at": 0,
5454
"lock_holders": []

docs/api/v1beta/list-locks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Read-only and safe to retry.
2929
"locks": [
3030
{
3131
"name": "users/123/profile",
32-
"state": "EXCLUSIVE_LOCKED",
32+
"state": "LOCK_STATE_EXCLUSIVE_LOCKED",
3333
"locked_at": 1695826239671432000,
3434
"last_activity_at": 1695826239671432000,
3535
"lock_holders": [

docs/api/v1beta/release-lock.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Safe to retry.
2626
{
2727
"lock": {
2828
"name": "users/123/profile",
29-
"state": "UNLOCKED",
29+
"state": "LOCK_STATE_UNLOCKED",
3030
"locked_at": 0,
3131
"last_activity_at": 1695826239671432000,
3232
"lock_holders": []

docs/locks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ AcquireLockResponse (acquired):
119119
{
120120
"lock": {
121121
"name": "users/123/profile",
122-
"state": "EXCLUSIVE_LOCKED",
122+
"state": "LOCK_STATE_EXCLUSIVE_LOCKED",
123123
"locked_at": 1695826239671432000,
124124
"last_activity_at": 1695826239671432000,
125125
"lock_holders": [
@@ -138,7 +138,7 @@ AcquireLockResponse (already locked by someone else — not an error):
138138
{
139139
"lock": {
140140
"name": "users/123/profile",
141-
"state": "EXCLUSIVE_LOCKED",
141+
"state": "LOCK_STATE_EXCLUSIVE_LOCKED",
142142
"locked_at": 1695826200000000000,
143143
"last_activity_at": 1695826200000000000,
144144
"lock_holders": [
@@ -168,7 +168,7 @@ ReleaseLockResponse:
168168
{
169169
"lock": {
170170
"name": "users/123/profile",
171-
"state": "UNLOCKED",
171+
"state": "LOCK_STATE_UNLOCKED",
172172
"locked_at": 0,
173173
"last_activity_at": 1695826239671432000,
174174
"lock_holders": []
@@ -184,7 +184,7 @@ AcquireLockResponse:
184184
{
185185
"lock": {
186186
"name": "users/123/profile",
187-
"state": "SHARED_LOCKED",
187+
"state": "LOCK_STATE_SHARED_LOCKED",
188188
"locked_at": 1695826239671432000,
189189
"last_activity_at": 1695826240120000000,
190190
"lock_holders": [

0 commit comments

Comments
 (0)