platformsh / platformsh-client-js

Platform.sh API client library
MIT License
8 stars 12 forks source link

Update resources limit property to subscription model #288

Closed shakaman closed 9 months ago

shakaman commented 9 months ago

Finally the structure changed and is:

...
"resources_limit": {
    "limit": {
        "cpu": 2,
        "memory": 2,
        "storage": 2,
        "environments": 2,
        "projects": 2
    }
    "used": {
        "totals": {
            "cpu": 0,
            "memory": 0,
            "storage": 0,
            "environments": 0,
            "projects": 1
        },
        "projects": [
            {
                "subscription_id": 1234,
                "environments": 2
            }
        ]
    }
}
...