files.com 1.0.127 → 1.0.128

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/_VERSION +1 -1
  3. data/docs/account_line_item.md +18 -2
  4. data/docs/api_key.md +1 -1
  5. data/docs/app.md +3 -1
  6. data/docs/automation.md +14 -4
  7. data/docs/bandwidth_snapshot.md +5 -1
  8. data/docs/behavior.md +2 -2
  9. data/docs/bundle.md +36 -2
  10. data/docs/bundle_download.md +5 -1
  11. data/docs/bundle_recipient.md +7 -0
  12. data/docs/bundle_registration.md +23 -0
  13. data/docs/external_event.md +1 -1
  14. data/docs/file.md +7 -1
  15. data/docs/file_action.md +13 -0
  16. data/docs/file_comment.md +4 -1
  17. data/docs/folder.md +7 -1
  18. data/docs/form_field.md +29 -0
  19. data/docs/form_field_set.md +154 -0
  20. data/docs/group.md +13 -7
  21. data/docs/group_user.md +1 -1
  22. data/docs/history.md +1 -1
  23. data/docs/inbox_registration.md +21 -0
  24. data/docs/inbox_upload.md +35 -0
  25. data/docs/invoice.md +18 -2
  26. data/docs/ip_address.md +1 -1
  27. data/docs/message.md +10 -1
  28. data/docs/message_comment.md +4 -1
  29. data/docs/notification.md +1 -1
  30. data/docs/payment.md +18 -2
  31. data/docs/permission.md +1 -1
  32. data/docs/remote_server.md +0 -55
  33. data/docs/request.md +2 -2
  34. data/docs/settings_change.md +1 -1
  35. data/docs/site.md +91 -7
  36. data/docs/sso_strategy.md +1 -1
  37. data/docs/status.md +7 -0
  38. data/docs/style.md +1 -1
  39. data/docs/usage_daily_snapshot.md +1 -1
  40. data/docs/user.md +8 -8
  41. data/lib/files.com.rb +5 -0
  42. data/lib/files.com/models/api_key.rb +1 -1
  43. data/lib/files.com/models/automation.rb +10 -1
  44. data/lib/files.com/models/bandwidth_snapshot.rb +11 -1
  45. data/lib/files.com/models/behavior.rb +2 -2
  46. data/lib/files.com/models/bundle.rb +25 -1
  47. data/lib/files.com/models/bundle_download.rb +7 -2
  48. data/lib/files.com/models/bundle_recipient.rb +14 -0
  49. data/lib/files.com/models/bundle_registration.rb +47 -0
  50. data/lib/files.com/models/external_event.rb +1 -1
  51. data/lib/files.com/models/file_action.rb +14 -4
  52. data/lib/files.com/models/form_field.rb +52 -0
  53. data/lib/files.com/models/form_field_set.rb +171 -0
  54. data/lib/files.com/models/group.rb +1 -1
  55. data/lib/files.com/models/history.rb +1 -1
  56. data/lib/files.com/models/inbox_registration.rb +42 -0
  57. data/lib/files.com/models/inbox_upload.rb +46 -0
  58. data/lib/files.com/models/notification.rb +1 -1
  59. data/lib/files.com/models/permission.rb +1 -1
  60. data/lib/files.com/models/remote_server.rb +0 -82
  61. data/lib/files.com/models/request.rb +2 -2
  62. data/lib/files.com/models/settings_change.rb +1 -1
  63. data/lib/files.com/models/usage_daily_snapshot.rb +1 -1
  64. data/lib/files.com/models/user.rb +7 -7
  65. metadata +12 -2
@@ -0,0 +1,154 @@
1
+ # FormFieldSet
2
+
3
+ ## Example FormFieldSet Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "title": "Sample Form Title",
9
+ "form_layout": [
10
+ 1,
11
+ 2,
12
+ 3,
13
+ 4
14
+ ],
15
+ "form_fields": [
16
+ {
17
+ "id": 1,
18
+ "label": "Sample Label",
19
+ "required": true,
20
+ "help_text": "Help Text",
21
+ "field_type": "text",
22
+ "options_for_select": [
23
+ "red",
24
+ "green",
25
+ "blue"
26
+ ],
27
+ "default_option": "red",
28
+ "form_field_set_id": 1
29
+ }
30
+ ]
31
+ }
32
+ ```
33
+
34
+ * `id` (int64): Form field set id
35
+ * `title` (string): Title to be displayed
36
+ * `form_layout` (int64): Layout of the form
37
+ * `form_fields` (array): Associated form fields
38
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
39
+
40
+
41
+ ---
42
+
43
+ ## List Form Field Sets
44
+
45
+ ```
46
+ Files::FormFieldSet.list(
47
+ user_id: 1,
48
+ per_page: 1
49
+ )
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
55
+ * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
56
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
57
+
58
+
59
+ ---
60
+
61
+ ## Show Form Field Set
62
+
63
+ ```
64
+ Files::FormFieldSet.find(id)
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ * `id` (int64): Required - Form Field Set ID.
70
+
71
+
72
+ ---
73
+
74
+ ## Create Form Field Set
75
+
76
+ ```
77
+ Files::FormFieldSet.create(
78
+ user_id: 1,
79
+ title: "Sample Form Title",
80
+ form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
81
+ )
82
+ ```
83
+
84
+ ### Parameters
85
+
86
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
87
+ * `title` (string): Title to be displayed
88
+ * `form_fields` (array(object)):
89
+
90
+
91
+ ---
92
+
93
+ ## Update Form Field Set
94
+
95
+ ```
96
+ Files::FormFieldSet.update(id,
97
+ title: "Sample Form Title",
98
+ form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
99
+ )
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ * `id` (int64): Required - Form Field Set ID.
105
+ * `title` (string): Title to be displayed
106
+ * `form_fields` (array(object)):
107
+
108
+
109
+ ---
110
+
111
+ ## Delete Form Field Set
112
+
113
+ ```
114
+ Files::FormFieldSet.delete(id)
115
+ ```
116
+
117
+ ### Parameters
118
+
119
+ * `id` (int64): Required - Form Field Set ID.
120
+
121
+
122
+ ---
123
+
124
+ ## Update Form Field Set
125
+
126
+ ```
127
+ form_field_set = Files::FormFieldSet.list_for(path).first
128
+
129
+ form_field_set.update(
130
+ title: "Sample Form Title",
131
+ form_fields: [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}]
132
+ )
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ * `id` (int64): Required - Form Field Set ID.
138
+ * `title` (string): Title to be displayed
139
+ * `form_fields` (array(object)):
140
+
141
+
142
+ ---
143
+
144
+ ## Delete Form Field Set
145
+
146
+ ```
147
+ form_field_set = Files::FormFieldSet.list_for(path).first
148
+
149
+ form_field_set.delete
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ * `id` (int64): Required - Form Field Set ID.
@@ -7,14 +7,14 @@
7
7
  "id": 1,
8
8
  "name": "owners",
9
9
  "admin_ids": [
10
-
10
+ 1
11
11
  ],
12
12
  "notes": "",
13
13
  "user_ids": [
14
-
14
+ 1
15
15
  ],
16
16
  "usernames": [
17
-
17
+ "user"
18
18
  ]
19
19
  }
20
20
  ```
@@ -41,7 +41,7 @@ Files::Group.list(
41
41
 
42
42
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
43
43
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
44
- * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `active`, `site_id` or `name`.
44
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `name`.
45
45
  * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `name`.
46
46
  * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `name`.
47
47
  * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `name`.
@@ -70,7 +70,9 @@ Files::Group.find(id)
70
70
 
71
71
  ```
72
72
  Files::Group.create(
73
- name: "owners"
73
+ name: "owners",
74
+ user_ids: [1],
75
+ admin_ids: [1]
74
76
  )
75
77
  ```
76
78
 
@@ -88,7 +90,9 @@ Files::Group.create(
88
90
 
89
91
  ```
90
92
  Files::Group.update(id,
91
- name: "owners"
93
+ name: "owners",
94
+ user_ids: [1],
95
+ admin_ids: [1]
92
96
  )
93
97
  ```
94
98
 
@@ -122,7 +126,9 @@ Files::Group.delete(id)
122
126
  group = Files::Group.list_for(path).first
123
127
 
124
128
  group.update(
125
- name: "owners"
129
+ name: "owners",
130
+ user_ids: [1],
131
+ admin_ids: [1]
126
132
  )
127
133
  ```
128
134
 
@@ -9,7 +9,7 @@
9
9
  "user_id": 1,
10
10
  "admin": true,
11
11
  "usernames": [
12
-
12
+ "user"
13
13
  ]
14
14
  }
15
15
  ```
@@ -142,7 +142,7 @@ Files::History.list(
142
142
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
143
143
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
144
144
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
145
- * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `site_id`, `path`, `created_at`, `folder` or `user_id`.
145
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `path`, `folder`, `user_id` or `created_at`.
146
146
  * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
147
147
  * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `user_id`, `folder` or `path`.
148
148
  * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
@@ -0,0 +1,21 @@
1
+ # InboxRegistration
2
+
3
+ ## Example InboxRegistration Object
4
+
5
+ ```
6
+ {
7
+ "code": "abc123",
8
+ "name": "account",
9
+ "company": "Action Verb",
10
+ "email": "john.doe@files.com",
11
+ "form_field_set_id": 1,
12
+ "form_field_data": ""
13
+ }
14
+ ```
15
+
16
+ * `code` (string): Registration cookie code
17
+ * `name` (string): Registrant name
18
+ * `company` (string): Registrant company name
19
+ * `email` (string): Registrant email address
20
+ * `form_field_set_id` (int64): Id of associated form field set
21
+ * `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
@@ -0,0 +1,35 @@
1
+ # InboxUpload
2
+
3
+ ## Example InboxUpload Object
4
+
5
+ ```
6
+ {
7
+ "inbox_registration": "",
8
+ "path": "a/b/test.txt",
9
+ "created_at": "2020-01-01 00:00:00"
10
+ }
11
+ ```
12
+
13
+ * `inbox_registration`:
14
+ * `path` (string): Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
15
+ * `created_at` (date-time): Upload date/time
16
+
17
+
18
+ ---
19
+
20
+ ## List Inbox Uploads
21
+
22
+ ```
23
+ Files::InboxUpload.list(
24
+ per_page: 1,
25
+ inbox_registration_id: 1,
26
+ inbox_id: 1
27
+ )
28
+ ```
29
+
30
+ ### Parameters
31
+
32
+ * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
33
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
34
+ * `inbox_registration_id` (int64): InboxRegistration ID
35
+ * `inbox_id` (int64): Inbox ID
@@ -11,11 +11,27 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
-
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Enterprise",
23
+ "site": "My site"
24
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
-
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1,
33
+ "updated_at": "2000-01-01T01:00:00Z"
34
+ }
19
35
  ],
20
36
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
37
  "payment_type": "",
@@ -8,7 +8,7 @@
8
8
  "associated_with": "Site",
9
9
  "group_id": 1,
10
10
  "ip_addresses": [
11
-
11
+ "127.0.0.1"
12
12
  ]
13
13
  }
14
14
  ```
@@ -8,7 +8,16 @@
8
8
  "subject": "Files.com Account Upgrade",
9
9
  "body": "We should upgrade our Files.com account!",
10
10
  "comments": [
11
-
11
+ {
12
+ "id": 1,
13
+ "body": "What a great idea, thank you!",
14
+ "reactions": [
15
+ {
16
+ "id": 1,
17
+ "emoji": "👍"
18
+ }
19
+ ]
20
+ }
12
21
  ]
13
22
  }
14
23
  ```
@@ -7,7 +7,10 @@
7
7
  "id": 1,
8
8
  "body": "What a great idea, thank you!",
9
9
  "reactions": [
10
-
10
+ {
11
+ "id": 1,
12
+ "emoji": "👍"
13
+ }
11
14
  ]
12
15
  }
13
16
  ```
@@ -53,7 +53,7 @@ Files::Notification.list(
53
53
  * `user_id` (int64): DEPRECATED: Show notifications for this User ID. Use `filter[user_id]` instead.
54
54
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
55
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[last_login_at]=desc). Valid fields are `site_id`, `path`, `user_id` or `group_id`.
56
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `path`, `user_id` or `group_id`.
57
57
  * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
58
58
  * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `user_id`, `group_id` or `path`.
59
59
  * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `user_id`, `group_id` or `path`.
@@ -11,11 +11,27 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
-
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Enterprise",
23
+ "site": "My site"
24
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
-
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1,
33
+ "updated_at": "2000-01-01T01:00:00Z"
34
+ }
19
35
  ],
20
36
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
37
  "payment_type": "",
@@ -42,7 +42,7 @@ Files::Permission.list(
42
42
 
43
43
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
44
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[last_login_at]=desc). Valid fields are `deleted_at`, `group_id`, `path`, `user_id` or `permission`.
45
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `group_id`, `path`, `user_id` or `permission`.
46
46
  * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`.
47
47
  * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `group_id`, `user_id` or `path`.
48
48
  * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `group_id`, `user_id` or `path`.
@@ -107,61 +107,6 @@ Files::RemoteServer.find(id)
107
107
  * `id` (int64): Required - Remote Server ID.
108
108
 
109
109
 
110
- ---
111
-
112
- ## list_for_testing Remote Server
113
-
114
- ```
115
- Files::RemoteServer.list_for_testing(
116
- remote_server_id: 1,
117
- reset_authentication: true,
118
- max_connections: 1,
119
- port: 1
120
- )
121
- ```
122
-
123
- ### Parameters
124
-
125
- * `remote_server_id` (int64): RemoteServer ID
126
- * `root` (string): Remote path to list
127
- * `aws_access_key` (string): AWS Access Key.
128
- * `aws_secret_key` (string): AWS secret key.
129
- * `password` (string): Password if needed.
130
- * `private_key` (string): Private key if needed.
131
- * `ssl_certificate` (string): SSL client certificate.
132
- * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
133
- * `wasabi_access_key` (string): Wasabi access key.
134
- * `wasabi_secret_key` (string): Wasabi secret key.
135
- * `backblaze_b2_key_id` (string): Backblaze B2 Cloud Storage keyID.
136
- * `backblaze_b2_application_key` (string): Backblaze B2 Cloud Storage applicationKey.
137
- * `rackspace_api_key` (string): Rackspace API key from the Rackspace Cloud Control Panel.
138
- * `reset_authentication` (boolean): Reset authenticated account
139
- * `azure_blob_storage_access_key` (string): Azure Blob Storage secret key.
140
- * `hostname` (string):
141
- * `name` (string):
142
- * `max_connections` (int64):
143
- * `port` (int64):
144
- * `s3_bucket` (string):
145
- * `s3_region` (string):
146
- * `server_certificate` (string):
147
- * `server_host_key` (string):
148
- * `server_type` (string):
149
- * `ssl` (string):
150
- * `username` (string):
151
- * `google_cloud_storage_bucket` (string):
152
- * `google_cloud_storage_project_id` (string):
153
- * `backblaze_b2_bucket` (string):
154
- * `backblaze_b2_s3_endpoint` (string):
155
- * `wasabi_bucket` (string):
156
- * `wasabi_region` (string):
157
- * `rackspace_username` (string):
158
- * `rackspace_region` (string):
159
- * `rackspace_container` (string):
160
- * `one_drive_account_type` (string):
161
- * `azure_blob_storage_account` (string):
162
- * `azure_blob_storage_container` (string):
163
-
164
-
165
110
  ---
166
111
 
167
112
  ## Create Remote Server