mirror of https://github.com/portainer/portainer
10 lines
287 B
JavaScript
10 lines
287 B
JavaScript
import _ from 'lodash-es';
|
|
|
|
export function ContainerInstanceProviderViewModel(data) {
|
|
this.Id = data.id;
|
|
this.Namespace = data.namespace;
|
|
|
|
var containerGroupType = _.find(data.resourceTypes, { resourceType: 'containerGroups' });
|
|
this.Locations = containerGroupType.locations;
|
|
}
|