-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
Copy pathArmDnsResolverModelFactory.cs
147 lines (131 loc) · 11.9 KB
/
ArmDnsResolverModelFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using Azure;
using Azure.Core;
using Azure.ResourceManager.DnsResolver;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.DnsResolver.Models
{
/// <summary> Model factory for models. </summary>
public static partial class ArmDnsResolverModelFactory
{
/// <summary> Initializes a new instance of DnsResolverData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="etag"> ETag of the DNS resolver. </param>
/// <param name="virtualNetworkId"> The reference to the virtual network. This cannot be changed after creation. </param>
/// <param name="dnsResolverState"> The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored. </param>
/// <param name="provisioningState"> The current provisioning state of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored. </param>
/// <param name="resourceGuid"> The resourceGuid property of the DNS resolver resource. </param>
/// <returns> A new <see cref="DnsResolver.DnsResolverData"/> instance for mocking. </returns>
public static DnsResolverData DnsResolverData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier virtualNetworkId = null, DnsResolverState? dnsResolverState = null, DnsResolverProvisioningState? provisioningState = null, Guid? resourceGuid = null)
{
tags ??= new Dictionary<string, string>();
return new DnsResolverData(id, name, resourceType, systemData, tags, location, etag, virtualNetworkId != null ? ResourceManagerModelFactory.WritableSubResource(virtualNetworkId) : null, dnsResolverState, provisioningState, resourceGuid);
}
/// <summary> Initializes a new instance of DnsResolverInboundEndpointData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="etag"> ETag of the inbound endpoint. </param>
/// <param name="ipConfigurations"> IP configurations for the inbound endpoint. </param>
/// <param name="provisioningState"> The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value will be ignored. </param>
/// <param name="resourceGuid"> The resourceGuid property of the inbound endpoint resource. </param>
/// <returns> A new <see cref="DnsResolver.DnsResolverInboundEndpointData"/> instance for mocking. </returns>
public static DnsResolverInboundEndpointData DnsResolverInboundEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable<InboundEndpointIPConfiguration> ipConfigurations = null, DnsResolverProvisioningState? provisioningState = null, Guid? resourceGuid = null)
{
tags ??= new Dictionary<string, string>();
ipConfigurations ??= new List<InboundEndpointIPConfiguration>();
return new DnsResolverInboundEndpointData(id, name, resourceType, systemData, tags, location, etag, ipConfigurations?.ToList(), provisioningState, resourceGuid);
}
/// <summary> Initializes a new instance of DnsResolverOutboundEndpointData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="etag"> ETag of the outbound endpoint. </param>
/// <param name="subnetId"> The reference to the subnet used for the outbound endpoint. </param>
/// <param name="provisioningState"> The current provisioning state of the outbound endpoint. This is a read-only property and any attempt to set this value will be ignored. </param>
/// <param name="resourceGuid"> The resourceGuid property of the outbound endpoint resource. </param>
/// <returns> A new <see cref="DnsResolver.DnsResolverOutboundEndpointData"/> instance for mocking. </returns>
public static DnsResolverOutboundEndpointData DnsResolverOutboundEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, ETag? etag = null, ResourceIdentifier subnetId = null, DnsResolverProvisioningState? provisioningState = null, Guid? resourceGuid = null)
{
tags ??= new Dictionary<string, string>();
return new DnsResolverOutboundEndpointData(id, name, resourceType, systemData, tags, location, etag, subnetId != null ? ResourceManagerModelFactory.WritableSubResource(subnetId) : null, provisioningState, resourceGuid);
}
/// <summary> Initializes a new instance of DnsForwardingRulesetData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="etag"> ETag of the DNS forwarding ruleset. </param>
/// <param name="dnsResolverOutboundEndpoints"> The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. </param>
/// <param name="provisioningState"> The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this value will be ignored. </param>
/// <param name="resourceGuid"> The resourceGuid for the DNS forwarding ruleset. </param>
/// <returns> A new <see cref="DnsResolver.DnsForwardingRulesetData"/> instance for mocking. </returns>
public static DnsForwardingRulesetData DnsForwardingRulesetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary<string, string> tags = null, AzureLocation location = default, ETag? etag = null, IEnumerable<WritableSubResource> dnsResolverOutboundEndpoints = null, DnsResolverProvisioningState? provisioningState = null, Guid? resourceGuid = null)
{
tags ??= new Dictionary<string, string>();
dnsResolverOutboundEndpoints ??= new List<WritableSubResource>();
return new DnsForwardingRulesetData(id, name, resourceType, systemData, tags, location, etag, dnsResolverOutboundEndpoints?.ToList(), provisioningState, resourceGuid);
}
/// <summary> Initializes a new instance of DnsForwardingRuleData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="etag"> ETag of the forwarding rule. </param>
/// <param name="domainName"> The domain name for the forwarding rule. </param>
/// <param name="targetDnsServers"> DNS servers to forward the DNS query to. </param>
/// <param name="metadata"> Metadata attached to the forwarding rule. </param>
/// <param name="dnsForwardingRuleState"> The state of forwarding rule. </param>
/// <param name="provisioningState"> The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value will be ignored. </param>
/// <returns> A new <see cref="DnsResolver.DnsForwardingRuleData"/> instance for mocking. </returns>
public static DnsForwardingRuleData DnsForwardingRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, string domainName = null, IEnumerable<TargetDnsServer> targetDnsServers = null, IDictionary<string, string> metadata = null, DnsForwardingRuleState? dnsForwardingRuleState = null, DnsResolverProvisioningState? provisioningState = null)
{
targetDnsServers ??= new List<TargetDnsServer>();
metadata ??= new Dictionary<string, string>();
return new DnsForwardingRuleData(id, name, resourceType, systemData, etag, domainName, targetDnsServers?.ToList(), metadata, dnsForwardingRuleState, provisioningState);
}
/// <summary> Initializes a new instance of DnsForwardingRulesetVirtualNetworkLinkData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="etag"> ETag of the virtual network link. </param>
/// <param name="virtualNetworkId"> The reference to the virtual network. This cannot be changed after creation. </param>
/// <param name="metadata"> Metadata attached to the virtual network link. </param>
/// <param name="provisioningState"> The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value will be ignored. </param>
/// <returns> A new <see cref="DnsResolver.DnsForwardingRulesetVirtualNetworkLinkData"/> instance for mocking. </returns>
public static DnsForwardingRulesetVirtualNetworkLinkData DnsForwardingRulesetVirtualNetworkLinkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, ResourceIdentifier virtualNetworkId = null, IDictionary<string, string> metadata = null, DnsResolverProvisioningState? provisioningState = null)
{
metadata ??= new Dictionary<string, string>();
return new DnsForwardingRulesetVirtualNetworkLinkData(id, name, resourceType, systemData, etag, virtualNetworkId != null ? ResourceManagerModelFactory.WritableSubResource(virtualNetworkId) : null, metadata, provisioningState);
}
/// <summary> Initializes a new instance of VirtualNetworkDnsForwardingRuleset. </summary>
/// <param name="id"> DNS Forwarding Ruleset Resource ID. </param>
/// <param name="virtualNetworkLinkId"> The reference to the virtual network link. </param>
/// <returns> A new <see cref="Models.VirtualNetworkDnsForwardingRuleset"/> instance for mocking. </returns>
public static VirtualNetworkDnsForwardingRuleset VirtualNetworkDnsForwardingRuleset(ResourceIdentifier id = null, ResourceIdentifier virtualNetworkLinkId = null)
{
return new VirtualNetworkDnsForwardingRuleset(id, virtualNetworkLinkId != null ? ResourceManagerModelFactory.WritableSubResource(virtualNetworkLinkId) : null);
}
}
}