Skip to content

1.0.8

Compare
Choose a tag to compare
@Oreoxmt Oreoxmt released this 03 Oct 05:03
· 5 commits to main since this release
9a0f998

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 by @Oreoxmt in #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.

Full Changelog: v1.0.7...v1.0.8