models.go raw

   1  //go:build go1.18
   2  // +build go1.18
   3  
   4  // Copyright (c) Microsoft Corporation. All rights reserved.
   5  // Licensed under the MIT License. See License.txt in the project root for license information.
   6  // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
   7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
   8  
   9  package armdns
  10  
  11  // ARecord - An A record.
  12  type ARecord struct {
  13  	// The IPv4 address of this A record.
  14  	IPv4Address *string
  15  }
  16  
  17  // AaaaRecord - An AAAA record.
  18  type AaaaRecord struct {
  19  	// The IPv6 address of this AAAA record.
  20  	IPv6Address *string
  21  }
  22  
  23  // CaaRecord - A CAA record.
  24  type CaaRecord struct {
  25  	// The flags for this CAA record as an integer between 0 and 255.
  26  	Flags *int32
  27  
  28  	// The tag for this CAA record.
  29  	Tag *string
  30  
  31  	// The value for this CAA record.
  32  	Value *string
  33  }
  34  
  35  // CnameRecord - A CNAME record.
  36  type CnameRecord struct {
  37  	// The canonical name for this CNAME record.
  38  	Cname *string
  39  }
  40  
  41  // MxRecord - An MX record.
  42  type MxRecord struct {
  43  	// The domain name of the mail host for this MX record.
  44  	Exchange *string
  45  
  46  	// The preference value for this MX record.
  47  	Preference *int32
  48  }
  49  
  50  // NsRecord - An NS record.
  51  type NsRecord struct {
  52  	// The name server name for this NS record.
  53  	Nsdname *string
  54  }
  55  
  56  // PtrRecord - A PTR record.
  57  type PtrRecord struct {
  58  	// The PTR target domain name for this PTR record.
  59  	Ptrdname *string
  60  }
  61  
  62  // RecordSet - Describes a DNS record set (a collection of DNS records with the same name and type).
  63  type RecordSet struct {
  64  	// The etag of the record set.
  65  	Etag *string
  66  
  67  	// The properties of the record set.
  68  	Properties *RecordSetProperties
  69  
  70  	// READ-ONLY; The ID of the record set.
  71  	ID *string
  72  
  73  	// READ-ONLY; The name of the record set.
  74  	Name *string
  75  
  76  	// READ-ONLY; The type of the record set.
  77  	Type *string
  78  }
  79  
  80  // RecordSetListResult - The response to a record set List operation.
  81  type RecordSetListResult struct {
  82  	// Information about the record sets in the response.
  83  	Value []*RecordSet
  84  
  85  	// READ-ONLY; The continuation token for the next page of results.
  86  	NextLink *string
  87  }
  88  
  89  // RecordSetProperties - Represents the properties of the records in the record set.
  90  type RecordSetProperties struct {
  91  	// The list of A records in the record set.
  92  	ARecords []*ARecord
  93  
  94  	// The list of AAAA records in the record set.
  95  	AaaaRecords []*AaaaRecord
  96  
  97  	// The list of CAA records in the record set.
  98  	CaaRecords []*CaaRecord
  99  
 100  	// The CNAME record in the record set.
 101  	CnameRecord *CnameRecord
 102  
 103  	// The metadata attached to the record set.
 104  	Metadata map[string]*string
 105  
 106  	// The list of MX records in the record set.
 107  	MxRecords []*MxRecord
 108  
 109  	// The list of NS records in the record set.
 110  	NsRecords []*NsRecord
 111  
 112  	// The list of PTR records in the record set.
 113  	PtrRecords []*PtrRecord
 114  
 115  	// The SOA record in the record set.
 116  	SoaRecord *SoaRecord
 117  
 118  	// The list of SRV records in the record set.
 119  	SrvRecords []*SrvRecord
 120  
 121  	// The TTL (time-to-live) of the records in the record set.
 122  	TTL *int64
 123  
 124  	// A reference to an azure resource from where the dns resource value is taken.
 125  	TargetResource *SubResource
 126  
 127  	// The list of TXT records in the record set.
 128  	TxtRecords []*TxtRecord
 129  
 130  	// READ-ONLY; Fully qualified domain name of the record set.
 131  	Fqdn *string
 132  
 133  	// READ-ONLY; provisioning State of the record set.
 134  	ProvisioningState *string
 135  }
 136  
 137  // RecordSetUpdateParameters - Parameters supplied to update a record set.
 138  type RecordSetUpdateParameters struct {
 139  	// Specifies information about the record set being updated.
 140  	RecordSet *RecordSet
 141  }
 142  
 143  // Resource - Common properties of an Azure Resource Manager resource
 144  type Resource struct {
 145  	// REQUIRED; Resource location.
 146  	Location *string
 147  
 148  	// Resource tags.
 149  	Tags map[string]*string
 150  
 151  	// READ-ONLY; Resource ID.
 152  	ID *string
 153  
 154  	// READ-ONLY; Resource name.
 155  	Name *string
 156  
 157  	// READ-ONLY; Resource type.
 158  	Type *string
 159  }
 160  
 161  // ResourceReference - Represents a single Azure resource and its referencing DNS records.
 162  type ResourceReference struct {
 163  	// A list of dns Records
 164  	DNSResources []*SubResource
 165  
 166  	// A reference to an azure resource from where the dns resource value is taken.
 167  	TargetResource *SubResource
 168  }
 169  
 170  // ResourceReferenceRequest - Represents the properties of the Dns Resource Reference Request.
 171  type ResourceReferenceRequest struct {
 172  	// The properties of the Resource Reference Request.
 173  	Properties *ResourceReferenceRequestProperties
 174  }
 175  
 176  // ResourceReferenceRequestProperties - Represents the properties of the Dns Resource Reference Request.
 177  type ResourceReferenceRequestProperties struct {
 178  	// A list of references to azure resources for which referencing dns records need to be queried.
 179  	TargetResources []*SubResource
 180  }
 181  
 182  // ResourceReferenceResult - Represents the properties of the Dns Resource Reference Result.
 183  type ResourceReferenceResult struct {
 184  	// The result of dns resource reference request. Returns a list of dns resource references for each of the azure resource
 185  	// in the request.
 186  	Properties *ResourceReferenceResultProperties
 187  }
 188  
 189  // ResourceReferenceResultProperties - The result of dns resource reference request. Returns a list of dns resource references
 190  // for each of the azure resource in the request.
 191  type ResourceReferenceResultProperties struct {
 192  	// The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request
 193  	DNSResourceReferences []*ResourceReference
 194  }
 195  
 196  // SoaRecord - An SOA record.
 197  type SoaRecord struct {
 198  	// The email contact for this SOA record.
 199  	Email *string
 200  
 201  	// The expire time for this SOA record.
 202  	ExpireTime *int64
 203  
 204  	// The domain name of the authoritative name server for this SOA record.
 205  	Host *string
 206  
 207  	// The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
 208  	MinimumTTL *int64
 209  
 210  	// The refresh value for this SOA record.
 211  	RefreshTime *int64
 212  
 213  	// The retry time for this SOA record.
 214  	RetryTime *int64
 215  
 216  	// The serial number for this SOA record.
 217  	SerialNumber *int64
 218  }
 219  
 220  // SrvRecord - An SRV record.
 221  type SrvRecord struct {
 222  	// The port value for this SRV record.
 223  	Port *int32
 224  
 225  	// The priority value for this SRV record.
 226  	Priority *int32
 227  
 228  	// The target domain name for this SRV record.
 229  	Target *string
 230  
 231  	// The weight value for this SRV record.
 232  	Weight *int32
 233  }
 234  
 235  // SubResource - A reference to a another resource
 236  type SubResource struct {
 237  	// Resource Id.
 238  	ID *string
 239  }
 240  
 241  // TxtRecord - A TXT record.
 242  type TxtRecord struct {
 243  	// The text value of this TXT record.
 244  	Value []*string
 245  }
 246  
 247  // Zone - Describes a DNS zone.
 248  type Zone struct {
 249  	// REQUIRED; Resource location.
 250  	Location *string
 251  
 252  	// The etag of the zone.
 253  	Etag *string
 254  
 255  	// The properties of the zone.
 256  	Properties *ZoneProperties
 257  
 258  	// Resource tags.
 259  	Tags map[string]*string
 260  
 261  	// READ-ONLY; Resource ID.
 262  	ID *string
 263  
 264  	// READ-ONLY; Resource name.
 265  	Name *string
 266  
 267  	// READ-ONLY; Resource type.
 268  	Type *string
 269  }
 270  
 271  // ZoneListResult - The response to a Zone List or ListAll operation.
 272  type ZoneListResult struct {
 273  	// Information about the DNS zones.
 274  	Value []*Zone
 275  
 276  	// READ-ONLY; The continuation token for the next page of results.
 277  	NextLink *string
 278  }
 279  
 280  // ZoneProperties - Represents the properties of the zone.
 281  type ZoneProperties struct {
 282  	// A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
 283  	RegistrationVirtualNetworks []*SubResource
 284  
 285  	// A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
 286  	ResolutionVirtualNetworks []*SubResource
 287  
 288  	// The type of this DNS zone (Public or Private).
 289  	ZoneType *ZoneType
 290  
 291  	// READ-ONLY; The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any
 292  	// attempt to set this value will be ignored.
 293  	MaxNumberOfRecordSets *int64
 294  
 295  	// READ-ONLY; The maximum number of records per record set that can be created in this DNS zone. This is a read-only property
 296  	// and any attempt to set this value will be ignored.
 297  	MaxNumberOfRecordsPerRecordSet *int64
 298  
 299  	// READ-ONLY; The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
 300  	NameServers []*string
 301  
 302  	// READ-ONLY; The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this
 303  	// value will be ignored.
 304  	NumberOfRecordSets *int64
 305  }
 306  
 307  // ZoneUpdate - Describes a request to update a DNS zone.
 308  type ZoneUpdate struct {
 309  	// Resource tags.
 310  	Tags map[string]*string
 311  }
 312