zrhoffman commented on code in PR #7744:
URL: https://github.com/apache/trafficcontrol/pull/7744#discussion_r1307822455
##########
traffic_ops/v5-client/server_server_capabilities.go:
##########
@@ -31,14 +31,14 @@ const apiServerServerCapabilities =
"/server_server_capabilities"
// apiMultipleServersCapabilities is the API version-relative path to the
/multiple_servers_capabilities API endpoint.
const apiMultipleServersCapabilities = "/multiple_servers_capabilities"
-// CreateServerServerCapability assigns a Server Capability to a Server.
-func (to *Session) CreateServerServerCapability(ssc tc.ServerServerCapability,
opts RequestOptions) (tc.Alerts, toclientlib.ReqInf, error) {
+// CreateServerServerCapabilityV5 assigns a Server Capability to a Server.
+func (to *Session) CreateServerServerCapability(ssc
tc.ServerServerCapabilityV5, opts RequestOptions) (tc.Alerts,
toclientlib.ReqInf, error) {
var alerts tc.Alerts
reqInf, err := to.post(apiServerServerCapabilities, opts, ssc, &alerts)
return alerts, reqInf, err
}
-// DeleteServerServerCapability unassigns a Server Capability from a Server.
+// DeleteServerServerCapabilityV5 unassigns a Server Capability from a Server.
func (to *Session) DeleteServerServerCapability(serverID int, serverCapability
string, opts RequestOptions) (tc.Alerts, toclientlib.ReqInf, error) {
Review Comment:
Changed godoc to `DeleteServerServerCapability` in c2e7652089
##########
traffic_ops/v5-client/server_server_capabilities.go:
##########
@@ -52,8 +52,8 @@ func (to *Session) DeleteServerServerCapability(serverID int,
serverCapability s
// GetServerServerCapabilities retrieves a list of Server Capabilities that are
// assigned to Servers.
-func (to *Session) GetServerServerCapabilities(opts RequestOptions)
(tc.ServerServerCapabilitiesResponse, toclientlib.ReqInf, error) {
- var resp tc.ServerServerCapabilitiesResponse
+func (to *Session) GetServerServerCapabilities(opts RequestOptions)
(tc.ServerServerCapabilitiesResponseV5, toclientlib.ReqInf, error) {
+ var resp tc.ServerServerCapabilitiesResponseV5
Review Comment:
We don't want V5 in the struct method name, since this is already the v5
version of the `Session` struct
##########
traffic_ops/v5-client/server_server_capabilities.go:
##########
@@ -31,14 +31,14 @@ const apiServerServerCapabilities =
"/server_server_capabilities"
// apiMultipleServersCapabilities is the API version-relative path to the
/multiple_servers_capabilities API endpoint.
const apiMultipleServersCapabilities = "/multiple_servers_capabilities"
-// CreateServerServerCapability assigns a Server Capability to a Server.
-func (to *Session) CreateServerServerCapability(ssc tc.ServerServerCapability,
opts RequestOptions) (tc.Alerts, toclientlib.ReqInf, error) {
+// CreateServerServerCapabilityV5 assigns a Server Capability to a Server.
+func (to *Session) CreateServerServerCapability(ssc
tc.ServerServerCapabilityV5, opts RequestOptions) (tc.Alerts,
toclientlib.ReqInf, error) {
Review Comment:
Changed godoc to `CreateServerServerCapability` in c2e7652089
##########
CHANGELOG.md:
##########
@@ -102,6 +102,7 @@ The format is based on [Keep a
Changelog](http://keepachangelog.com/en/1.0.0/).
- [#7441](https://github.com/apache/trafficcontrol/pull/7441) *Traffic Ops*
Fixed the invalidation jobs endpoint to respect CDN locks.
- [#7413](https://github.com/apache/trafficcontrol/issues/7413) *Traffic Ops*
Fixes service_category apis to respond with RFC3339 date/time Format
- [#7413](https://github.com/apache/trafficcontrol/issues/7706) *Traffic Ops*
Fixes /statuses apis to respond with RFC3339 date/time format
+- [#7743](https://github.com/apache/trafficcontrol/issues/7706) *Traffic Ops*
Fixes /server_server_capabilities apis to respond with RFC3339 date/time format
Review Comment:
Good catch, fixed!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]