internal PSDataDisk(Microsoft.Azure.Batch.DataDisk omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
 public PropertyContainer(Models.VirtualMachineConfiguration protocolObject) : base(BindingState.Bound)
 {
     this.ContainerConfigurationProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ContainerConfiguration, o => new ContainerConfiguration(o)),
         nameof(ContainerConfiguration),
         BindingAccess.Read | BindingAccess.Write);
     this.DataDisksProperty = this.CreatePropertyAccessor(
         DataDisk.ConvertFromProtocolCollection(protocolObject.DataDisks),
         nameof(DataDisks),
         BindingAccess.Read | BindingAccess.Write);
     this.DiskEncryptionConfigurationProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.DiskEncryptionConfiguration, o => new DiskEncryptionConfiguration(o)),
         nameof(DiskEncryptionConfiguration),
         BindingAccess.Read | BindingAccess.Write);
     this.ExtensionsProperty = this.CreatePropertyAccessor(
         VMExtension.ConvertFromProtocolCollection(protocolObject.Extensions),
         nameof(Extensions),
         BindingAccess.Read | BindingAccess.Write);
     this.ImageReferenceProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ImageReference, o => new ImageReference(o)),
         nameof(ImageReference),
         BindingAccess.Read | BindingAccess.Write);
     this.LicenseTypeProperty = this.CreatePropertyAccessor(
         protocolObject.LicenseType,
         nameof(LicenseType),
         BindingAccess.Read | BindingAccess.Write);
     this.NodeAgentSkuIdProperty = this.CreatePropertyAccessor(
         protocolObject.NodeAgentSKUId,
         nameof(NodeAgentSkuId),
         BindingAccess.Read | BindingAccess.Write);
     this.NodePlacementConfigurationProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.NodePlacementConfiguration, o => new NodePlacementConfiguration(o)),
         nameof(NodePlacementConfiguration),
         BindingAccess.Read | BindingAccess.Write);
     this.OSDiskProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.OsDisk, o => new OSDisk(o)),
         nameof(OSDisk),
         BindingAccess.Read | BindingAccess.Write);
     this.WindowsConfigurationProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.WindowsConfiguration, o => new WindowsConfiguration(o)),
         nameof(WindowsConfiguration),
         BindingAccess.Read | BindingAccess.Write);
 }
 public PSDataDisk(int lun, int diskSizeGB, System.Nullable <Microsoft.Azure.Batch.Common.CachingType> caching = null, System.Nullable <Microsoft.Azure.Batch.Common.StorageAccountType> storageAccountType = null)
 {
     this.omObject = new Microsoft.Azure.Batch.DataDisk(lun, diskSizeGB, caching, storageAccountType);
 }