You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/07/11 16:20:28 UTC

[trafficcontrol] branch master updated: added staticdnsentry struct

This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e6f0be  added staticdnsentry struct
7e6f0be is described below

commit 7e6f0be8e277bc748c41acd660358b450b65f41f
Author: Dewayne Richardson <de...@apache.org>
AuthorDate: Wed Jul 11 10:07:51 2018 -0600

    added staticdnsentry struct
---
 lib/go-tc/v13/staticdnsentry.go | 137 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 137 insertions(+)

diff --git a/lib/go-tc/v13/staticdnsentry.go b/lib/go-tc/v13/staticdnsentry.go
new file mode 100644
index 0000000..cfb1ef8
--- /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"`
+}