/// <summary> /// Converts a collection of protocol layer objects to object layer collection objects. /// </summary> internal static IList <VMExtension> ConvertFromProtocolCollection(IEnumerable <Models.VMExtension> protoCollection) { ConcurrentChangeTrackedModifiableList <VMExtension> converted = UtilitiesInternal.CollectionToThreadSafeCollectionIModifiable( items: protoCollection, objectCreationFunc: o => new VMExtension(o)); return(converted); }
/// <summary> /// Converts a collection of protocol layer objects to object layer collection objects. /// </summary> internal static IList <InboundNatPool> ConvertFromProtocolCollection(IEnumerable <Models.InboundNATPool> protoCollection) { ConcurrentChangeTrackedModifiableList <InboundNatPool> converted = UtilitiesInternal.CollectionToThreadSafeCollectionIModifiable( items: protoCollection, objectCreationFunc: o => new InboundNatPool(o)); return(converted); }
/// <summary> /// Converts a collection of protocol layer objects to object layer collection objects. /// </summary> internal static IList <UserAssignedIdentity> ConvertFromProtocolCollection(IEnumerable <Models.UserAssignedIdentity> protoCollection) { ConcurrentChangeTrackedModifiableList <UserAssignedIdentity> converted = UtilitiesInternal.CollectionToThreadSafeCollectionIModifiable( items: protoCollection, objectCreationFunc: o => new UserAssignedIdentity(o)); return(converted); }
/// <summary> /// Converts a collection of protocol layer objects to object layer collection objects, in a frozen state. /// </summary> internal static IList <CertificateReference> ConvertFromProtocolCollectionAndFreeze(IEnumerable <Models.CertificateReference> protoCollection) { ConcurrentChangeTrackedModifiableList <CertificateReference> converted = UtilitiesInternal.CollectionToThreadSafeCollectionIModifiable( items: protoCollection, objectCreationFunc: o => new CertificateReference(o).Freeze()); converted = UtilitiesInternal.CreateObjectWithNullCheck(converted, o => o.Freeze()); return(converted); }
/// <summary> /// Converts a collection of protocol layer objects to object layer collection objects. /// </summary> internal static IList <NetworkSecurityGroupRule> ConvertFromProtocolCollection(IEnumerable <Models.NetworkSecurityGroupRule> protoCollection) { ConcurrentChangeTrackedModifiableList <NetworkSecurityGroupRule> converted = UtilitiesInternal.CollectionToThreadSafeCollectionIModifiable( items: protoCollection, objectCreationFunc: o => new NetworkSecurityGroupRule(o)); return(converted); }
/// <summary> /// Converts a collection of protocol layer objects to object layer collection objects. /// </summary> internal static IList <ApplicationPackageReference> ConvertFromProtocolCollection(IEnumerable <Models.ApplicationPackageReference> protoCollection) { ConcurrentChangeTrackedModifiableList <ApplicationPackageReference> converted = UtilitiesInternal.CollectionToThreadSafeCollectionIModifiable( items: protoCollection, objectCreationFunc: o => new ApplicationPackageReference(o)); return(converted); }