files.com 1.1.56 → 1.1.57

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06206d38352b8d75a30e741ee42b7d7fd7afab5a545211e6f3aa0efca68bc80a
4
- data.tar.gz: 7ab65c0f981cc20b520ef8dccbde4dfc797ed184132e12cceaad15a8503e8599
3
+ metadata.gz: 5dde98ae311fbb3b01f7a48e1c0545e50464d76bea70589a63ba31f394a74e19
4
+ data.tar.gz: 5d3b87c42c1e07d007159d7bf78ce4321801d3aa8eb1b9fbe0e6120648992aef
5
5
  SHA512:
6
- metadata.gz: '08d81ef69bda43a0714983cc4750761d7b771c1d7885bcdb2d9622fdc291ecf953461f9025961d9fd267f4bcf320e4f246e220911dfe2669f03b69d5168d6ec5'
7
- data.tar.gz: 5b59ec3732526c2fd8ce325fae5eb7cc0ac591ab15c0027fcc45197267ecea23024a8377fae977435816f3c8095d7834b7d2af448ba6fb4e140c4c0c222529a4
6
+ metadata.gz: 805f4aa11e7c9d3df220ccbfb1512a4b0697bebcb1dfdb3b6a3a18939dd9d286fdfb76224f441611a7e0b2eb83247cbb112311748e81e67c2407f9462eef5f33
7
+ data.tar.gz: a68b1b42510a1a8d700cd33d00c9dcc6a24329dbba77db191ffe6efdf294e9f9d8220ce5e3f00a756970197e06234a5270c86889034db9edbfe290fe571b0ea8
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.56
1
+ 1.1.57
@@ -0,0 +1,58 @@
1
+ # BundleAction
2
+
3
+ ## Example BundleAction Object
4
+
5
+ ```
6
+ {
7
+ "action": "create",
8
+ "bundle_registration": {
9
+ "code": "abc123",
10
+ "name": "account",
11
+ "company": "Action Verb",
12
+ "email": "john.doe@files.com",
13
+ "ip": "10.1.1.1",
14
+ "inbox_code": "abc123",
15
+ "clickwrap_body": "example",
16
+ "form_field_set_id": 1,
17
+ "form_field_data": {
18
+ "key": "example value"
19
+ },
20
+ "bundle_code": "example",
21
+ "bundle_id": 1,
22
+ "bundle_recipient_id": 1,
23
+ "created_at": "2000-01-01T01:00:00Z"
24
+ },
25
+ "when": "2000-01-01T01:00:00Z",
26
+ "destination": "/to_path",
27
+ "path": "",
28
+ "source": "/from_path"
29
+ }
30
+ ```
31
+
32
+ * `action` (string): Type of action
33
+ * `bundle_registration` (BundleRegistration): Object that contains bundle registration information
34
+ * `when` (date-time): Action occurrence date/time
35
+ * `destination` (string): The destination path for this bundle action, if applicable
36
+ * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
+ * `source` (string): The source path for this bundle action, if applicable
38
+
39
+
40
+ ---
41
+
42
+ ## List Bundle Actions
43
+
44
+ ```
45
+ Files::BundleAction.list(
46
+ per_page: 1,
47
+ bundle_id: 1,
48
+ bundle_registration_id: 1
49
+ )
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+ * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
55
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
56
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
57
+ * `bundle_id` (int64): Bundle ID
58
+ * `bundle_registration_id` (int64): BundleRegistration ID
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class BundleAction
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - Type of action
13
+ def action
14
+ @attributes[:action]
15
+ end
16
+
17
+ # BundleRegistration - Object that contains bundle registration information
18
+ def bundle_registration
19
+ @attributes[:bundle_registration]
20
+ end
21
+
22
+ # date-time - Action occurrence date/time
23
+ def when
24
+ @attributes[:when]
25
+ end
26
+
27
+ # string - The destination path for this bundle action, if applicable
28
+ def destination
29
+ @attributes[:destination]
30
+ end
31
+
32
+ # string - Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
33
+ def path
34
+ @attributes[:path]
35
+ end
36
+
37
+ # string - The source path for this bundle action, if applicable
38
+ def source
39
+ @attributes[:source]
40
+ end
41
+
42
+ # Parameters:
43
+ # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
44
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_registration_id]=desc`). Valid fields are `bundle_registration_id` and `created_at`.
46
+ # bundle_id - int64 - Bundle ID
47
+ # bundle_registration_id - int64 - BundleRegistration ID
48
+ def self.list(params = {}, options = {})
49
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
50
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
51
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
52
+ raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params[:bundle_id] and !params[:bundle_id].is_a?(Integer)
53
+ raise InvalidParameterError.new("Bad parameter: bundle_registration_id must be an Integer") if params[:bundle_registration_id] and !params[:bundle_registration_id].is_a?(Integer)
54
+
55
+ List.new(BundleAction, params) do
56
+ Api.send_request("/bundle_actions", :get, params, options)
57
+ end
58
+ end
59
+
60
+ def self.all(params = {}, options = {})
61
+ list(params, options)
62
+ end
63
+ end
64
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.56"
4
+ VERSION = "1.1.57"
5
5
  end
data/lib/files.com.rb CHANGED
@@ -51,6 +51,7 @@ require "files.com/models/automation_run"
51
51
  require "files.com/models/bandwidth_snapshot"
52
52
  require "files.com/models/behavior"
53
53
  require "files.com/models/bundle"
54
+ require "files.com/models/bundle_action"
54
55
  require "files.com/models/bundle_download"
55
56
  require "files.com/models/bundle_notification"
56
57
  require "files.com/models/bundle_path"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.56
4
+ version: 1.1.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
@@ -133,6 +133,7 @@ files:
133
133
  - docs/bandwidth_snapshot.md
134
134
  - docs/behavior.md
135
135
  - docs/bundle.md
136
+ - docs/bundle_action.md
136
137
  - docs/bundle_download.md
137
138
  - docs/bundle_notification.md
138
139
  - docs/bundle_path.md
@@ -230,6 +231,7 @@ files:
230
231
  - lib/files.com/models/bandwidth_snapshot.rb
231
232
  - lib/files.com/models/behavior.rb
232
233
  - lib/files.com/models/bundle.rb
234
+ - lib/files.com/models/bundle_action.rb
233
235
  - lib/files.com/models/bundle_download.rb
234
236
  - lib/files.com/models/bundle_notification.rb
235
237
  - lib/files.com/models/bundle_path.rb