You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by dy...@apache.org on 2018/09/07 16:19:48 UTC
[trafficcontrol] 03/03: Fix TO Go swaggerdocs build
This is an automated email from the ASF dual-hosted git repository.
dylan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit c4375d22fd76d9837e901d49de2898b18c2f8457
Author: Robert Butts <ro...@apache.org>
AuthorDate: Fri Sep 7 08:35:25 2018 -0600
Fix TO Go swaggerdocs build
---
traffic_ops/traffic_ops_golang/swaggerdocs/v13/asns.go | 10 +++++-----
traffic_ops/traffic_ops_golang/swaggerdocs/v13/cdns.go | 10 +++++-----
traffic_ops/traffic_ops_golang/swaggerdocs/v13/divisions.go | 10 +++++-----
.../traffic_ops_golang/swaggerdocs/v13/physlocations.go | 10 +++++-----
.../traffic_ops_golang/swaggerdocs/v13/profileparameters.go | 8 ++++----
traffic_ops/traffic_ops_golang/swaggerdocs/v13/profiles.go | 10 +++++-----
traffic_ops/traffic_ops_golang/swaggerdocs/v13/regions.go | 10 +++++-----
traffic_ops/traffic_ops_golang/swaggerdocs/v13/statuses.go | 10 +++++-----
8 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/asns.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/asns.go
index 7ee23e4..4a591c2 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/asns.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/asns.go
@@ -1,6 +1,6 @@
package v13
-import "github.com/apache/trafficcontrol/lib/go-tc/v13"
+import "github.com/apache/trafficcontrol/lib/go-tc"
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -27,7 +27,7 @@ import "github.com/apache/trafficcontrol/lib/go-tc/v13"
type ASNs struct {
// ASN Response Body
// in: body
- ASNsResponse v13.ASNsResponse `json:"response"`
+ ASNsResponse tc.ASNsResponse `json:"response"`
}
// ASN - ASNResponse to get the "response" top level key
@@ -36,7 +36,7 @@ type ASNs struct {
type ASN struct {
// ASN Response Body
// in: body
- ASNResponse v13.ASNResponse
+ ASNResponse tc.ASNResponse
}
// ASNQueryParams
@@ -73,7 +73,7 @@ type ASNPostParam struct {
//
// in: body
// required: true
- ASN v13.ASN
+ ASN tc.ASN
}
// swagger:parameters GetASNById DeleteASN
@@ -120,7 +120,7 @@ type ASNPutParam struct {
//
// in: body
// required: true
- ASN v13.ASN
+ ASN tc.ASN
}
// PutASN swagger:route PUT /asns/{id} ASN PutASN
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/cdns.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/cdns.go
index 452ca85..a7946c3 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/cdns.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/cdns.go
@@ -19,7 +19,7 @@ package v13
* under the License.
*/
-import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
+import "github.com/apache/trafficcontrol/lib/go-tc"
// CDNs - CDNsResponse to get the "response" top level key
// swagger:response CDNs
@@ -27,7 +27,7 @@ import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
type CDNs struct {
// CDN Response Body
// in: body
- CDNsResponse v13.CDNsResponse `json:"response"`
+ CDNsResponse tc.CDNsResponse `json:"response"`
}
// CDN - CDNResponse to get the "response" top level key
@@ -36,7 +36,7 @@ type CDNs struct {
type CDN struct {
// CDN Response Body
// in: body
- CDNResponse v13.CDNResponse
+ CDNResponse tc.CDNResponse
}
// CDNQueryParams
@@ -73,7 +73,7 @@ type CDNPostParam struct {
//
// in: body
// required: true
- CDN v13.CDN
+ CDN tc.CDN
}
// swagger:parameters GetCDNById DeleteCDN
@@ -120,7 +120,7 @@ type CDNPutParam struct {
//
// in: body
// required: true
- CDN v13.CDN
+ CDN tc.CDN
}
// PutCDN swagger:route PUT /cdns/{id} CDN PutCDN
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/divisions.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/divisions.go
index a4d3a95..63e4091 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/divisions.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/divisions.go
@@ -1,6 +1,6 @@
package v13
-import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
+import "github.com/apache/trafficcontrol/lib/go-tc"
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -27,7 +27,7 @@ import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
type Divisions struct {
// Division Response Body
// in: body
- DivisionsResponse v13.DivisionsResponse `json:"response"`
+ DivisionsResponse tc.DivisionsResponse `json:"response"`
}
// Division - DivisionResponse to get the "response" top level key
@@ -36,7 +36,7 @@ type Divisions struct {
type Division struct {
// Division Response Body
// in: body
- DivisionResponse v13.DivisionResponse
+ DivisionResponse tc.DivisionResponse
}
// DivisionQueryParams
@@ -65,7 +65,7 @@ type DivisionPostParam struct {
//
// in: body
// required: true
- Division v13.Division
+ Division tc.Division
}
// swagger:parameters GetDivisionById DeleteDivision
@@ -112,7 +112,7 @@ type DivisionPutParam struct {
//
// in: body
// required: true
- Division v13.Division
+ Division tc.Division
}
// PutDivision swagger:route PUT /divisions/{id} Division PutDivision
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/physlocations.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/physlocations.go
index 06ba02d..b2dd773 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/physlocations.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/physlocations.go
@@ -19,7 +19,7 @@ package v13
* under the License.
*/
-import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
+import "github.com/apache/trafficcontrol/lib/go-tc"
// PhysLocations - PhysLocationsResponse to get the "response" top level key
// swagger:response PhysLocations
@@ -27,7 +27,7 @@ import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
type PhysLocations struct {
// PhysLocation Response Body
// in: body
- PhysLocationsResponse v13.PhysLocationsResponse `json:"response"`
+ PhysLocationsResponse tc.PhysLocationsResponse `json:"response"`
}
// PhysLocation - PhysLocationResponse to get the "response" top level key
@@ -36,7 +36,7 @@ type PhysLocations struct {
type PhysLocation struct {
// PhysLocation Response Body
// in: body
- PhysLocationResponse v13.PhysLocationResponse
+ PhysLocationResponse tc.PhysLocationResponse
}
// PhysLocationQueryParams
@@ -61,7 +61,7 @@ type PhysLocationPostParam struct {
//
// in: body
// required: true
- PhysLocation v13.PhysLocationNullable
+ PhysLocation tc.PhysLocationNullable
}
// swagger:parameters GetPhysLocationById DeletePhysLocation
@@ -108,7 +108,7 @@ type PhysLocationPutParam struct {
//
// in: body
// required: true
- PhysLocation v13.PhysLocationNullable
+ PhysLocation tc.PhysLocationNullable
}
// PutPhysLocation swagger:route PUT /phys_locations/{id} PhysLocation PutPhysLocation
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profileparameters.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profileparameters.go
index 879d483..c172004 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profileparameters.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profileparameters.go
@@ -1,6 +1,6 @@
package v13
-import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
+import "github.com/apache/trafficcontrol/lib/go-tc"
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -27,7 +27,7 @@ import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
type ProfileParameters struct {
// ProfileParameter Response Body
// in: body
- ProfileParametersResponse v13.ProfileParametersResponse `json:"response"`
+ ProfileParametersResponse tc.ProfileParametersResponse `json:"response"`
}
// ProfileParameter - ProfileParameterResponse to get the "response" top level key
@@ -36,7 +36,7 @@ type ProfileParameters struct {
type ProfileParameter struct {
// ProfileParameter Response Body
// in: body
- ProfileParameterResponse v13.ProfileParameterResponse
+ ProfileParameterResponse tc.ProfileParameterResponse
}
// ProfileParameterQueryParams
@@ -65,7 +65,7 @@ type ProfileParameterPostParam struct {
//
// in: body
// required: true
- ProfileParameter v13.ProfileParameter
+ ProfileParameter tc.ProfileParameter
}
// PostProfileParameter swagger:route POST /profileparameters ProfileParameter PostProfileParameter
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profiles.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profiles.go
index 4609266..1a1b1a7 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profiles.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/profiles.go
@@ -19,7 +19,7 @@ package v13
* under the License.
*/
-import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
+import "github.com/apache/trafficcontrol/lib/go-tc"
// Profiles - ProfilesResponse to get the "response" top level key
// swagger:response Profiles
@@ -27,7 +27,7 @@ import v13 "github.com/apache/trafficcontrol/lib/go-tc/v13"
type Profiles struct {
// Profile Response Body
// in: body
- ProfilesResponse v13.ProfilesResponse `json:"response"`
+ ProfilesResponse tc.ProfilesResponse `json:"response"`
}
// Profile - ProfileResponse to get the "response" top level key
@@ -36,7 +36,7 @@ type Profiles struct {
type Profile struct {
// Profile Response Body
// in: body
- ProfileResponse v13.ProfileResponse
+ ProfileResponse tc.ProfileResponse
}
// ProfileQueryParams
@@ -73,7 +73,7 @@ type ProfilePostParam struct {
//
// in: body
// required: true
- Profile v13.Profile
+ Profile tc.Profile
}
// swagger:parameters GetProfileById DeleteProfile
@@ -120,7 +120,7 @@ type ProfilePutParam struct {
//
// in: body
// required: true
- Profile v13.Profile
+ Profile tc.Profile
}
// PutProfile swagger:route PUT /cdns/{id} Profile PutProfile
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/regions.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/regions.go
index 1c6f0d7..b1e3194 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/regions.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/regions.go
@@ -1,6 +1,6 @@
package v13
-import "github.com/apache/trafficcontrol/lib/go-tc/v13"
+import "github.com/apache/trafficcontrol/lib/go-tc"
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -27,7 +27,7 @@ import "github.com/apache/trafficcontrol/lib/go-tc/v13"
type Regions struct {
// Region Response Body
// in: body
- RegionsResponse v13.RegionsResponse `json:"response"`
+ RegionsResponse tc.RegionsResponse `json:"response"`
}
// Region - RegionResponse to get the "response" top level key
@@ -36,7 +36,7 @@ type Regions struct {
type Region struct {
// Region Response Body
// in: body
- RegionResponse v13.RegionResponse
+ RegionResponse tc.RegionsResponse
}
// RegionQueryParams
@@ -69,7 +69,7 @@ type RegionPostParam struct {
//
// in: body
// required: true
- Region v13.Region
+ Region tc.Region
}
// swagger:parameters GetRegionById DeleteRegion
@@ -112,7 +112,7 @@ type RegionPutParam struct {
//
// in: body
// required: true
- Region v13.Region
+ Region tc.Region
}
// PutRegion swagger:route PUT /regions/{id} Region PutRegion
diff --git a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/statuses.go b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/statuses.go
index f8cce6b..24c181e 100644
--- a/traffic_ops/traffic_ops_golang/swaggerdocs/v13/statuses.go
+++ b/traffic_ops/traffic_ops_golang/swaggerdocs/v13/statuses.go
@@ -20,7 +20,7 @@ package v13
*/
import (
- "github.com/apache/trafficcontrol/lib/go-tc/v13"
+ "github.com/apache/trafficcontrol/lib/go-tc"
)
// Statuses - StatusesResponse to get the "response" top level key
@@ -29,7 +29,7 @@ import (
type Statuses struct {
// Status Response Body
// in: body
- StatusesResponse v13.StatusesResponse `json:"response"`
+ StatusesResponse tc.StatusesResponse `json:"response"`
}
// Status - StatusResponse to get the "response" top level key
@@ -38,7 +38,7 @@ type Statuses struct {
type Status struct {
// Status Response Body
// in: body
- StatusResponse v13.StatusResponse
+ StatusResponse tc.StatusResponse
}
// StatusQueryParams
@@ -71,7 +71,7 @@ type StatusPostParam struct {
//
// in: body
// required: true
- Status v13.Status
+ Status tc.Status
}
// swagger:parameters GetStatusById DeleteStatus
@@ -114,7 +114,7 @@ type StatusPutParam struct {
//
// in: body
// required: true
- Status v13.Status
+ Status tc.Status
}
// PutStatus swagger:route PUT /statuses/{id} Status PutStatus