예제 #1
0
 /// <summary>
 /// Initializes a new instance of the Subnet class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="addressPrefix">The address prefix for the
 /// subnet.</param>
 /// <param name="addressPrefixes">List of address prefixes for the
 /// subnet.</param>
 /// <param name="networkSecurityGroup">The reference to the
 /// NetworkSecurityGroup resource.</param>
 /// <param name="routeTable">The reference to the RouteTable
 /// resource.</param>
 /// <param name="natGateway">Nat gateway associated with this
 /// subnet.</param>
 /// <param name="serviceEndpoints">An array of service
 /// endpoints.</param>
 /// <param name="serviceEndpointPolicies">An array of service endpoint
 /// policies.</param>
 /// <param name="privateEndpoints">An array of references to private
 /// endpoints.</param>
 /// <param name="ipConfigurations">An array of references to the
 /// network interface IP configurations using subnet.</param>
 /// <param name="ipConfigurationProfiles">Array of IP configuration
 /// profiles which reference this subnet.</param>
 /// <param name="ipAllocations">Array of IpAllocation which reference
 /// this subnet.</param>
 /// <param name="resourceNavigationLinks">An array of references to the
 /// external resources using subnet.</param>
 /// <param name="serviceAssociationLinks">An array of references to
 /// services injecting into this subnet.</param>
 /// <param name="delegations">An array of references to the delegations
 /// on the subnet.</param>
 /// <param name="purpose">A read-only string identifying the intention
 /// of use for this subnet based on delegations and other user-defined
 /// properties.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// subnet resource. Possible values include: 'Succeeded', 'Updating',
 /// 'Deleting', 'Failed'</param>
 /// <param name="privateEndpointNetworkPolicies">Enable or Disable
 /// apply network policies on private end point in the subnet. Possible
 /// values include: 'Enabled', 'Disabled'</param>
 /// <param name="privateLinkServiceNetworkPolicies">Enable or Disable
 /// apply network policies on private link service in the subnet.
 /// Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="applicationGatewayIpConfigurations">Application
 /// gateway IP configurations of virtual network resource.</param>
 /// <param name="name">The name of the resource that is unique within a
 /// resource group. This name can be used to access the
 /// resource.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 /// <param name="type">Resource type.</param>
 public Subnet(string id = default(string), string addressPrefix = default(string), IList <string> addressPrefixes = default(IList <string>), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), RouteTable routeTable = default(RouteTable), SubResource natGateway = default(SubResource), IList <ServiceEndpointPropertiesFormat> serviceEndpoints = default(IList <ServiceEndpointPropertiesFormat>), IList <ServiceEndpointPolicy> serviceEndpointPolicies = default(IList <ServiceEndpointPolicy>), IList <PrivateEndpoint> privateEndpoints = default(IList <PrivateEndpoint>), IList <IPConfiguration> ipConfigurations = default(IList <IPConfiguration>), IList <IPConfigurationProfile> ipConfigurationProfiles = default(IList <IPConfigurationProfile>), IList <SubResource> ipAllocations = default(IList <SubResource>), IList <ResourceNavigationLink> resourceNavigationLinks = default(IList <ResourceNavigationLink>), IList <ServiceAssociationLink> serviceAssociationLinks = default(IList <ServiceAssociationLink>), IList <Delegation> delegations = default(IList <Delegation>), string purpose = default(string), string provisioningState = default(string), string privateEndpointNetworkPolicies = default(string), string privateLinkServiceNetworkPolicies = default(string), IList <ApplicationGatewayIPConfiguration> applicationGatewayIpConfigurations = default(IList <ApplicationGatewayIPConfiguration>), string name = default(string), string etag = default(string), string type = default(string))
     : base(id)
 {
     AddressPrefix           = addressPrefix;
     AddressPrefixes         = addressPrefixes;
     NetworkSecurityGroup    = networkSecurityGroup;
     RouteTable              = routeTable;
     NatGateway              = natGateway;
     ServiceEndpoints        = serviceEndpoints;
     ServiceEndpointPolicies = serviceEndpointPolicies;
     PrivateEndpoints        = privateEndpoints;
     IpConfigurations        = ipConfigurations;
     IpConfigurationProfiles = ipConfigurationProfiles;
     IpAllocations           = ipAllocations;
     ResourceNavigationLinks = resourceNavigationLinks;
     ServiceAssociationLinks = serviceAssociationLinks;
     Delegations             = delegations;
     Purpose           = purpose;
     ProvisioningState = provisioningState;
     PrivateEndpointNetworkPolicies     = privateEndpointNetworkPolicies;
     PrivateLinkServiceNetworkPolicies  = privateLinkServiceNetworkPolicies;
     ApplicationGatewayIpConfigurations = applicationGatewayIpConfigurations;
     Name = name;
     Etag = etag;
     Type = type;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the NetworkInterface class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="extendedLocation">The extended location of the network
 /// interface.</param>
 /// <param name="virtualMachine">The reference to a virtual
 /// machine.</param>
 /// <param name="networkSecurityGroup">The reference to the
 /// NetworkSecurityGroup resource.</param>
 /// <param name="privateEndpoint">A reference to the private endpoint
 /// to which the network interface is linked.</param>
 /// <param name="ipConfigurations">A list of IPConfigurations of the
 /// network interface.</param>
 /// <param name="tapConfigurations">A list of TapConfigurations of the
 /// network interface.</param>
 /// <param name="dnsSettings">The DNS settings in network
 /// interface.</param>
 /// <param name="macAddress">The MAC address of the network
 /// interface.</param>
 /// <param name="primary">Whether this is a primary network interface
 /// on a virtual machine.</param>
 /// <param name="enableAcceleratedNetworking">If the network interface
 /// is accelerated networking enabled.</param>
 /// <param name="enableIPForwarding">Indicates whether IP forwarding is
 /// enabled on this network interface.</param>
 /// <param name="hostedWorkloads">A list of references to linked
 /// BareMetal resources.</param>
 /// <param name="dscpConfiguration">A reference to the dscp
 /// configuration to which the network interface is linked.</param>
 /// <param name="resourceGuid">The resource GUID property of the
 /// network interface resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// network interface resource. Possible values include: 'Succeeded',
 /// 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="nicType">Type of Network Interface resource. Possible
 /// values include: 'Standard', 'Elastic'</param>
 /// <param name="privateLinkService">Privatelinkservice of the network
 /// interface resource.</param>
 /// <param name="migrationPhase">Migration phase of Network Interface
 /// resource. Possible values include: 'None', 'Prepare', 'Commit',
 /// 'Abort', 'Committed'</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public NetworkInterface(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ExtendedLocation extendedLocation = default(ExtendedLocation), SubResource virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList <NetworkInterfaceIPConfiguration> ipConfigurations = default(IList <NetworkInterfaceIPConfiguration>), IList <NetworkInterfaceTapConfiguration> tapConfigurations = default(IList <NetworkInterfaceTapConfiguration>), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool?primary = default(bool?), bool?enableAcceleratedNetworking = default(bool?), bool?enableIPForwarding = default(bool?), IList <string> hostedWorkloads = default(IList <string>), SubResource dscpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string nicType = default(string), PrivateLinkService privateLinkService = default(PrivateLinkService), string migrationPhase = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     ExtendedLocation     = extendedLocation;
     VirtualMachine       = virtualMachine;
     NetworkSecurityGroup = networkSecurityGroup;
     PrivateEndpoint      = privateEndpoint;
     IpConfigurations     = ipConfigurations;
     TapConfigurations    = tapConfigurations;
     DnsSettings          = dnsSettings;
     MacAddress           = macAddress;
     Primary = primary;
     EnableAcceleratedNetworking = enableAcceleratedNetworking;
     EnableIPForwarding          = enableIPForwarding;
     HostedWorkloads             = hostedWorkloads;
     DscpConfiguration           = dscpConfiguration;
     ResourceGuid       = resourceGuid;
     ProvisioningState  = provisioningState;
     NicType            = nicType;
     PrivateLinkService = privateLinkService;
     MigrationPhase     = migrationPhase;
     Etag = etag;
     CustomInit();
 }