class Mio::Model::Hotfolder
Public Instance Methods
config_hash()
click to toggle source
# File lib/mio/model/hotfolder.rb, line 24 def config_hash # Get the s3 resource id storage = @search.find_resources_by_name(@args.storage_name).first raise Mio::Model::NoSuchResource, "Could not find #{@args.storage_name}" unless storage # Get the workflow name workflow = @search.find_workflowDefinitions_by_name(@args.workflow_name).first raise Mio::Model::NoSuchResource, "Could not find #{@args.workflow_name}" unless workflow owner = @search.find_users_by_displayName(@args.owner).first raise Mio::Model::NoSuchResource, "Could not find #{@args.owner}" unless owner { 'housekeeping-period' => 5139767606400000000, 'inactivity-timeout' => 30000000, 'storage-resources' => { 'Storage Resource' => [ {'id' => storage['id'] } ] }, 'use-md5' => false, 'workflow-definition' => { 'id' => workflow['id'] }, 'owner' => { 'id' => owner['id'] } } end
create_hash()
click to toggle source
# File lib/mio/model/hotfolder.rb, line 16 def create_hash plugin = 'tv.nativ.mio.enterprise.resources.impl.capacity.folder.hotfolder.MioHotFolderResource' {name: @args.name, pluginClass: plugin, visibilityIds: @args.visibility} end