/// <summary>
 /// Initializes a new instance of the NetworkConfiguration class.
 /// </summary>
 /// <param name="subnetId">The ARM resource identifier of the virtual
 /// network subnet which the Compute Nodes of the Pool will join. This
 /// is of the form
 /// /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}.</param>
 /// <param name="dynamicVNetAssignmentScope">The scope of dynamic vnet
 /// assignment.</param>
 /// <param name="endpointConfiguration">The configuration for endpoints
 /// on Compute Nodes in the Batch Pool.</param>
 /// <param name="publicIPAddressConfiguration">The Public IPAddress
 /// configuration for Compute Nodes in the Batch Pool.</param>
 public NetworkConfiguration(string subnetId = default(string), DynamicVNetAssignmentScope?dynamicVNetAssignmentScope = default(DynamicVNetAssignmentScope?), PoolEndpointConfiguration endpointConfiguration = default(PoolEndpointConfiguration), PublicIPAddressConfiguration publicIPAddressConfiguration = default(PublicIPAddressConfiguration))
 {
     SubnetId = subnetId;
     DynamicVNetAssignmentScope   = dynamicVNetAssignmentScope;
     EndpointConfiguration        = endpointConfiguration;
     PublicIPAddressConfiguration = publicIPAddressConfiguration;
     CustomInit();
 }
Exemple #2
0
 public PropertyContainer(Models.PublicIPAddressConfiguration protocolObject) : base(BindingState.Bound)
 {
     this.IpAddressIdsProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CollectionToThreadSafeCollection(protocolObject.IpAddressIds, o => o),
         nameof(IpAddressIds),
         BindingAccess.Read);
     this.ProvisionProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.MapNullableEnum <Models.IPAddressProvisioningType, Common.IPAddressProvisioningType>(protocolObject.Provision),
         nameof(Provision),
         BindingAccess.Read);
 }