public PropertyContainer(Models.ContainerConfiguration protocolObject) : base(BindingState.Bound) { this.ContainerImageNamesProperty = this.CreatePropertyAccessor( UtilitiesInternal.CollectionToThreadSafeCollection(protocolObject.ContainerImageNames, o => o), nameof(ContainerImageNames), BindingAccess.Read); this.ContainerRegistriesProperty = this.CreatePropertyAccessor( ContainerRegistry.ConvertFromProtocolCollectionAndFreeze(protocolObject.ContainerRegistries), nameof(ContainerRegistries), BindingAccess.Read); }
/// <summary> /// Initializes a new instance of the VirtualMachineConfiguration /// class. /// </summary> /// <param name="imageReference">A reference to the Azure Virtual /// Machines Marketplace Image or the custom Virtual Machine Image to /// use.</param> /// <param name="nodeAgentSKUId">The SKU of the Batch Compute Node /// agent to be provisioned on Compute Nodes in the Pool.</param> /// <param name="windowsConfiguration">Windows operating system /// settings on the virtual machine.</param> /// <param name="dataDisks">The configuration for data disks attached /// to the Compute Nodes in the Pool.</param> /// <param name="licenseType">The type of on-premises license to be /// used when deploying the operating system.</param> /// <param name="containerConfiguration">The container configuration /// for the Pool.</param> public VirtualMachineConfiguration(ImageReference imageReference, string nodeAgentSKUId, WindowsConfiguration windowsConfiguration = default(WindowsConfiguration), IList <DataDisk> dataDisks = default(IList <DataDisk>), string licenseType = default(string), ContainerConfiguration containerConfiguration = default(ContainerConfiguration)) { ImageReference = imageReference; NodeAgentSKUId = nodeAgentSKUId; WindowsConfiguration = windowsConfiguration; DataDisks = dataDisks; LicenseType = licenseType; ContainerConfiguration = containerConfiguration; CustomInit(); }
/// <summary> /// Initializes a new instance of the VirtualMachineConfiguration /// class. /// </summary> /// <param name="imageReference">A reference to the Azure Virtual /// Machines Marketplace Image or the custom Virtual Machine Image to /// use.</param> /// <param name="nodeAgentSKUId">The SKU of the Batch Compute Node /// agent to be provisioned on Compute Nodes in the Pool.</param> /// <param name="windowsConfiguration">Windows operating system /// settings on the virtual machine.</param> /// <param name="dataDisks">The configuration for data disks attached /// to the Compute Nodes in the Pool.</param> /// <param name="licenseType">The type of on-premises license to be /// used when deploying the operating system.</param> /// <param name="containerConfiguration">The container configuration /// for the Pool.</param> /// <param name="diskEncryptionConfiguration">The disk encryption /// configuration for the pool.</param> /// <param name="nodePlacementConfiguration">The node placement /// configuration for the pool.</param> /// <param name="extensions">The virtual machine extension for the /// pool.</param> /// <param name="osDisk">Settings for the operating system disk of the /// Virtual Machine.</param> public VirtualMachineConfiguration(ImageReference imageReference, string nodeAgentSKUId, WindowsConfiguration windowsConfiguration = default(WindowsConfiguration), IList <DataDisk> dataDisks = default(IList <DataDisk>), string licenseType = default(string), ContainerConfiguration containerConfiguration = default(ContainerConfiguration), DiskEncryptionConfiguration diskEncryptionConfiguration = default(DiskEncryptionConfiguration), NodePlacementConfiguration nodePlacementConfiguration = default(NodePlacementConfiguration), IList <VMExtension> extensions = default(IList <VMExtension>), OSDisk osDisk = default(OSDisk)) { ImageReference = imageReference; NodeAgentSKUId = nodeAgentSKUId; WindowsConfiguration = windowsConfiguration; DataDisks = dataDisks; LicenseType = licenseType; ContainerConfiguration = containerConfiguration; DiskEncryptionConfiguration = diskEncryptionConfiguration; NodePlacementConfiguration = nodePlacementConfiguration; Extensions = extensions; OsDisk = osDisk; CustomInit(); }