internal Zone(string id, string name, string type, string location, IDictionary <string, string> tags, string etag, long?maxNumberOfRecordSets, long?numberOfRecordSets, IReadOnlyList <string> nameServers, ZoneType?zoneType, IList <SubResource> registrationVirtualNetworks, IList <SubResource> resolutionVirtualNetworks) : base(id, name, type, location, tags) { Etag = etag; MaxNumberOfRecordSets = maxNumberOfRecordSets; NumberOfRecordSets = numberOfRecordSets; NameServers = nameServers; ZoneType = zoneType; RegistrationVirtualNetworks = registrationVirtualNetworks; ResolutionVirtualNetworks = resolutionVirtualNetworks; }
internal DnsZoneData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, string etag, long?maxNumberOfRecordSets, long?maxNumberOfRecordsPerRecordSet, long?numberOfRecordSets, IReadOnlyList <string> nameServers, ZoneType?zoneType, IList <WritableSubResource> registrationVirtualNetworks, IList <WritableSubResource> resolutionVirtualNetworks) : base(id, name, resourceType, systemData, tags, location) { Etag = etag; MaxNumberOfRecordSets = maxNumberOfRecordSets; MaxNumberOfRecordsPerRecordSet = maxNumberOfRecordsPerRecordSet; NumberOfRecordSets = numberOfRecordSets; NameServers = nameServers; ZoneType = zoneType; RegistrationVirtualNetworks = registrationVirtualNetworks; ResolutionVirtualNetworks = resolutionVirtualNetworks; }
/// <summary> /// Initializes a new instance of the ZoneInner class. /// </summary> /// <param name="etag">The etag of the zone.</param> /// <param name="maxNumberOfRecordSets">The maximum number of record /// sets that can be created in this DNS zone. This is a read-only /// property and any attempt to set this value will be ignored.</param> /// <param name="numberOfRecordSets">The current number of record sets /// in this DNS zone. This is a read-only property and any attempt to /// set this value will be ignored.</param> /// <param name="nameServers">The name servers for this DNS zone. This /// is a read-only property and any attempt to set this value will be /// ignored.</param> /// <param name="zoneType">The type of this DNS zone (Public or /// Private). Possible values include: 'Public', 'Private'</param> /// <param name="registrationVirtualNetworks">A list of references to /// virtual networks that register hostnames in this DNS zone. This is /// a only when ZoneType is Private.</param> /// <param name="resolutionVirtualNetworks">A list of references to /// virtual networks that resolve records in this DNS zone. This is a /// only when ZoneType is Private.</param> public ZoneInner(string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string etag = default(string), long?maxNumberOfRecordSets = default(long?), long?numberOfRecordSets = default(long?), IList <string> nameServers = default(IList <string>), ZoneType?zoneType = default(ZoneType?), IList <Microsoft.Azure.Management.ResourceManager.Fluent.SubResource> registrationVirtualNetworks = default(IList <Microsoft.Azure.Management.ResourceManager.Fluent.SubResource>), IList <Microsoft.Azure.Management.ResourceManager.Fluent.SubResource> resolutionVirtualNetworks = default(IList <Microsoft.Azure.Management.ResourceManager.Fluent.SubResource>)) : base(location, id, name, type, tags) { Etag = etag; MaxNumberOfRecordSets = maxNumberOfRecordSets; NumberOfRecordSets = numberOfRecordSets; NameServers = nameServers; ZoneType = zoneType; RegistrationVirtualNetworks = registrationVirtualNetworks; ResolutionVirtualNetworks = resolutionVirtualNetworks; CustomInit(); }
/// <summary> /// Initializes a new instance of the Zone class. /// </summary> /// <param name="location">Resource location.</param> /// <param name="id">Resource ID.</param> /// <param name="name">Resource name.</param> /// <param name="type">Resource type.</param> /// <param name="tags">Resource tags.</param> /// <param name="etag">The etag of the zone.</param> /// <param name="maxNumberOfRecordSets">The maximum number of record /// sets that can be created in this DNS zone. This is a read-only /// property and any attempt to set this value will be ignored.</param> /// <param name="maxNumberOfRecordsPerRecordSet">The maximum number of /// records per record set that can be created in this DNS zone. This /// is a read-only property and any attempt to set this value will be /// ignored.</param> /// <param name="numberOfRecordSets">The current number of record sets /// in this DNS zone. This is a read-only property and any attempt to /// set this value will be ignored.</param> /// <param name="nameServers">The name servers for this DNS zone. This /// is a read-only property and any attempt to set this value will be /// ignored.</param> /// <param name="zoneType">The type of this DNS zone (Public or /// Private). Possible values include: 'Public', 'Private'</param> /// <param name="registrationVirtualNetworks">A list of references to /// virtual networks that register hostnames in this DNS zone. This is /// a only when ZoneType is Private.</param> /// <param name="resolutionVirtualNetworks">A list of references to /// virtual networks that resolve records in this DNS zone. This is a /// only when ZoneType is Private.</param> public Zone(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string etag = default(string), long?maxNumberOfRecordSets = default(long?), long?maxNumberOfRecordsPerRecordSet = default(long?), long?numberOfRecordSets = default(long?), IList <string> nameServers = default(IList <string>), ZoneType?zoneType = default(ZoneType?), IList <SubResource> registrationVirtualNetworks = default(IList <SubResource>), IList <SubResource> resolutionVirtualNetworks = default(IList <SubResource>)) : base(location, id, name, type, tags) { Etag = etag; MaxNumberOfRecordSets = maxNumberOfRecordSets; MaxNumberOfRecordsPerRecordSet = maxNumberOfRecordsPerRecordSet; NumberOfRecordSets = numberOfRecordSets; NameServers = nameServers; ZoneType = zoneType; RegistrationVirtualNetworks = registrationVirtualNetworks; ResolutionVirtualNetworks = resolutionVirtualNetworks; CustomInit(); }
internal static string ToSerializedValue(this ZoneType?value) { return(value == null ? null : ((ZoneType)value).ToSerializedValue()); }