*Release on Oct 3, 2023*
*Compatible with TiDB Cloud v1beta and v1beta1*
What's Changed
Support the newly added billing endpoint `GET https://billing.tidbapi.com/v1beta1/bills/{YYYY-MM}`, which is compatible with TiDB Cloud API v1beta1 [Release 20230928](https://docs.pingcap.com/tidbcloud/api/v1beta1#section/API-Changelog/2023-09-28) by Oreoxmt in https://github.com/Oreoxmt/tidbcloudy/pull/24
To be compatible with TiDB Cloud API v1beta and v1beta1 in the current release (1.0.8), the following changes are made:
- Introduce the `tidbcloudy.baseURL` module to specify the base URL of the API server. For v1beta, the base URL is `https://api.tidbcloud.com/v1beta`. For the billing system v1beta1, the base URL is `https://billing.tidbapi.com/v1beta1`.
- To support v1beta and v1beta1 in 1.0.8, `Context.base_url` is removed. Instead, `Context().call_...()` methods accept a `base_url` parameter to specify the base URL of the API server.
- To reduce the change of preceding code, such as the Project, Cluster, Backup, and Restore classes, the v1beta base URL is set as the default value when calling `Context().call_...()` methods.
- Introduce the `TiDBCloud().get_monthly_bill()` method to support the newly added billing endpoint **Return organization monthly bills** and describe the usage in [`examples/v1beta1_get_monthly_bill.py`](https://github.com/Oreoxmt/tidbcloudy/blob/v1.0.8/examples/v1beta1_get_monthly_bill.py).
**Full Changelog**: https://github.com/Oreoxmt/tidbcloudy/compare/v1.0.7...v1.0.8