from typing import List
class Service:
def __init__(self, name: str, image: str, ports: List[str] = [], networks: List[str] = [], volumes: List[str] = [], depends_on: List[str] = [], links: List[str] = [], extends: List[str] = []) -> None:
self._name = name
self._image = image
self._ports = ports
self._networks = networks
self._volumes = volumes
self._depends_on = depends_on
self._links = links
self._extends = extends
@property
def name(self):
return self._name
def image(self):
return self._image
def ports(self):
return self._ports
def networks(self):
return self._networks
def volumes(self):
return self._volumes
def depends_on(self):
return self._depends_on
def links(self):
return self._links
def extends(self):
return self._extends