citrine.resources.data_version_update module

Record to hold branch data version update information.

class citrine.resources.data_version_update.BranchDataUpdate(*, data_updates: List[DataVersionUpdate], predictors: List[PredictorRef])

Bases: Resource[BranchDataUpdate]

Branch data updates with predictors using the versions indicated.

access_control_dict() dict

Return an access control entity representation of this resource. Internal use only.

classmethod build(data: dict) Self

Build an instance of this object from given data.

dump() dict

Dump this instance.

data_updates = None
predictors = None
class citrine.resources.data_version_update.DataVersionUpdate(*, current: str, latest: str)

Bases: Serializable[DataVersionUpdate]

Container for data updates.

classmethod build(data: dict) Self

Build an instance of this object from given data.

dump() dict

Dump this instance.

current = None
latest = None
typ = 'DataVersionUpdate'
class citrine.resources.data_version_update.NextBranchVersionRequest(*, data_updates: List[DataVersionUpdate], use_predictors: List[PredictorRef])

Bases: Resource[NextBranchVersionRequest]

Instructions for how the next version of a branch should handle its predictors.

data_updates contains the list of data source versions to upgrade (current->latest), and use_predictors will wither have a <predictor_id>:latest to indicate the workflow should use a new version of the predictor. Or <predictor_id>:<version #> to indicate that the workflow should use an existing predictor version.

access_control_dict() dict

Return an access control entity representation of this resource. Internal use only.

classmethod build(data: dict) Self

Build an instance of this object from given data.

dump() dict

Dump this instance.

data_updates = None
use_predictors = None