files.com 1.0.23 → 1.0.24

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: 9c1c9c959f39c870ab36b7e37d3f9d42fc7849b6a4f7a566871eba656fcd8524
4
- data.tar.gz: c85e7d4e0f5a210f25521cc3af02d26a15a810b24ed16f73d39fb9cdafbb692a
3
+ metadata.gz: c00d76fcd6bdb642dee19d0ac1b695ad41dc2569b57957df601875f6e39bb82a
4
+ data.tar.gz: 24f3f53abc4f30108213237af6079e36fb9ffa8c2788ee002dc2e2dde5d156ab
5
5
  SHA512:
6
- metadata.gz: f25cccda957674e3ab332744750979fa41524df8f6530c796fa7bf6a25fb2018e4b7e672d4674f76a9c440cc63652029670c6cdd96f9e85cf8cb7671c0851744
7
- data.tar.gz: 4a212d8af76fd0139006804e888c5eadac5e99bd2da45524c71b4624ec5af4772e73c4b5faea31e897f37e3059bf87929c28e8d2ff8657749a28c599dd762d57
6
+ metadata.gz: e446f9278d0f20632a0dc941b3bbba27f8a03bfe19fbd8fa439b6c0d30f44216621b095f6084ab43ff9d057a7aad568d924585c909719dee801a5977c107d68c
7
+ data.tar.gz: c8b16a8ca6f7d855b227faecfb9d5d286e308d8a357b076af1d060f568d654793b571af51d5eb6ae32e15ce2fe52966d6476e5b3fc94e926d7a74321826f2b96
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.23
1
+ 1.0.24
data/docs/file.md CHANGED
@@ -61,6 +61,7 @@ may places where a Ruby File object can be used.
61
61
 
62
62
  ```
63
63
  Files::File.download(path,
64
+ id: 1,
64
65
  with_previews: true,
65
66
  with_priority_color: true
66
67
  )
@@ -70,6 +71,7 @@ Files::File.download(path,
70
71
 
71
72
  * `path` (string): Required - Path to operate on.
72
73
  * `action` (string): Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
74
+ * `id` (int64): If provided, lookup the file by id instead of path.
73
75
  * `with_previews` (boolean): Include file preview information?
74
76
  * `with_priority_color` (boolean): Include file priority color information?
75
77
 
@@ -150,6 +152,7 @@ Files::File.delete(path,
150
152
  ```
151
153
  file = Files::File.find(1)
152
154
  file.download(
155
+ id: 1,
153
156
  with_previews: true,
154
157
  with_priority_color: true
155
158
  )
@@ -159,6 +162,7 @@ file.download(
159
162
 
160
163
  * `path` (string): Required - Path to operate on.
161
164
  * `action` (string): Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
165
+ * `id` (int64): If provided, lookup the file by id instead of path.
162
166
  * `with_previews` (boolean): Include file preview information?
163
167
  * `with_priority_color` (boolean): Include file priority color information?
164
168
 
data/docs/user.md CHANGED
@@ -15,6 +15,7 @@
15
15
  "authenticate_until": "2000-01-01T01:00:00Z",
16
16
  "authentication_method": "password",
17
17
  "avatar_url": "",
18
+ "billing_permission": true,
18
19
  "bypass_site_allowed_ips": true,
19
20
  "created_at": "2000-01-01T01:00:00Z",
20
21
  "dav_permission": true,
@@ -61,6 +62,7 @@
61
62
  * `authenticate_until` (date-time): Scheduled Date/Time at which user will be deactivated
62
63
  * `authentication_method` (string): How is this user authenticated?
63
64
  * `avatar_url` (string): URL holding the user's avatar
65
+ * `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
64
66
  * `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
65
67
  * `created_at` (date-time): When this user was created
66
68
  * `dav_permission` (boolean): Can the user connect with WebDAV?
@@ -157,6 +159,7 @@ Files::User.create(
157
159
  attachments_permission: true,
158
160
  authenticate_until: "2000-01-01T01:00:00Z",
159
161
  authentication_method: "password",
162
+ billing_permission: true,
160
163
  bypass_site_allowed_ips: true,
161
164
  dav_permission: true,
162
165
  disabled: true,
@@ -198,6 +201,7 @@ Files::User.create(
198
201
  * `attachments_permission` (boolean): Can the user create Bundles (aka Share Links)? This field will be aliased or renamed in the future to `bundles_permission`.
199
202
  * `authenticate_until` (string): Scheduled Date/Time at which user will be deactivated
200
203
  * `authentication_method` (string): How is this user authenticated?
204
+ * `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
201
205
  * `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
202
206
  * `dav_permission` (boolean): Can the user connect with WebDAV?
203
207
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
@@ -275,6 +279,7 @@ Files::User.update(id,
275
279
  attachments_permission: true,
276
280
  authenticate_until: "2000-01-01T01:00:00Z",
277
281
  authentication_method: "password",
282
+ billing_permission: true,
278
283
  bypass_site_allowed_ips: true,
279
284
  dav_permission: true,
280
285
  disabled: true,
@@ -317,6 +322,7 @@ Files::User.update(id,
317
322
  * `attachments_permission` (boolean): Can the user create Bundles (aka Share Links)? This field will be aliased or renamed in the future to `bundles_permission`.
318
323
  * `authenticate_until` (string): Scheduled Date/Time at which user will be deactivated
319
324
  * `authentication_method` (string): How is this user authenticated?
325
+ * `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
320
326
  * `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
321
327
  * `dav_permission` (boolean): Can the user connect with WebDAV?
322
328
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
@@ -411,6 +417,7 @@ user.update(
411
417
  attachments_permission: true,
412
418
  authenticate_until: "2000-01-01T01:00:00Z",
413
419
  authentication_method: "password",
420
+ billing_permission: true,
414
421
  bypass_site_allowed_ips: true,
415
422
  dav_permission: true,
416
423
  disabled: true,
@@ -453,6 +460,7 @@ user.update(
453
460
  * `attachments_permission` (boolean): Can the user create Bundles (aka Share Links)? This field will be aliased or renamed in the future to `bundles_permission`.
454
461
  * `authenticate_until` (string): Scheduled Date/Time at which user will be deactivated
455
462
  * `authentication_method` (string): How is this user authenticated?
463
+ * `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
456
464
  * `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
457
465
  * `dav_permission` (boolean): Can the user connect with WebDAV?
458
466
  * `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
@@ -813,6 +813,7 @@ module Files
813
813
  #
814
814
  # Parameters:
815
815
  # action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
816
+ # id - integer - If provided, lookup the file by id instead of path.
816
817
  # with_previews - boolean - Include file preview information?
817
818
  # with_priority_color - boolean - Include file priority color information?
818
819
  def download(params = {})
@@ -821,6 +822,7 @@ module Files
821
822
  raise MissingParameterError.new("Current object doesn't have a path") unless @attributes[:path]
822
823
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
823
824
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
825
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
824
826
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
825
827
 
826
828
  Api.send_request("/files/#{URI.encode_www_form_component(@attributes[:path])}", :get, params, @options)
@@ -905,6 +907,7 @@ module Files
905
907
  #
906
908
  # Parameters:
907
909
  # action - string - Can be blank, `redirect` or `stat`. If set to `stat`, we will return file information but without a download URL, and without logging a download. If set to `redirect` we will serve a 302 redirect directly to the file. This is used for integrations with Zapier, and is not recommended for most integrations.
910
+ # id - integer - If provided, lookup the file by id instead of path.
908
911
  # with_previews - boolean - Include file preview information?
909
912
  # with_priority_color - boolean - Include file priority color information?
910
913
  def self.download(path, params = {}, options = {})
@@ -912,6 +915,7 @@ module Files
912
915
  params[:path] = path
913
916
  raise InvalidParameterError.new("Bad parameter: path must be an String") if params.dig(:path) and !params.dig(:path).is_a?(String)
914
917
  raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
918
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
915
919
  raise MissingParameterError.new("Parameter missing: path") unless params.dig(:path)
916
920
 
917
921
  response, options = Api.send_request("/files/#{URI.encode_www_form_component(params[:path])}", :get, params, options)
@@ -90,6 +90,15 @@ module Files
90
90
  @attributes[:avatar_url] = value
91
91
  end
92
92
 
93
+ # boolean - Allow this user to perform operations on the account, payments, and invoices?
94
+ def billing_permission
95
+ @attributes[:billing_permission]
96
+ end
97
+
98
+ def billing_permission=(value)
99
+ @attributes[:billing_permission] = value
100
+ end
101
+
93
102
  # boolean - Allow this user to skip site-wide IP blacklists?
94
103
  def bypass_site_allowed_ips
95
104
  @attributes[:bypass_site_allowed_ips]
@@ -504,6 +513,7 @@ module Files
504
513
  # attachments_permission - boolean - Can the user create Bundles (aka Share Links)? This field will be aliased or renamed in the future to `bundles_permission`.
505
514
  # authenticate_until - string - Scheduled Date/Time at which user will be deactivated
506
515
  # authentication_method - string - How is this user authenticated?
516
+ # billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
507
517
  # bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
508
518
  # dav_permission - boolean - Can the user connect with WebDAV?
509
519
  # disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
@@ -638,6 +648,7 @@ module Files
638
648
  # attachments_permission - boolean - Can the user create Bundles (aka Share Links)? This field will be aliased or renamed in the future to `bundles_permission`.
639
649
  # authenticate_until - string - Scheduled Date/Time at which user will be deactivated
640
650
  # authentication_method - string - How is this user authenticated?
651
+ # billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
641
652
  # bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
642
653
  # dav_permission - boolean - Can the user connect with WebDAV?
643
654
  # disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
@@ -736,6 +747,7 @@ module Files
736
747
  # attachments_permission - boolean - Can the user create Bundles (aka Share Links)? This field will be aliased or renamed in the future to `bundles_permission`.
737
748
  # authenticate_until - string - Scheduled Date/Time at which user will be deactivated
738
749
  # authentication_method - string - How is this user authenticated?
750
+ # billing_permission - boolean - Allow this user to perform operations on the account, payments, and invoices?
739
751
  # bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
740
752
  # dav_permission - boolean - Can the user connect with WebDAV?
741
753
  # disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting.
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.23
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday