def __init__(self): super(DockerSpec, self).__init__() self.cpu_cores = 0.0 self.mem_mib = 0 fields = {"cpu_cores": OD(required=True), "mem_mib": OD(required=True)} self.set_fields(fields)
def __init__(self): self.max_surge = 1 self.max_unavailable = 1 self._object_parser_fields = { "max_surge": OD(converter_tuple=(int, str)), "max_unavailable": OD(converter_tuple=(int, str)) } super(RollingUpdateStrategy, self).__init__()
def __init__(self): self.description = None self.from_src = None self.mount_path = None self.details = {} self._object_parser_fields = { "description": OD(), "from": OD(field_name="from_src"), "mount_path": OD(), "details": OD(), } super(VolumeInput, self).__init__()
def __init__(self): self.graph_storage_name = None self.graph_storage_size_mib = 0.0 self.cpu_cores = 0.0 self.mem_mib = 0 self._object_parser_fields = { "graph-storage-name": OD(field_name="graph_storage_name"), "graph-storage-size": OD(field_name="graph_storage_size_mib"), "cpu_cores": OD(), "mem_mib": OD() } super(DockerSpec, self).__init__()
def __init__(self): self.graph_storage_size_mib = 0.0 self._object_parser_fields = { "graph-storage-size": OD(field_name="graph_storage_size_mib", required=True) } super(GraphStorageSpec, self).__init__()
def __init__(self): self.description = None self.path = None self.from_loc = None self._object_parser_fields = { "description": None, "path": None, "from": OD(field_name="from_loc") } super(InputArtifact, self).__init__()
def __init__(self): self.id = None self.name = None self.labels = [] self.annotations = {} self.service_context = None self.costid = None self._object_parser_fields = { "id": OD(), "name": OD(), "labels": OD(), "annotations": OD(), "service_context": OD(class_string=ServiceContext.fqcn()), "costid": OD() } super(ServiceCommon, self).__init__()
def __init__(self): self.mount_path = None super(GraphStorageVolumeSpec, self).__init__() fields = {"mount-path": OD(field_name="mount_path", required=True)} self.set_fields(fields)