Assets Component
Used to sync assets from a source instance to a destination instance of Swimlane
sync_asset
This method will create (add) a single asset from a source instance to a destination instance.
Currently we are only adding assets and NOT updating them but this functionality may expand in the future.
Args: asset (dict): A single Swimlane asset dictionary from the Swimlane API
def sync_asset(self, asset: dict)
sync
This method is used to sync (create) all assets from a source instance to a destination instance
def sync(self)
Asset Model
Asset (AssetBase)
__attrs_init__(self, type, pythonVersion, id, version, name, disabled, valid, uid, parameters={}, descriptor={}, description=None)
special
Method generated by attrs for class Asset.
Source code in aqueduct/models/asset.py
def __attrs_init__(self, type, pythonVersion, id, version, name, disabled, valid, uid, parameters=attr_dict['parameters'].default, descriptor=attr_dict['descriptor'].default, description=attr_dict['description'].default):
self.type = type
self.pythonVersion = pythonVersion
self.id = id
self.version = version
self.name = name
self.disabled = disabled
self.valid = valid
self.uid = uid
self.parameters = parameters
self.descriptor = descriptor
self.description = description
AssetBase
__init__(self, type, pythonVersion, id, version, name, disabled)
special
Method generated by attrs for class AssetBase.
Source code in aqueduct/models/asset.py
def __init__(self, type, pythonVersion, id, version, name, disabled):
self.type = type
self.pythonVersion = pythonVersion
self.id = id
self.version = version
self.name = name
self.disabled = disabled
Descriptor (AssetBase)
__attrs_init__(self, type, pythonVersion, id, version, name, disabled, base64Image, family, description, testScript, testScriptFile, imageId, inputParameters={}, packageDescriptor={})
special
Method generated by attrs for class Descriptor.
Source code in aqueduct/models/asset.py
def __attrs_init__(self, type, pythonVersion, id, version, name, disabled, base64Image, family, description, testScript, testScriptFile, imageId, inputParameters=attr_dict['inputParameters'].default, packageDescriptor=attr_dict['packageDescriptor'].default):
self.type = type
self.pythonVersion = pythonVersion
self.id = id
self.version = version
self.name = name
self.disabled = disabled
self.base64Image = base64Image
self.family = family
self.description = description
self.testScript = testScript
self.testScriptFile = testScriptFile
self.imageId = imageId
self.inputParameters = inputParameters
self.packageDescriptor = packageDescriptor
self.__attrs_post_init__()