Skip to content

Commit b99e304

Browse files
author
Adam Gutglick
committed
Update index state to enum
1 parent 64ea263 commit b99e304

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

pinecone/core/client/model/index_meta_database_status.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ class IndexMetaDatabaseStatus(ModelNormal):
6060
"""
6161

6262
allowed_values = {
63+
('state',): {
64+
'INITIALIZING': "Initializing",
65+
'SCALINGUP': "ScalingUp",
66+
'SCALINGDOWN': "ScalingDown",
67+
'TERMINATING': "Terminating",
68+
'READY': "Ready",
69+
},
6370
}
6471

6572
validations = {

specs/pinecone_api.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,14 @@
12031203
"type": "boolean"
12041204
},
12051205
"state": {
1206-
"type": "string"
1206+
"type": "string",
1207+
"enum": [
1208+
"Initializing",
1209+
"ScalingUp",
1210+
"ScalingDown",
1211+
"Terminating",
1212+
"Ready"
1213+
]
12071214
}
12081215
}
12091216
}

0 commit comments

Comments
 (0)