Releases: Oreoxmt/tidbcloudy
1.1.0
What's Changed
Add test cases for tidbcloudy by @Oreoxmt in #28
-
Support specifying timezone in
timestamp_to_string()
andget_current_year_month()
-
Implement a mock server using Flask to facilitate testing
-
Expand test coverage for the following API endpoints:
- List the cloud providers, regions and available specifications
- List all accessible projects
- Create a project
- List all clusters in a project
- Get a cluster by ID
- Create a cluster
- Modify (pause or resume) a cluster
- Delete a cluster
- List AWS Customer-Managed Encryption Keys for a project
- Configure AWS Customer-Managed Encryption Keys for a project
-
Enhance testing for certain internal features:
- the
to_object
andfrom_object
functions ofTiDBCloudyBase
util.timestamp.py
- the
CreateClusterConfig
andUpdateClusterConfig
intidbcloudy.specification
- the
-
Fix the incorrect subclass and type hint of
BillingMonthSummaryByService
Full Changelog: v1.0.10...v1.1.0
1.0.10
1.0.9
Release on Oct 3, 2023
Compatible with TiDB Cloud v1beta and v1beta1
What's Changed
Support three new endpoints, which are released in v1beta Release 20230328 by @Oreoxmt in #25
- Create a project
- List AWS Customer-Managed Encryption Keys for a project
- Configure AWS Customer-Managed Encryption Keys for a project
Full Changelog: v1.0.8...v1.0.9
1.0.8
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 ishttps://api.tidbcloud.com/v1beta
. For the billing system v1beta1, the base URL ishttps://billing.tidbapi.com/v1beta1
. - To support v1beta and v1beta1 in 1.0.8,
Context.base_url
is removed. Instead,Context().call_...()
methods accept abase_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 inexamples/v1beta1_get_monthly_bill.py
.
Full Changelog: v1.0.7...v1.0.8
1.0.7
1.0.6
1.0.5
Release on Oct 2, 2023
What's Changed
Improvements
- Support TiDB Cloud API Release 20230602: rename "Serverless Tier" to "TiDB Serverless" and "Dedicated Tier" to "TiDB Dedicated"
- Support TiDB Cloud API Release 20230801: add cluster status:
MAINTAINING
andPAUSING
- Decrease the
interval_sec
when creating a TiDB Serverless cluster inexamples/2_1_create_serverless_cluster.py
- Remove the
add_ip_access
andadd_current_ip_access
config in README: they are ignored when creating a TiDB Serverless cluster - Use
raise_for_status
instead ofstatus_code
to get the current IP address - Use HTTPS to get the current IP address
Bug Fixes
- Fix the issue that
AttributeError: 'NoneType' object has no attribute 'cluster_status'
error is reported when runningexamples/2_1_create_serverless_cluster.py
Full Changelog: v1.0.4...v1.0.5
1.0.4
Release on May 18, 2023
What's Changed
- Update the README and
pyproject.toml
.
Full Changelog: v1.0.3...v1.0.4
1.1.0a2
1.0.3
Release on Dec 5, 2022
What's Changed
- Release 1.0.3 by @Oreoxmt in #16
wait_for_ready
is deprecated and replaced bywait_for_available
- Fix the issue that wait_for_available fails to get the status of a cluster when creating (Close #13)
Full Changelog: v1.0.2...v1.0.3