def __init__(self, config=None): super().__init__(config) if config: if "status" in config: if isinstance(config["status"], enabled_status.EnabledStatus): self.status = config["status"] elif config["status"] is not None: self.status = enabled_status.EnabledStatus( config["status"].upper()) else: self.status = None else: self.status = None else: self.status = None
def __init__(self, config=None): super().__init__(config) if config: self.links = config["links"]\ if "links" in config else None self.description = config["description"]\ if "description" in config else None self.id = config["id"]\ if "id" in config else None self.name = config["name"]\ if "name" in config else None if "stage" in config: if isinstance(config["stage"], feature_stage.FeatureStage): self.stage = config["stage"] elif config["stage"] is not None: self.stage = feature_stage.FeatureStage(config["stage"]) else: self.stage = None else: self.stage = None if "status" in config: if isinstance(config["status"], enabled_status.EnabledStatus): self.status = config["status"] elif config["status"] is not None: self.status = enabled_status.EnabledStatus( config["status"].upper()) else: self.status = None else: self.status = None if "type" in config: if isinstance(config["type"], feature_type.FeatureType): self.type = config["type"] elif config["type"] is not None: self.type = feature_type.FeatureType( config["type"].upper()) else: self.type = None else: self.type = None else: self.links = None self.description = None self.id = None self.name = None self.stage = None self.status = None self.type = None
def __init__(self, config=None): super().__init__(config) if config: self.links = config["links"]\ if "links" in config else None if "capabilities" in config: if isinstance(config["capabilities"], capabilities_object.CapabilitiesObject): self.capabilities = config["capabilities"] elif config["capabilities"] is not None: self.capabilities = capabilities_object.CapabilitiesObject( config["capabilities"]) else: self.capabilities = None else: self.capabilities = None self.description = config["description"]\ if "description" in config else None self.name = config["name"]\ if "name" in config else None if "status" in config: if isinstance(config["status"], enabled_status.EnabledStatus): self.status = config["status"] elif config["status"] is not None: self.status = enabled_status.EnabledStatus( config["status"].upper()) else: self.status = None else: self.status = None else: self.links = None self.capabilities = None self.description = None self.name = None self.status = None
def __init__(self, config=None): super().__init__(config) if config: if "change" in config: if isinstance(config["change"], change_enum.ChangeEnum): self.change = config["change"] elif config["change"] is not None: self.change = change_enum.ChangeEnum( config["change"].upper()) else: self.change = None else: self.change = None if "seed" in config: if isinstance(config["seed"], seed_enum.SeedEnum): self.seed = config["seed"] elif config["seed"] is not None: self.seed = seed_enum.SeedEnum(config["seed"].upper()) else: self.seed = None else: self.seed = None if "status" in config: if isinstance(config["status"], enabled_status.EnabledStatus): self.status = config["status"] elif config["status"] is not None: self.status = enabled_status.EnabledStatus( config["status"].upper()) else: self.status = None else: self.status = None else: self.change = None self.seed = None self.status = None