Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pinecone/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.8
2.0.9
4 changes: 4 additions & 0 deletions pinecone/core/client/model/index_meta_database_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def openapi_types():
"""
return {
'ready': (bool,), # noqa: E501
'state': (str,), # noqa: E501
}

@cached_property
Expand All @@ -96,6 +97,7 @@ def discriminator():

attribute_map = {
'ready': 'ready', # noqa: E501
'state': 'state', # noqa: E501
}

read_only_vars = {
Expand Down Expand Up @@ -140,6 +142,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
ready (bool): [optional] # noqa: E501
state (str): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down Expand Up @@ -222,6 +225,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
ready (bool): [optional] # noqa: E501
state (str): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
3 changes: 2 additions & 1 deletion pinecone/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ def describe_index(name: str):
response = api_instance.describe_index(name)
db = response['database']
ready = response['status']['ready']
state = response['status']['state']
return IndexDescription(name=db['name'], index_type=db['index_type'], metric=db['metric'],
replicas=db['replicas'], dimension=db['dimension'], shards=db['shards'],
pods=db.get('pods', db['shards']*db['replicas']), pod_type=db.get('pod_type', 'p1'),
index_config=db['index_config'], status={'ready': ready})
index_config=db['index_config'], status={'ready': ready, 'state': state})


def scale_index(name: str, replicas: int):
Expand Down
3 changes: 3 additions & 0 deletions specs/index_service.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@
"properties": {
"ready": {
"type": "boolean"
},
"state": {
"type": "string"
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions specs/pinecone_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,9 @@
"properties": {
"ready": {
"type": "boolean"
},
"state": {
"type": "string"
}
}
}
Expand Down