model.go raw

   1  /*
   2   * Copyright  Baidu, Inc.
   3   *
   4   * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
   5   * except in compliance with the License. You may obtain a copy of the License at
   6   *
   7   * http://www.apache.org/licenses/LICENSE-2.0
   8   *
   9   * Unless required by applicable law or agreed to in writing, software distributed under the
  10   * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  11   * either express or implied. See the License for the specific language governing permissions
  12   * and limitations under the License.
  13   */
  14  
  15  package dns
  16  
  17  type AddLineGroupRequest struct {
  18  	Name  string   `json:"name"`
  19  	Lines []string `json:"lines"`
  20  }
  21  
  22  type AddLineGroupRequestLines struct {
  23  }
  24  
  25  type Billing struct {
  26  	PaymentTiming string      `json:"paymentTiming"`
  27  	Reservation   Reservation `json:"reservation"`
  28  }
  29  
  30  type CreatePaidZoneRequest struct {
  31  	Names          []string `json:"names"`
  32  	ProductVersion string   `json:"productVersion"`
  33  	Billing        Billing  `json:"billing"`
  34  }
  35  
  36  type CreateRecordRequest struct {
  37  	Rr          string  `json:"rr"`
  38  	Type        string  `json:"type"`
  39  	Value       string  `json:"value"`
  40  	Ttl         *int32  `json:"ttl"`
  41  	Line        *string `json:"line"`
  42  	Description *string `json:"description"`
  43  	Priority    *int32  `json:"priority"`
  44  }
  45  
  46  type CreateZoneRequest struct {
  47  	Name string `json:"name"`
  48  }
  49  
  50  type DeleteRecordRequest struct {
  51  	Rr          string  `json:"rr"`
  52  	Type        string  `json:"type"`
  53  	Value       string  `json:"value"`
  54  	Ttl         *int32  `json:"ttl"`
  55  	Description *string `json:"description"`
  56  	Priority    *int32  `json:"priority"`
  57  }
  58  
  59  type DeleteZoneRequest struct {
  60  	Names          []string `json:"names"`
  61  	ProductVersion string   `json:"productVersion"`
  62  	Billing        Billing  `json:"billing"`
  63  }
  64  
  65  type DeleteZoneRequestNames struct {
  66  }
  67  
  68  type Line struct {
  69  	Id                 string   `json:"id"`
  70  	Name               string   `json:"name"`
  71  	Lines              []string `json:"lines"`
  72  	RelatedZoneCount   int32    `json:"relatedZoneCount"`
  73  	RelatedRecordCount int32    `json:"relatedRecordCount"`
  74  }
  75  
  76  type ListLineGroupRequest struct {
  77  	Marker  string
  78  	MaxKeys int
  79  }
  80  
  81  type ListLineGroupResponse struct {
  82  	Marker      *string `json:"marker"`
  83  	IsTruncated *bool   `json:"isTruncated"`
  84  	NextMarker  *string `json:"nextMarker"`
  85  	MaxKeys     *int32  `json:"maxKeys"`
  86  	LineList    []Line  `json:"lineList"`
  87  }
  88  
  89  type ListRecordRequest struct {
  90  	Rr      string
  91  	Id      string
  92  	Marker  string
  93  	MaxKeys int
  94  }
  95  
  96  type ListRecordResponse struct {
  97  	Marker      string   `json:"marker"`
  98  	IsTruncated bool     `json:"isTruncated"`
  99  	NextMarker  string   `json:"nextMarker"`
 100  	MaxKeys     int32    `json:"maxKeys"`
 101  	Records     []Record `json:"records"`
 102  }
 103  
 104  type ListRecordResponseRecords struct {
 105  }
 106  
 107  type ListZoneRequest struct {
 108  	Name    string
 109  	Marker  string
 110  	MaxKeys int
 111  }
 112  
 113  type ListZoneResponse struct {
 114  	Marker      string `json:"marker"`
 115  	IsTruncated bool   `json:"isTruncated"`
 116  	NextMarker  string `json:"nextMarker"`
 117  	MaxKeys     int32  `json:"maxKeys"`
 118  	Zones       []Zone `json:"zones"`
 119  }
 120  
 121  type ListZoneResponseZones struct {
 122  }
 123  
 124  type Record struct {
 125  	Id          string `json:"id"`
 126  	Rr          string `json:"rr"`
 127  	Status      string `json:"status"`
 128  	Type        string `json:"type"`
 129  	Value       string `json:"value"`
 130  	Ttl         int32  `json:"ttl"`
 131  	Line        string `json:"line"`
 132  	Description string `json:"description"`
 133  	Priority    int32  `json:"priority"`
 134  }
 135  
 136  type RenewZoneRequest struct {
 137  	Billing Billing `json:"billing"`
 138  }
 139  
 140  type Reservation struct {
 141  	ReservationLength int32 `json:"reservationLength"`
 142  }
 143  
 144  type TagModel struct {
 145  	TagKey   *string `json:"tagKey"`
 146  	TagValue *string `json:"tagValue"`
 147  }
 148  
 149  type UpdateLineGroupRequest struct {
 150  	Name  string   `json:"name"`
 151  	Lines []string `json:"lines"`
 152  }
 153  
 154  type UpdateLineGroupRequestLines struct {
 155  }
 156  
 157  type UpdateRecordDisableRequest struct {
 158  	Rr          string  `json:"rr"`
 159  	Type        string  `json:"type"`
 160  	Value       string  `json:"value"`
 161  	Ttl         *int32  `json:"ttl"`
 162  	Description *string `json:"description"`
 163  	Priority    *int32  `json:"priority"`
 164  }
 165  
 166  type UpdateRecordEnableRequest struct {
 167  	Rr          string  `json:"rr"`
 168  	Type        string  `json:"type"`
 169  	Value       string  `json:"value"`
 170  	Ttl         *int32  `json:"ttl"`
 171  	Description *string `json:"description"`
 172  	Priority    *int32  `json:"priority"`
 173  }
 174  
 175  type UpdateRecordRequest struct {
 176  	Rr          string  `json:"rr"`
 177  	Type        string  `json:"type"`
 178  	Value       string  `json:"value"`
 179  	Ttl         *int32  `json:"ttl"`
 180  	Description *string `json:"description"`
 181  	Priority    *int32  `json:"priority"`
 182  }
 183  
 184  type UpgradeZoneRequest struct {
 185  	Names   []string `json:"names"`
 186  	Billing Billing  `json:"billing"`
 187  }
 188  
 189  type UpgradeZoneRequestNames struct {
 190  }
 191  
 192  type Zone struct {
 193  	Id             string     `json:"id"`
 194  	Name           string     `json:"name"`
 195  	Status         string     `json:"status"`
 196  	ProductVersion string     `json:"productVersion"`
 197  	CreateTime     string     `json:"createTime"`
 198  	ExpireTime     string     `json:"expireTime"`
 199  	Tags           []TagModel `json:"tags"`
 200  }
 201