files.com 1.0.260 → 1.0.263

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: 4c8cab32ed97e2d6b88de5da06fa5926be7a1e31dd7daf2411e2d5397ed6021b
4
- data.tar.gz: d112e7aaa786680a3d8b8d8d469a435247d927fd65c97040df388af9cf6bb06f
3
+ metadata.gz: 415f60c947b24e213dcab7b7f18bd802868b723e6d2399f40263079f47e5fbf7
4
+ data.tar.gz: b8420a20451e8e08dab0381acbc72180620b768638f95f0dc86f1efcad6a1c32
5
5
  SHA512:
6
- metadata.gz: 00b69c9796654f39ab39a72a589a0cafd16529a6e31e39b2e89ec7ec7f023674a54694edb52743e868ebeb1689e191670a66cd89e21a5a461764747ffadf06c2
7
- data.tar.gz: b63249367bd7246570c9646a753a8a24f3c249a982a7c7a910e15195648cfcfefbb49092438497a465b2a9002cd25399c02347855b06c509cac65f714bf4d93a
6
+ metadata.gz: 0ce056ebf1594d115ae3f1eac0f53ccbc3148423ffbfaeb8bfe17216eefc5be03d6608d43d0d5e0da389e7fe9beadf3fe294423374be28d45904c2506cc7b3d0
7
+ data.tar.gz: c5e10ff72b9614ad58b6f3385f47e530230dbd209a1538061ca6ac62a31db0000f731560b5d7141588a51b5c6622c02cdb82646c5b9eb6396ad7c236a76905e9
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.260
1
+ 1.0.263
@@ -92,4 +92,11 @@ Files::As2IncomingMessage.list(
92
92
 
93
93
  * `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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
94
94
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
95
+ * `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 `created_at` and `as2_partner_id`.
96
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
97
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
98
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
99
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
100
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
101
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
95
102
  * `as2_partner_id` (int64): As2 Partner ID. If provided, will return message specific to that partner.
@@ -82,4 +82,11 @@ Files::As2OutgoingMessage.list(
82
82
 
83
83
  * `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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
84
84
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
85
+ * `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 `created_at` and `as2_partner_id`.
86
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
87
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
88
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
89
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
90
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
91
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
85
92
  * `as2_partner_id` (int64): As2 Partner ID. If provided, will return message specific to that partner.
data/docs/folder.md CHANGED
@@ -50,6 +50,7 @@ Files::Dir is an alias of Files::Folder
50
50
  * `priority_color` (string): Bookmark/priority color of file/folder
51
51
  * `preview_id` (int64): File preview ID
52
52
  * `preview` (Preview): File preview
53
+ * `mkdir_parents` (boolean): Create parent directories if they do not exist?
53
54
 
54
55
 
55
56
  ---
@@ -83,9 +84,12 @@ Files::Folder.list_for(path,
83
84
  ## Create folder
84
85
 
85
86
  ```
86
- Files::Folder.create(path)
87
+ Files::Folder.create(path,
88
+ mkdir_parents: true
89
+ )
87
90
  ```
88
91
 
89
92
  ### Parameters
90
93
 
91
94
  * `path` (string): Required - Path to operate on.
95
+ * `mkdir_parents` (boolean): Create parent directories if they do not exist?
data/docs/session.md CHANGED
@@ -6,47 +6,15 @@
6
6
  {
7
7
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
8
8
  "language": "en",
9
- "login_token": "@tok-randomcode",
10
- "login_token_domain": "https://mysite.files.com",
11
- "max_dir_listing_size": 1,
12
- "multiple_regions": true,
13
9
  "read_only": true,
14
- "root_path": "",
15
- "sftp_insecure_ciphers": true,
16
- "site_id": 1,
17
- "ssl_required": true,
18
- "tls_disabled": true,
19
- "two_factor_setup_needed": true,
20
- "allowed_2fa_method_sms": true,
21
- "allowed_2fa_method_totp": true,
22
- "allowed_2fa_method_u2f": true,
23
- "allowed_2fa_method_webauthn": true,
24
- "allowed_2fa_method_yubi": true,
25
- "use_provided_modified_at": true,
26
- "windows_mode_ftp": true
10
+ "sftp_insecure_ciphers": true
27
11
  }
28
12
  ```
29
13
 
30
14
  * `id` (string): Session ID
31
15
  * `language` (string): Session language
32
- * `login_token` (string): Login token. If set, this token will allow your user to log in via browser at the domain in `login_token_domain`.
33
- * `login_token_domain` (string): Domain to use with `login_token`.
34
- * `max_dir_listing_size` (int64): Maximum number of files to retrieve per folder for a directory listing. This is based on the user's plan.
35
- * `multiple_regions` (boolean): Can access multiple regions?
36
16
  * `read_only` (boolean): Is this session read only?
37
- * `root_path` (string): Initial root path to start the user's session in.
38
17
  * `sftp_insecure_ciphers` (boolean): Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)
39
- * `site_id` (int64): Site ID
40
- * `ssl_required` (boolean): Is SSL required for this user? (If so, ensure all your communications with this user use SSL.)
41
- * `tls_disabled` (boolean): Are insecure TLS versions allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
42
- * `two_factor_setup_needed` (boolean): If true, this user needs to add a Two Factor Authentication method before performing any further actions.
43
- * `allowed_2fa_method_sms` (boolean): Sent only if 2FA setup is needed. Is SMS two factor authentication allowed?
44
- * `allowed_2fa_method_totp` (boolean): Sent only if 2FA setup is needed. Is TOTP two factor authentication allowed?
45
- * `allowed_2fa_method_u2f` (boolean): Sent only if 2FA setup is needed. Is U2F two factor authentication allowed?
46
- * `allowed_2fa_method_webauthn` (boolean): Sent only if 2FA setup is needed. Is WebAuthn two factor authentication allowed?
47
- * `allowed_2fa_method_yubi` (boolean): Sent only if 2FA setup is needed. Is Yubikey two factor authentication allowed?
48
- * `use_provided_modified_at` (boolean): Allow the user to provide file/folder modified at dates? If false, the server will always use the current date/time.
49
- * `windows_mode_ftp` (boolean): Does this user want to use Windows line-ending emulation? (CR vs CRLF)
50
18
  * `username` (string): Username to sign in as
51
19
  * `password` (string): Password for sign in
52
20
  * `otp` (string): If this user has a 2FA device, provide its OTP or code here.
@@ -182,10 +182,24 @@ module Files
182
182
  # Parameters:
183
183
  # 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
184
184
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
185
+ # 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 `created_at` and `as2_partner_id`.
186
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
187
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
188
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
189
+ # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
190
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
191
+ # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
185
192
  # as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
186
193
  def self.list(params = {}, options = {})
187
194
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
188
195
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
196
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
197
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
198
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
199
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
200
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
201
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
202
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
189
203
  raise InvalidParameterError.new("Bad parameter: as2_partner_id must be an Integer") if params.dig(:as2_partner_id) and !params.dig(:as2_partner_id).is_a?(Integer)
190
204
 
191
205
  List.new(As2IncomingMessage, params) do
@@ -157,10 +157,24 @@ module Files
157
157
  # Parameters:
158
158
  # 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
159
159
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
160
+ # 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 `created_at` and `as2_partner_id`.
161
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
162
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
163
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
164
+ # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
165
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
166
+ # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
160
167
  # as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
161
168
  def self.list(params = {}, options = {})
162
169
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
163
170
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
171
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
172
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
173
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
174
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
175
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
176
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
177
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
164
178
  raise InvalidParameterError.new("Bad parameter: as2_partner_id must be an Integer") if params.dig(:as2_partner_id) and !params.dig(:as2_partner_id).is_a?(Integer)
165
179
 
166
180
  List.new(As2OutgoingMessage, params) do
@@ -294,6 +294,15 @@ module Files
294
294
  @attributes[:preview] = value
295
295
  end
296
296
 
297
+ # boolean - Create parent directories if they do not exist?
298
+ def mkdir_parents
299
+ @attributes[:mkdir_parents]
300
+ end
301
+
302
+ def mkdir_parents=(value)
303
+ @attributes[:mkdir_parents] = value
304
+ end
305
+
297
306
  def save
298
307
  new_obj = Folder.create(path, @attributes, @options)
299
308
  @attributes = new_obj.attributes
@@ -327,6 +336,7 @@ module Files
327
336
 
328
337
  # Parameters:
329
338
  # path (required) - string - Path to operate on.
339
+ # mkdir_parents - boolean - Create parent directories if they do not exist?
330
340
  def self.create(path, params = {}, options = {})
331
341
  params ||= {}
332
342
  params[:path] = path
@@ -31,42 +31,6 @@ module Files
31
31
  @attributes[:language] = value
32
32
  end
33
33
 
34
- # string - Login token. If set, this token will allow your user to log in via browser at the domain in `login_token_domain`.
35
- def login_token
36
- @attributes[:login_token]
37
- end
38
-
39
- def login_token=(value)
40
- @attributes[:login_token] = value
41
- end
42
-
43
- # string - Domain to use with `login_token`.
44
- def login_token_domain
45
- @attributes[:login_token_domain]
46
- end
47
-
48
- def login_token_domain=(value)
49
- @attributes[:login_token_domain] = value
50
- end
51
-
52
- # int64 - Maximum number of files to retrieve per folder for a directory listing. This is based on the user's plan.
53
- def max_dir_listing_size
54
- @attributes[:max_dir_listing_size]
55
- end
56
-
57
- def max_dir_listing_size=(value)
58
- @attributes[:max_dir_listing_size] = value
59
- end
60
-
61
- # boolean - Can access multiple regions?
62
- def multiple_regions
63
- @attributes[:multiple_regions]
64
- end
65
-
66
- def multiple_regions=(value)
67
- @attributes[:multiple_regions] = value
68
- end
69
-
70
34
  # boolean - Is this session read only?
71
35
  def read_only
72
36
  @attributes[:read_only]
@@ -76,15 +40,6 @@ module Files
76
40
  @attributes[:read_only] = value
77
41
  end
78
42
 
79
- # string - Initial root path to start the user's session in.
80
- def root_path
81
- @attributes[:root_path]
82
- end
83
-
84
- def root_path=(value)
85
- @attributes[:root_path] = value
86
- end
87
-
88
43
  # boolean - Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)
89
44
  def sftp_insecure_ciphers
90
45
  @attributes[:sftp_insecure_ciphers]
@@ -94,105 +49,6 @@ module Files
94
49
  @attributes[:sftp_insecure_ciphers] = value
95
50
  end
96
51
 
97
- # int64 - Site ID
98
- def site_id
99
- @attributes[:site_id]
100
- end
101
-
102
- def site_id=(value)
103
- @attributes[:site_id] = value
104
- end
105
-
106
- # boolean - Is SSL required for this user? (If so, ensure all your communications with this user use SSL.)
107
- def ssl_required
108
- @attributes[:ssl_required]
109
- end
110
-
111
- def ssl_required=(value)
112
- @attributes[:ssl_required] = value
113
- end
114
-
115
- # boolean - Are insecure TLS versions allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
116
- def tls_disabled
117
- @attributes[:tls_disabled]
118
- end
119
-
120
- def tls_disabled=(value)
121
- @attributes[:tls_disabled] = value
122
- end
123
-
124
- # boolean - If true, this user needs to add a Two Factor Authentication method before performing any further actions.
125
- def two_factor_setup_needed
126
- @attributes[:two_factor_setup_needed]
127
- end
128
-
129
- def two_factor_setup_needed=(value)
130
- @attributes[:two_factor_setup_needed] = value
131
- end
132
-
133
- # boolean - Sent only if 2FA setup is needed. Is SMS two factor authentication allowed?
134
- def allowed_2fa_method_sms
135
- @attributes[:allowed_2fa_method_sms]
136
- end
137
-
138
- def allowed_2fa_method_sms=(value)
139
- @attributes[:allowed_2fa_method_sms] = value
140
- end
141
-
142
- # boolean - Sent only if 2FA setup is needed. Is TOTP two factor authentication allowed?
143
- def allowed_2fa_method_totp
144
- @attributes[:allowed_2fa_method_totp]
145
- end
146
-
147
- def allowed_2fa_method_totp=(value)
148
- @attributes[:allowed_2fa_method_totp] = value
149
- end
150
-
151
- # boolean - Sent only if 2FA setup is needed. Is U2F two factor authentication allowed?
152
- def allowed_2fa_method_u2f
153
- @attributes[:allowed_2fa_method_u2f]
154
- end
155
-
156
- def allowed_2fa_method_u2f=(value)
157
- @attributes[:allowed_2fa_method_u2f] = value
158
- end
159
-
160
- # boolean - Sent only if 2FA setup is needed. Is WebAuthn two factor authentication allowed?
161
- def allowed_2fa_method_webauthn
162
- @attributes[:allowed_2fa_method_webauthn]
163
- end
164
-
165
- def allowed_2fa_method_webauthn=(value)
166
- @attributes[:allowed_2fa_method_webauthn] = value
167
- end
168
-
169
- # boolean - Sent only if 2FA setup is needed. Is Yubikey two factor authentication allowed?
170
- def allowed_2fa_method_yubi
171
- @attributes[:allowed_2fa_method_yubi]
172
- end
173
-
174
- def allowed_2fa_method_yubi=(value)
175
- @attributes[:allowed_2fa_method_yubi] = value
176
- end
177
-
178
- # boolean - Allow the user to provide file/folder modified at dates? If false, the server will always use the current date/time.
179
- def use_provided_modified_at
180
- @attributes[:use_provided_modified_at]
181
- end
182
-
183
- def use_provided_modified_at=(value)
184
- @attributes[:use_provided_modified_at] = value
185
- end
186
-
187
- # boolean - Does this user want to use Windows line-ending emulation? (CR vs CRLF)
188
- def windows_mode_ftp
189
- @attributes[:windows_mode_ftp]
190
- end
191
-
192
- def windows_mode_ftp=(value)
193
- @attributes[:windows_mode_ftp] = value
194
- end
195
-
196
52
  # string - Username to sign in as
197
53
  def username
198
54
  @attributes[:username]
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.260
4
+ version: 1.0.263
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable