You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/07/11 16:20:28 UTC
[GitHub] dangogh closed pull request #2531: added staticdnsentry struct
dangogh closed pull request #2531: added staticdnsentry struct
URL: https://github.com/apache/trafficcontrol/pull/2531
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/lib/go-tc/v13/staticdnsentry.go b/lib/go-tc/v13/staticdnsentry.go
new file mode 100644
index 000000000..cfb1ef8ac
--- /dev/null
+++ b/lib/go-tc/v13/staticdnsentry.go
@@ -0,0 +1,137 @@
+package v13
+
+import tc "github.com/apache/trafficcontrol/lib/go-tc"
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+// StaticDNSEntries ...
+type StaticDNSEntriesResponse struct {
+ Response []StaticDNSEntry `json:"response"`
+}
+
+// StatisDNSEntry ...
+type StaticDNSEntry struct {
+
+ // The static IP Address or fqdn of the static dns entry
+ //
+ // required: true
+ Address string `json:"address" db:"address"`
+
+ // The Cachegroup Name associated
+ //
+ CacheGroupName string `json:"cachegroup"`
+
+ // The Cachegroup ID associated
+ //
+ CacheGroupID int `json:"cachegroupId" db:"cachegroup_id"`
+
+ // The DeliveryService associated
+ //
+ DeliveryService string `json:"deliveryservice" db:"dsname"`
+
+ // The DeliveryService associated
+ //
+ // required: true
+ DeliveryServiceID int `json:"deliveryserviceId" db:"deliveryservice_id"`
+
+ // The host of the static dns entry
+ //
+ // required: true
+ Host string `json:"host" db:"host"`
+
+ // ID of the StaticDNSEntry
+ //
+ // required: true
+ ID int `json:"id" db:"id"`
+
+ // LastUpdated
+ //
+ LastUpdated tc.TimeNoMod `json:"lastUpdated" db:"last_updated"`
+
+ // The Time To Live for the static dns entry
+ //
+ // required: true
+ TTL int64 `json:"ttl" db:"ttl"`
+
+ // The type of the static DNS entry
+ //
+ // enum: ["A_RECORD", "AAAA_RECORD", "CNAME_RECORD"]
+ Type string `json:"type"`
+
+ // The type id of the static DNS entry
+ //
+ // required: true
+ TypeID int `json:"typeId" db:"type_id"`
+}
+
+// StatisDNSEntryNullable ...
+type StaticDNSEntryNullable struct {
+
+ // The static IP Address or fqdn of the static dns entry
+ //
+ // required: true
+ Address *string `json:"address" db:"address"`
+
+ // The Cachegroup Name associated
+ //
+ CacheGroupName *string `json:"cachegroup" db:"cachegroup"`
+
+ // The Cachegroup ID associated
+ //
+ CacheGroupID *int `json:"cachegroupId" db:"cachegroup_id"`
+
+ // The DeliveryService Name associated
+ //
+ DeliveryService *string `json:"deliveryservice" db:"dsname"`
+
+ // DeliveryService ID of the StaticDNSEntry
+ //
+ // required: true
+ DeliveryServiceID *int `json:"deliveryserviceId" db:"deliveryservice_id"`
+
+ // The host of the static dns entry
+ //
+ // required: true
+ Host *string `json:"host" db:"host"`
+
+ // ID of the StaticDNSEntry
+ //
+ // required: true
+ ID *int `json:"id" db:"id"`
+
+ // LastUpdated
+ //
+ LastUpdated *tc.TimeNoMod `json:"lastUpdated" db:"last_updated"`
+
+ // The Time To Live for the static dns entry
+ //
+ // required: true
+ TTL *int64 `json:"ttl" db:"ttl"`
+
+ // The type of the static DNS entry
+ //
+ // enum: ["A_RECORD", "AAAA_RECORD", "CNAME_RECORD"]
+ Type *string `json:"type"`
+
+ // The type id of the static DNS entry
+ //
+ // required: true
+ TypeID int `json:"typeId" db:"type_id"`
+}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services