mio-config 2.13.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cf8e164d43ed4f9f081eb2530dcb6c829c6db07
4
- data.tar.gz: 0bddb7e19ce3ed10d6d15914753749f7977811a8
3
+ metadata.gz: 4756bd98af5239e9a478e08923f91cf55828ba6b
4
+ data.tar.gz: 5dcbab1047fd189524273ce1abb2503b88f5ad25
5
5
  SHA512:
6
- metadata.gz: 0bd96c16777000971bdb7042d84ed5d23ab27e3ede72149f18c993bd415bd4a9015356dee20efc1774c9c861372c59c2c18aa483bf93dccbad80a4a72540fc9b
7
- data.tar.gz: 44cb1ae9194874f3a390713d64958bfe29ded008dadc7bcc39c8c8ceb53dd14c433abbc9b41c5886ad576a6d066c5bb014fbb91e9adde5b70ed38d078678dc41
6
+ metadata.gz: b9970cbe570cb13c483273fb73643f423ee63b910e848fac3ddff2e22daacdd7419fb55bd99b4a4fd539f0832a305d07c2cc17d85e6137c79a7cb004a512c894
7
+ data.tar.gz: 86e98acb6a8f6b6f99bc75edd0ccaa0cfe945cae372c86b69697b8b7f6873f2b2a19d1d3047a9777bcea8774466f5b7d0ca4db14bf56b167663f1f853508ba81
@@ -0,0 +1,35 @@
1
+ class Mio
2
+ class Model
3
+ class Extract < Model
4
+ set_resource :actions
5
+
6
+ field :name, String, 'Name of the Add To Group action'
7
+ field :visibility, Array,'IDs of accounts that may see this', [4]
8
+ field :autoApproveFrames, Symbol, 'Auto approve extracted frames', :true
9
+ field :masterFrame, Fixnum, 'Seconds for master frame', 10
10
+ field :setFramesOfParentAsset, Symbol, 'Set key frame on parent asset', :false
11
+ field :numberOfKeyFramesToExtract, Fixnum, 'Number of key frames to extract', 10
12
+ field :enable, Symbol, ':true or :false', :true
13
+ field :start, Symbol, ':true or :false', :true
14
+
15
+ def create_hash
16
+ plugin = 'tv.nativ.mio.enterprise.execution.action.file.impl.extract.DefaultExtractCommand'
17
+
18
+ {name: @args.name,
19
+ pluginClass: plugin,
20
+ type: 'extract',
21
+ visibilityIds: @args.visibility}
22
+ end
23
+
24
+ def config_hash
25
+ {"extract-metadata": false,
26
+ "extract-frames": { "approve-frames": @args.autoApproveFrames,
27
+ "set-master-frame": @args.masterFrame,
28
+ "set-frames-on-parent-asset": @args.setFramesOfParentAsset,
29
+ "fixed-number": @args.numberOfKeyFramesToExtract}
30
+ }
31
+ end
32
+
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,22 @@
1
+ class Mio
2
+ class Model
3
+ class ExtractResource < Model
4
+ set_resource :resources
5
+
6
+ field :name, String, 'Name of the Extract resource'
7
+ field :visibility, Array,'IDs of accounts that may see this', [4]
8
+
9
+ field :enable, Symbol, ':true or :false', :true
10
+ field :start, Symbol, ':true or :false', :true
11
+
12
+ def create_hash
13
+ plugin = 'tv.nativ.mio.enterprise.resources.impl.process.extract.MioExtractResource'
14
+
15
+ {name: @args.name,
16
+ pluginClass: plugin,
17
+ visibilityIds: @args.visibility}
18
+ end
19
+
20
+ end
21
+ end
22
+ end
@@ -7,11 +7,15 @@ class Mio
7
7
  field :secret, String, 'AWS secret'
8
8
  field :bucket, String, 'AWS bucket name'
9
9
  field :variant, String, 'Variant name'
10
+ field :creationContext, String, 'Creation Context', 'Ingest', /^(INGEST|PROXY|COPY|TRANSCODE|IMPORT|TRANSFORM)$/
11
+ field :parentAssetId, String, 'Variable or Id for parent Asset to associate', ''
12
+ field :parentRelationName, String, 'Name of parent child relationship', ''
10
13
  field :s3PathVariable, String, 'S3 Path variable', '${variables.assetS3Path}'
11
14
  field :assetTitleVariable, String, 'S3 asset title variable', '${variables.assetTitle}'
12
15
  field :metadataDefinition, String, 'Metadata definition id'
13
16
  field :visibility, Array, 'Ids of the accounts which may see the import action', [4]
14
17
  field :sourceJsonVariable, String, 'Json Variable to grab metadata from'
18
+ field :runRuleExpression, String, 'Job run rule expression', ''
15
19
 
16
20
  field :enable, Symbol, ':true or :false', :true
17
21
  field :start, Symbol, ':true or :false', :true
@@ -22,7 +26,7 @@ class Mio
22
26
  pluginClass: plugin,
23
27
  visibilityIds: @args.visibility,
24
28
  'type': 'import',
25
- 'runRuleExpression': ''
29
+ 'runRuleExpression': @args.runRuleExpression
26
30
  }
27
31
  end
28
32
 
@@ -32,7 +36,7 @@ class Mio
32
36
  raise Mio::Model::NoSuchResource, 'No such metadata definition [' + @args.metadataDefinition + ']'
33
37
  end
34
38
 
35
- {
39
+ h = {
36
40
  "source-file": {
37
41
  "source": {
38
42
  "vfs-source-file-path": {
@@ -68,7 +72,7 @@ class Mio
68
72
 
69
73
  },
70
74
  "creation-context": {
71
- "value": "IMPORT",
75
+ "value": @args.creationContext,
72
76
  "isExpression": false
73
77
  }
74
78
  },
@@ -88,6 +92,24 @@ class Mio
88
92
  }
89
93
  }
90
94
  }
95
+ unless @args.parentAssetId.to_s == ''
96
+ h["asset-relationships"] = {
97
+ "child": {
98
+ "parent": {
99
+ "parent-asset-id": {
100
+ "value": @args.parentAssetId,
101
+ "isExpression": false
102
+ }
103
+ },
104
+ "reference-name": {
105
+ "value": @args.parentRelationName,
106
+ "isExpression": false
107
+ }
108
+ }
109
+ }
110
+ end
111
+
112
+ h
91
113
  end
92
114
  end
93
115
  end
@@ -6,13 +6,19 @@ class Mio
6
6
 
7
7
  field :from, String, 'Starting node name'
8
8
  field :to, String,'Destination node name'
9
+ field :name, String, 'Transition name, empty string infers autogenerated transition name', ''
9
10
 
10
11
  nested true
11
12
 
12
13
  def create_hash
13
- {name: "from #{@args.from} to #{@args.to}",
14
+ h = {name: "from #{@args.from} to #{@args.to}",
14
15
  from: @args.from,
15
16
  to: @args.to}
17
+ unless @args.name == ''
18
+ h[:name] = @args.name
19
+ end
20
+
21
+ h
16
22
  end
17
23
  end
18
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mio-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jspc
@@ -112,6 +112,8 @@ files:
112
112
  - "./lib/mio/model/add_to_group_action.rb"
113
113
  - "./lib/mio/model/autoload.rb"
114
114
  - "./lib/mio/model/email_message_action.rb"
115
+ - "./lib/mio/model/extract.rb"
116
+ - "./lib/mio/model/extract_resource.rb"
115
117
  - "./lib/mio/model/groovy_script.rb"
116
118
  - "./lib/mio/model/groovy_script_decision.rb"
117
119
  - "./lib/mio/model/groovy_script_wait.rb"