Example #1
0
        /// <summary>
        /// Return a protocol object of the requested type.
        /// </summary>
        /// <returns>The protocol object of the requested type.</returns>
        Models.DiskEncryptionConfiguration ITransportObjectProvider <Models.DiskEncryptionConfiguration> .GetTransportObject()
        {
            Models.DiskEncryptionConfiguration result = new Models.DiskEncryptionConfiguration()
            {
                Targets = UtilitiesInternal.ConvertEnumCollection <Common.DiskEncryptionTarget, Models.DiskEncryptionTarget>(this.Targets),
            };

            return(result);
        }
Example #2
0
 internal DiskEncryptionConfiguration(Models.DiskEncryptionConfiguration protocolObject)
 {
     this.Targets = UtilitiesInternal.ConvertEnumCollection <Models.DiskEncryptionTarget, Common.DiskEncryptionTarget>(protocolObject.Targets);
 }