This is an automated email from the ASF dual-hosted git repository. rob pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit 396e3f8d6fd8a66ee0badad7da93d1bc3a2f141f Author: Jesse Rivas <jesse_ri...@comcast.com> AuthorDate: Thu Jun 14 11:18:23 2018 -0600 restored anonymousBlockingEnabled in DeliveryServiceV12 structs --- lib/go-tc/deliveryservices.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/go-tc/deliveryservices.go b/lib/go-tc/deliveryservices.go index 86b1e35..8b556e9 100644 --- a/lib/go-tc/deliveryservices.go +++ b/lib/go-tc/deliveryservices.go @@ -61,6 +61,7 @@ type DeleteDeliveryServiceResponse struct { // TODO move contents to DeliveryServiceV12, fix references, and remove type DeliveryService struct { Active bool `json:"active"` + AnonymousBlockingEnabled bool `json:"anonymousBlockingEnabled"` CacheURL string `json:"cacheurl"` CCRDNSTTL int `json:"ccrDnsTtl"` CDNID int `json:"cdnId"` @@ -121,13 +122,12 @@ type DeliveryServiceV12 struct { type DeliveryServiceV13 struct { DeliveryServiceV12 - AnonymousBlockingEnabled bool `json:"anonymousBlockingEnabled"` - DeepCachingType DeepCachingType `json:"deepCachingType"` - FQPacingRate int `json:"fqPacingRate,omitempty"` - SigningAlgorithm string `json:"signingAlgorithm" db:"signing_algorithm"` - TenantName string `json:"tenantName,omitempty"` - TRRequestHeaders string `json:"trRequestHeaders,omitempty"` - TRResponseHeaders string `json:"trResponseHeaders,omitempty"` + DeepCachingType DeepCachingType `json:"deepCachingType"` + FQPacingRate int `json:"fqPacingRate,omitempty"` + SigningAlgorithm string `json:"signingAlgorithm" db:"signing_algorithm"` + TenantName string `json:"tenantName,omitempty"` + TRRequestHeaders string `json:"trRequestHeaders,omitempty"` + TRResponseHeaders string `json:"trResponseHeaders,omitempty"` } // DeliveryServiceNullable - a version of the deliveryservice that allows for all fields to be null @@ -136,6 +136,7 @@ type DeliveryServiceNullable struct { // NOTE: the db: struct tags are used for testing to map to their equivalent database column (if there is one) // Active *bool `json:"active" db:"active"` + AnonymousBlockingEnabled *bool `json:"anonymousBlockingEnabled" db:"anonymous_blocking_enabled"` CacheURL *string `json:"cacheurl" db:"cacheurl"` CCRDNSTTL *int `json:"ccrDnsTtl" db:"ccr_dns_ttl"` CDNID *int `json:"cdnId" db:"cdn_id"` @@ -198,13 +199,12 @@ type DeliveryServiceNullableV12 struct { type DeliveryServiceNullableV13 struct { DeliveryServiceNullableV12 - AnonymousBlockingEnabled *bool `json:"anonymousBlockingEnabled" db:"anonymous_blocking_enabled"` - DeepCachingType *DeepCachingType `json:"deepCachingType" db:"deep_caching_type"` - FQPacingRate *int `json:"fqPacingRate,omitempty"` - SigningAlgorithm *string `json:"signingAlgorithm" db:"signing_algorithm"` - Tenant *string `json:"tenant,omitempty"` - TRResponseHeaders *string `json:"trResponseHeaders,omitempty"` - TRRequestHeaders *string `json:"trRequestHeaders,omitempty"` + DeepCachingType *DeepCachingType `json:"deepCachingType" db:"deep_caching_type"` + FQPacingRate *int `json:"fqPacingRate,omitempty"` + SigningAlgorithm *string `json:"signingAlgorithm" db:"signing_algorithm"` + Tenant *string `json:"tenant,omitempty"` + TRResponseHeaders *string `json:"trResponseHeaders,omitempty"` + TRRequestHeaders *string `json:"trRequestHeaders,omitempty"` } // Value implements the driver.Valuer interface