files.com 1.0.131 → 1.0.132
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 +4 -4
 - data/_VERSION +1 -1
 - data/docs/automation.md +24 -8
 - data/lib/files.com/models/automation.rb +34 -4
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: '08bc9f16d5d9c80f23b951dfd587fd8e6ac05da09efbc174d4f01d802c45596b'
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c15f2b59612650caf3c4df6d5e3ffa9ba6be5b4836d0e2eb52617874d60aebec
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 69c4a9e1e1daae0bf0cd0f37ee8ccda29b50ac8bdcce773852b767a8c8f551bdf14f881256568efbb87dde514f42d81e30c737b519993f016204bebdd493a87d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: a15358d708e6496abd3ce5ab63efa1ffdd9cdc2357a470780fd71cd2026a1ed1c201a104eb4fb373347b6607a3180bb675e00f61695061649ae1675b90143c5b
         
     | 
    
        data/_VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.0.132
         
     | 
    
        data/docs/automation.md
    CHANGED
    
    | 
         @@ -35,13 +35,15 @@ 
     | 
|
| 
       35 
35 
     | 
    
         
             
                1,
         
     | 
| 
       36 
36 
     | 
    
         
             
                2
         
     | 
| 
       37 
37 
     | 
    
         
             
              ],
         
     | 
| 
       38 
     | 
    
         
            -
              "webhook_url": "https://app.files.com/api/webhooks/abc123"
         
     | 
| 
      
 38 
     | 
    
         
            +
              "webhook_url": "https://app.files.com/api/webhooks/abc123",
         
     | 
| 
      
 39 
     | 
    
         
            +
              "trigger_actions": "[ \"create\" ]",
         
     | 
| 
      
 40 
     | 
    
         
            +
              "trigger_action_path": "path/to/file/or/folder"
         
     | 
| 
       39 
41 
     | 
    
         
             
            }
         
     | 
| 
       40 
42 
     | 
    
         
             
            ```
         
     | 
| 
       41 
43 
     | 
    
         | 
| 
       42 
44 
     | 
    
         
             
            * `id` (int64): Automation ID
         
     | 
| 
       43 
45 
     | 
    
         
             
            * `automation` (string): Automation type
         
     | 
| 
       44 
     | 
    
         
            -
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 46 
     | 
    
         
            +
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
       45 
47 
     | 
    
         
             
            * `interval` (string): If trigger is `daily`, this specifies how often to run this automation.  One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
         
     | 
| 
       46 
48 
     | 
    
         
             
            * `next_process_on` (string): If trigger is `daily`, date this automation will next run.
         
     | 
| 
       47 
49 
     | 
    
         
             
            * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
         
     | 
| 
         @@ -54,6 +56,8 @@ 
     | 
|
| 
       54 
56 
     | 
    
         
             
            * `user_ids` (array): IDs of Users for the Automation (i.e. who to Request File from)
         
     | 
| 
       55 
57 
     | 
    
         
             
            * `group_ids` (array): IDs of Groups for the Automation (i.e. who to Request File from)
         
     | 
| 
       56 
58 
     | 
    
         
             
            * `webhook_url` (string): If trigger is `webhook`, this is the URL of the webhook to trigger the Automation.
         
     | 
| 
      
 59 
     | 
    
         
            +
            * `trigger_actions` (string): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 60 
     | 
    
         
            +
            * `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
       57 
61 
     | 
    
         | 
| 
       58 
62 
     | 
    
         | 
| 
       59 
63 
     | 
    
         
             
            ---
         
     | 
| 
         @@ -107,7 +111,9 @@ Files::Automation.create( 
     | 
|
| 
       107 
111 
     | 
    
         
             
              user_ids: [1,2], 
         
     | 
| 
       108 
112 
     | 
    
         
             
              group_ids: [1,2], 
         
     | 
| 
       109 
113 
     | 
    
         
             
              schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}", 
         
     | 
| 
       110 
     | 
    
         
            -
              trigger: "realtime"
         
     | 
| 
      
 114 
     | 
    
         
            +
              trigger: "realtime", 
         
     | 
| 
      
 115 
     | 
    
         
            +
              trigger_actions: "[ \"create\" ]", 
         
     | 
| 
      
 116 
     | 
    
         
            +
              trigger_action_path: "path/to/file/or/folder"
         
     | 
| 
       111 
117 
     | 
    
         
             
            )
         
     | 
| 
       112 
118 
     | 
    
         
             
            ```
         
     | 
| 
       113 
119 
     | 
    
         | 
| 
         @@ -123,7 +129,9 @@ Files::Automation.create( 
     | 
|
| 
       123 
129 
     | 
    
         
             
            * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       124 
130 
     | 
    
         
             
            * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       125 
131 
     | 
    
         
             
            * `schedule` (object): Custom schedule for running this automation.
         
     | 
| 
       126 
     | 
    
         
            -
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 132 
     | 
    
         
            +
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
      
 133 
     | 
    
         
            +
            * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 134 
     | 
    
         
            +
            * `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
       127 
135 
     | 
    
         | 
| 
       128 
136 
     | 
    
         | 
| 
       129 
137 
     | 
    
         
             
            ---
         
     | 
| 
         @@ -139,7 +147,9 @@ Files::Automation.update(id, 
     | 
|
| 
       139 
147 
     | 
    
         
             
              user_ids: [1,2], 
         
     | 
| 
       140 
148 
     | 
    
         
             
              group_ids: [1,2], 
         
     | 
| 
       141 
149 
     | 
    
         
             
              schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}", 
         
     | 
| 
       142 
     | 
    
         
            -
              trigger: "realtime"
         
     | 
| 
      
 150 
     | 
    
         
            +
              trigger: "realtime", 
         
     | 
| 
      
 151 
     | 
    
         
            +
              trigger_actions: "[ \"create\" ]", 
         
     | 
| 
      
 152 
     | 
    
         
            +
              trigger_action_path: "path/to/file/or/folder"
         
     | 
| 
       143 
153 
     | 
    
         
             
            )
         
     | 
| 
       144 
154 
     | 
    
         
             
            ```
         
     | 
| 
       145 
155 
     | 
    
         | 
| 
         @@ -156,7 +166,9 @@ Files::Automation.update(id, 
     | 
|
| 
       156 
166 
     | 
    
         
             
            * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       157 
167 
     | 
    
         
             
            * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       158 
168 
     | 
    
         
             
            * `schedule` (object): Custom schedule for running this automation.
         
     | 
| 
       159 
     | 
    
         
            -
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 169 
     | 
    
         
            +
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
      
 170 
     | 
    
         
            +
            * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 171 
     | 
    
         
            +
            * `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
       160 
172 
     | 
    
         | 
| 
       161 
173 
     | 
    
         | 
| 
       162 
174 
     | 
    
         
             
            ---
         
     | 
| 
         @@ -187,7 +199,9 @@ automation.update( 
     | 
|
| 
       187 
199 
     | 
    
         
             
              user_ids: [1,2],
         
     | 
| 
       188 
200 
     | 
    
         
             
              group_ids: [1,2],
         
     | 
| 
       189 
201 
     | 
    
         
             
              schedule: "{\"days_of_week\": [ 0, 1, 3 ], \"times_of_day\": [ \"7:30\", \"11:30\" ], \"time_zone\": \"Eastern Time (US & Canada)\"}",
         
     | 
| 
       190 
     | 
    
         
            -
              trigger: "realtime"
         
     | 
| 
      
 202 
     | 
    
         
            +
              trigger: "realtime",
         
     | 
| 
      
 203 
     | 
    
         
            +
              trigger_actions: "[ \"create\" ]",
         
     | 
| 
      
 204 
     | 
    
         
            +
              trigger_action_path: "path/to/file/or/folder"
         
     | 
| 
       191 
205 
     | 
    
         
             
            )
         
     | 
| 
       192 
206 
     | 
    
         
             
            ```
         
     | 
| 
       193 
207 
     | 
    
         | 
| 
         @@ -204,7 +218,9 @@ automation.update( 
     | 
|
| 
       204 
218 
     | 
    
         
             
            * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       205 
219 
     | 
    
         
             
            * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       206 
220 
     | 
    
         
             
            * `schedule` (object): Custom schedule for running this automation.
         
     | 
| 
       207 
     | 
    
         
            -
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 221 
     | 
    
         
            +
            * `trigger` (string): How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
      
 222 
     | 
    
         
            +
            * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 223 
     | 
    
         
            +
            * `trigger_action_path` (string): If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
       208 
224 
     | 
    
         | 
| 
       209 
225 
     | 
    
         | 
| 
       210 
226 
     | 
    
         
             
            ---
         
     | 
| 
         @@ -27,7 +27,7 @@ module Files 
     | 
|
| 
       27 
27 
     | 
    
         
             
                  @attributes[:automation] = value
         
     | 
| 
       28 
28 
     | 
    
         
             
                end
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
                # string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 30 
     | 
    
         
            +
                # string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
       31 
31 
     | 
    
         
             
                def trigger
         
     | 
| 
       32 
32 
     | 
    
         
             
                  @attributes[:trigger]
         
     | 
| 
       33 
33 
     | 
    
         
             
                end
         
     | 
| 
         @@ -144,6 +144,24 @@ module Files 
     | 
|
| 
       144 
144 
     | 
    
         
             
                  @attributes[:webhook_url] = value
         
     | 
| 
       145 
145 
     | 
    
         
             
                end
         
     | 
| 
       146 
146 
     | 
    
         | 
| 
      
 147 
     | 
    
         
            +
                # string - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 148 
     | 
    
         
            +
                def trigger_actions
         
     | 
| 
      
 149 
     | 
    
         
            +
                  @attributes[:trigger_actions]
         
     | 
| 
      
 150 
     | 
    
         
            +
                end
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
                def trigger_actions=(value)
         
     | 
| 
      
 153 
     | 
    
         
            +
                  @attributes[:trigger_actions] = value
         
     | 
| 
      
 154 
     | 
    
         
            +
                end
         
     | 
| 
      
 155 
     | 
    
         
            +
             
     | 
| 
      
 156 
     | 
    
         
            +
                # string - If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
      
 157 
     | 
    
         
            +
                def trigger_action_path
         
     | 
| 
      
 158 
     | 
    
         
            +
                  @attributes[:trigger_action_path]
         
     | 
| 
      
 159 
     | 
    
         
            +
                end
         
     | 
| 
      
 160 
     | 
    
         
            +
             
     | 
| 
      
 161 
     | 
    
         
            +
                def trigger_action_path=(value)
         
     | 
| 
      
 162 
     | 
    
         
            +
                  @attributes[:trigger_action_path] = value
         
     | 
| 
      
 163 
     | 
    
         
            +
                end
         
     | 
| 
      
 164 
     | 
    
         
            +
             
     | 
| 
       147 
165 
     | 
    
         
             
                # Parameters:
         
     | 
| 
       148 
166 
     | 
    
         
             
                #   automation (required) - string - Automation type
         
     | 
| 
       149 
167 
     | 
    
         
             
                #   source - string - Source Path
         
     | 
| 
         @@ -155,7 +173,9 @@ module Files 
     | 
|
| 
       155 
173 
     | 
    
         
             
                #   user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       156 
174 
     | 
    
         
             
                #   group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       157 
175 
     | 
    
         
             
                #   schedule - object - Custom schedule for running this automation.
         
     | 
| 
       158 
     | 
    
         
            -
                #   trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 176 
     | 
    
         
            +
                #   trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
      
 177 
     | 
    
         
            +
                #   trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 178 
     | 
    
         
            +
                #   trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
       159 
179 
     | 
    
         
             
                def update(params = {})
         
     | 
| 
       160 
180 
     | 
    
         
             
                  params ||= {}
         
     | 
| 
       161 
181 
     | 
    
         
             
                  params[:id] = @attributes[:id]
         
     | 
| 
         @@ -171,6 +191,8 @@ module Files 
     | 
|
| 
       171 
191 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params.dig(:user_ids) and !params.dig(:user_ids).is_a?(String)
         
     | 
| 
       172 
192 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
         
     | 
| 
       173 
193 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
         
     | 
| 
      
 194 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
         
     | 
| 
      
 195 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
         
     | 
| 
       174 
196 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
         
     | 
| 
       175 
197 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: automation") unless params.dig(:automation)
         
     | 
| 
       176 
198 
     | 
    
         | 
| 
         @@ -259,7 +281,9 @@ module Files 
     | 
|
| 
       259 
281 
     | 
    
         
             
                #   user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       260 
282 
     | 
    
         
             
                #   group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       261 
283 
     | 
    
         
             
                #   schedule - object - Custom schedule for running this automation.
         
     | 
| 
       262 
     | 
    
         
            -
                #   trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 284 
     | 
    
         
            +
                #   trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
      
 285 
     | 
    
         
            +
                #   trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 286 
     | 
    
         
            +
                #   trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
       263 
287 
     | 
    
         
             
                def self.create(params = {}, options = {})
         
     | 
| 
       264 
288 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: automation must be an String") if params.dig(:automation) and !params.dig(:automation).is_a?(String)
         
     | 
| 
       265 
289 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: source must be an String") if params.dig(:source) and !params.dig(:source).is_a?(String)
         
     | 
| 
         @@ -272,6 +296,8 @@ module Files 
     | 
|
| 
       272 
296 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
         
     | 
| 
       273 
297 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params.dig(:schedule) and !params.dig(:schedule).is_a?(Hash)
         
     | 
| 
       274 
298 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
         
     | 
| 
      
 299 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
         
     | 
| 
      
 300 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
         
     | 
| 
       275 
301 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: automation") unless params.dig(:automation)
         
     | 
| 
       276 
302 
     | 
    
         | 
| 
       277 
303 
     | 
    
         
             
                  response, options = Api.send_request("/automations", :post, params, options)
         
     | 
| 
         @@ -289,7 +315,9 @@ module Files 
     | 
|
| 
       289 
315 
     | 
    
         
             
                #   user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       290 
316 
     | 
    
         
             
                #   group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
         
     | 
| 
       291 
317 
     | 
    
         
             
                #   schedule - object - Custom schedule for running this automation.
         
     | 
| 
       292 
     | 
    
         
            -
                #   trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, or ` 
     | 
| 
      
 318 
     | 
    
         
            +
                #   trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
         
     | 
| 
      
 319 
     | 
    
         
            +
                #   trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
         
     | 
| 
      
 320 
     | 
    
         
            +
                #   trigger_action_path - string - If trigger is `action`, this is the path to watch for the specified trigger actions.
         
     | 
| 
       293 
321 
     | 
    
         
             
                def self.update(id, params = {}, options = {})
         
     | 
| 
       294 
322 
     | 
    
         
             
                  params ||= {}
         
     | 
| 
       295 
323 
     | 
    
         
             
                  params[:id] = id
         
     | 
| 
         @@ -305,6 +333,8 @@ module Files 
     | 
|
| 
       305 
333 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params.dig(:group_ids) and !params.dig(:group_ids).is_a?(String)
         
     | 
| 
       306 
334 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: schedule must be an Hash") if params.dig(:schedule) and !params.dig(:schedule).is_a?(Hash)
         
     | 
| 
       307 
335 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params.dig(:trigger) and !params.dig(:trigger).is_a?(String)
         
     | 
| 
      
 336 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: trigger_actions must be an Array") if params.dig(:trigger_actions) and !params.dig(:trigger_actions).is_a?(Array)
         
     | 
| 
      
 337 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: trigger_action_path must be an String") if params.dig(:trigger_action_path) and !params.dig(:trigger_action_path).is_a?(String)
         
     | 
| 
       308 
338 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
         
     | 
| 
       309 
339 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: automation") unless params.dig(:automation)
         
     | 
| 
       310 
340 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: files.com
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.132
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - files.com
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021-01- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-01-21 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: addressable
         
     |