You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by zr...@apache.org on 2021/09/15 15:31:58 UTC

[trafficcontrol] branch 6.0.x updated: Walk back deprecation of TO APIv3, add instability warnings for 4.0 (#6209)

This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch 6.0.x
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/6.0.x by this push:
     new 0449f0b  Walk back deprecation of TO APIv3, add instability warnings for 4.0 (#6209)
0449f0b is described below

commit 0449f0b0b8880027bd2daea0f75b88e95831769e
Author: ocket8888 <oc...@gmail.com>
AuthorDate: Wed Sep 15 09:26:32 2021 -0600

    Walk back deprecation of TO APIv3, add instability warnings for 4.0 (#6209)
    
    * Walk back deprecation of TO APIv3, add instability warnings for 4.0
    
    * Update client READMEs
    
    (cherry picked from commit 7d67421a77fdd1146a9dba2e2015ecd2b686583d)
---
 CHANGELOG.md                    | 4 ++--
 docs/source/api/index.rst       | 7 +++----
 traffic_ops/v2-client/README.md | 4 ++--
 traffic_ops/v3-client/README.md | 7 +------
 traffic_ops/v4-client/README.md | 7 ++++++-
 5 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index af5057b..1e6e20f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,7 +33,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
 - Added ORT flag to set local.dns bind address from server service addresses
 - Added an endpoint for statuses on asynchronous jobs and applied it to the ACME renewal endpoint.
 - Added two new cdn.conf options to make Traffic Vault configuration more backend-agnostic: `traffic_vault_backend` and `traffic_vault_config`
-- Traffic Ops API version 4.0
+- Traffic Ops API version 4.0 - This version is **unstable** meaning that breaking changes can occur at any time - use at your own peril!
 - `GET` request method for `/deliveryservices/{{ID}}/assign`
 - `GET` request method for `/deliveryservices/{{ID}}/status`
 - [#5644](https://github.com/apache/trafficcontrol/issues/5644) ORT config generation: Added ATS9 ip_allow.yaml support, and automatic generation if the server's package Parameter is 9.\*
@@ -139,7 +139,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
 - The Traffic Ops API routes `GET /api/{version}/cachegroupparameters`, `POST /api/{version}/cachegroupparameters`, `GET /api/{version}/cachegroups/{id}/parameters`, and `DELETE /api/{version}/cachegroupparameters/{cachegroupID}/{parameterId}` have been deprecated and will no longer be available as of Traffic Ops API v4
 - The `riak_port` option in cdn.conf is now deprecated. Please use the `"port"` field in `traffic_vault_config` instead.
 - The `traffic_ops_ort.pl` tool has been deprecated in favor of `t3c`, and will be removed in the next major version.
-- With the release of Traffic Ops API version 4.0, major API versions 2 and 3 are now deprecated, subject to removal with the next ATC major version release, at the earliest.
+- With the release of ATC v6.0, major API version 2 is now deprecated, subject to removal with the next ATC major version release, at the earliest.
 
 ### Removed
 - Removed the unused `backend_max_connections` option from `cdn.conf`.
diff --git a/docs/source/api/index.rst b/docs/source/api/index.rst
index 9142bcf..58f7166 100644
--- a/docs/source/api/index.rst
+++ b/docs/source/api/index.rst
@@ -309,7 +309,7 @@ API V2 Routes
 API routes available in version 2.
 
 .. deprecated:: ATCv6
-	Traffic Ops API version 2 is deprecated in favor of version 4.
+	Traffic Ops API version 2 is deprecated in favor of version 3.
 
 .. toctree::
 	:maxdepth: 4
@@ -321,9 +321,6 @@ API V3 Routes
 =============
 API routes available in version 3.
 
-.. deprecated:: ATCv6
-	Traffic Ops API version 3 is deprecated in favor of version 4.
-
 .. toctree::
 	:maxdepth: 4
 	:glob:
@@ -334,6 +331,8 @@ API V4 Routes
 =============
 API routes available in version 4.
 
+.. danger:: API version 4 is *unstable*, meaning that breaking changes can occur at any time. Use at your own peril!
+
 .. toctree::
 	:maxdepth: 4
 	:glob:
diff --git a/traffic_ops/v2-client/README.md b/traffic_ops/v2-client/README.md
index 8ec31b8..53aec46 100644
--- a/traffic_ops/v2-client/README.md
+++ b/traffic_ops/v2-client/README.md
@@ -2,13 +2,13 @@
 
 ## Deprecated
 The version of the Traffic Ops API supported by this client is deprecated.
-Please switch to the `github.com/apache/trafficcontrol/traffic_ops/v4-client`
+Please switch to the `github.com/apache/trafficcontrol/traffic_ops/v3-client`
 package.
 
 ## Getting Started
 1. Obtain the latest version of the library
 
-`go get github.com/apache/trafficcontrol/traffic_ops/client`
+`go get github.com/apache/trafficcontrol/traffic_ops/v2-client`
 
 2. Get a basic TO session started and fetch a list of CDNs
 ```go
diff --git a/traffic_ops/v3-client/README.md b/traffic_ops/v3-client/README.md
index 34d0cd8..2331303 100644
--- a/traffic_ops/v3-client/README.md
+++ b/traffic_ops/v3-client/README.md
@@ -1,14 +1,9 @@
 # Traffic Ops Go Client
 
-## Deprecated
-The version of the Traffic Ops API supported by this client is deprecated.
-Please switch to the `github.com/apache/trafficcontrol/traffic_ops/v4-client`
-package.
-
 ## Getting Started
 1. Obtain the latest version of the library
 
-`go get github.com/apache/trafficcontrol/traffic_ops/client`
+`go get github.com/apache/trafficcontrol/traffic_ops/v3-client`
 
 2. Get a basic TO session started and fetch a list of CDNs
 ```go
diff --git a/traffic_ops/v4-client/README.md b/traffic_ops/v4-client/README.md
index e2a42ce..d645023 100644
--- a/traffic_ops/v4-client/README.md
+++ b/traffic_ops/v4-client/README.md
@@ -1,9 +1,14 @@
 # Traffic Ops Go Client
 
+## Unstable
+The version of the Traffic Ops API for which this client was made is
+*unstable*, meaning that breaking changes to it - and to this client - can
+occur at any time. Use at your own peril!
+
 ## Getting Started
 1. Obtain the latest version of the library
 
-`go get github.com/apache/trafficcontrol/traffic_ops/client`
+`go get github.com/apache/trafficcontrol/traffic_ops/v4-client`
 
 2. Get a basic TO session started and fetch a list of CDNs
 ```go