platformsh / platformsh-client-js

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

Add resources limit property to subscription model #287

Closed shakaman closed 9 months ago

shakaman commented 9 months ago

This PR adds new property returned by the api on subscription model.

...
    "resources_limit": {
        "limit": {
            "cpu": 4.5,
            "environments": 2,
            "memory": 12,
            "projects": 1,
            "storage": 20
        },
        "used": {
            "projects": {
                "2802932": {
                    "environments": 1
                    "cpu": 1,
                    "memory": 1
                },
                "2803412": {
                    "environments": 1
                    "cpu": 1,
                    "memory": 1
                },
            },
            "totals": {
                "cpu": 4,
                "memory": 1.75,
                "projects": 2,
                "storage": 0
            }
        }
    },
...