This is an automated email from the ASF dual-hosted git repository. mitchell852 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit 31bc7bfa872e48fc605c81ebae1450aa3881e5de Author: Dewayne Richardson <dewr...@apache.org> AuthorDate: Wed Mar 21 08:43:57 2018 -0600 added swagger doc to go-tc struct --- lib/go-tc/v13/cdns.go | 79 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 68 insertions(+), 11 deletions(-) diff --git a/lib/go-tc/v13/cdns.go b/lib/go-tc/v13/cdns.go index e0c1aa8..9fa6ae1 100644 --- a/lib/go-tc/v13/cdns.go +++ b/lib/go-tc/v13/cdns.go @@ -1,5 +1,7 @@ package v13 +import tc "github.com/apache/incubator-trafficcontrol/lib/go-tc" + /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -18,26 +20,81 @@ package v13 * specific language governing permissions and limitations * under the License. */ -import "github.com/apache/incubator-trafficcontrol/lib/go-tc" +// A List of CDNs Response +// swagger:response CDNsResponse +// in: body type CDNsResponse struct { + // in: body Response []CDN `json:"response"` } +// A Single CDN Response for Update and Create to depict what changed +// swagger:response CDNResponse +// in: body +type CDNResponse struct { + // in: body + Response CDN `json:"response"` +} + +// CDN ... type CDN struct { - DNSSECEnabled bool `json:"dnssecEnabled" db:"dnssec_enabled"` - DomainName string `json:"domainName" db:"domain_name"` - ID int `json:"id" db:"id"` - LastUpdated tc.TimeNoMod `json:"lastUpdated" db:"last_updated"` - Name string `json:"name" db:"name"` + + // The CDN to retrieve + // + // enables Domain Name Security Extensions on the specified CDN + // + // required: true + DNSSECEnabled bool `json:"dnssecEnabled" db:"dnssec_enabled"` + + // DomainName of the CDN + // + // required: true + DomainName string `json:"domainName" db:"domain_name"` + + // ID of the CDN + // + // required: true + ID int `json:"id" db:"id"` + + // LastUpdated + // + LastUpdated tc.TimeNoMod `json:"lastUpdated" db:"last_updated"` + + // Name of the CDN + // + // required: true + Name string `json:"name" db:"name"` } +// CDNNullable ... type CDNNullable struct { - DNSSECEnabled *bool `json:"dnssecEnabled" db:"dnssec_enabled"` - DomainName *string `json:"domainName" db:"domain_name"` - ID *int `json:"id" db:"id"` - LastUpdated *tc.TimeNoMod `json:"lastUpdated" db:"last_updated"` - Name *string `json:"name" db:"name"` + + // The CDN to retrieve + // + // enables Domain Name Security Extensions on the specified CDN + // + // required: true + DNSSECEnabled bool `json:"dnssecEnabled" db:"dnssec_enabled"` + + // DomainName of the CDN + // + // required: true + DomainName string `json:"domainName" db:"domain_name"` + + // ID of the CDN + // + // required: true + ID int `json:"id" db:"id"` + + // LastUpdated + // + LastUpdated tc.TimeNoMod `json:"lastUpdated" db:"last_updated"` + + // Name of the CDN + // + // required: true + Name string `json:"name" db:"name"` } // CDNSSLKeysResponse ... -- To stop receiving notification emails like this one, please contact mitchell...@apache.org.