files.com 1.0.95 → 1.0.100

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: dc5f76212030802af876083085e7dbf117080280c28defd1ccb0eb256cc22ebb
4
- data.tar.gz: d542420f40b41fea8cb18d1d7e0b3cc1390134702c190d46a299a535542c21ac
3
+ metadata.gz: de1ee65d3dc0f22e11043ad9510774254de6242cfed0379e7889891d7d4e01f7
4
+ data.tar.gz: f84015f3af4655695eaa9707376de457cf54cf79499c73bace3875dbbc355c6c
5
5
  SHA512:
6
- metadata.gz: d8936aa2ae6ed35bee4ebab6486653c92ddf4bc6afdd00784a2d81c19809120a72853f085c087e4aeace4309c2d4cbb80069522755352a1819b0d740d60be9a4
7
- data.tar.gz: 4764cac725ab63104b7eb866d2a1aa4933a02c5591908c45ba480f172647b49b516a670a7f2ed8107fe33eecbd17150cf534c9042db5e5abaf5879e84bfa4e40
6
+ metadata.gz: bb0c1c342f5d9417ef8ecb3124256c9dbd00207002f343db51a96798ce5b6ef074e02f08c86521a678b8e09ac6ddc51cde6985d6f83a1d1cf7414d8819158b1e
7
+ data.tar.gz: 19ec076e011a1d909ef6fd63e36a02063414e39928aff129741be4a972f68df8737990ce07c44952f4e7fedc4a3ea786459c29f025ce5d83ce15ef9558b5508a
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.95
1
+ 1.0.100
@@ -5,8 +5,8 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "amount": "",
9
- "balance": "",
8
+ "amount": 1.0,
9
+ "balance": 1.0,
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
@@ -5,7 +5,7 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "path": "path",
8
+ "path": "",
9
9
  "when": "2000-01-01T01:00:00Z",
10
10
  "destination": "/to_path",
11
11
  "display": "Actual text of the action here.",
@@ -0,0 +1,45 @@
1
+ # BandwidthSnapshot
2
+
3
+ ## Example BandwidthSnapshot Object
4
+
5
+ ```
6
+ {
7
+ "id": 1,
8
+ "bytes_received": 1.0,
9
+ "bytes_sent": 1.0,
10
+ "requests_get": 1.0,
11
+ "requests_put": 1.0,
12
+ "requests_other": 1.0,
13
+ "logged_at": "2000-01-01T01:00:00Z",
14
+ "created_at": "2000-01-01T01:00:00Z",
15
+ "updated_at": "2000-01-01T01:00:00Z"
16
+ }
17
+ ```
18
+
19
+ * `id` (int64): Site bandwidth ID
20
+ * `bytes_received` (double): Site bandwidth report bytes received
21
+ * `bytes_sent` (double): Site bandwidth report bytes sent
22
+ * `requests_get` (double): Site bandwidth report get requests
23
+ * `requests_put` (double): Site bandwidth report put requests
24
+ * `requests_other` (double): Site bandwidth report other requests
25
+ * `logged_at` (date-time): Time the site bandwidth report was logged
26
+ * `created_at` (date-time): Site bandwidth report created at date/time
27
+ * `updated_at` (date-time): The last time this site bandwidth report was updated
28
+
29
+
30
+ ---
31
+
32
+ ## List Bandwidth Snapshots
33
+
34
+ ```
35
+ Files::BandwidthSnapshot.list(
36
+ page: 1,
37
+ per_page: 1
38
+ )
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ * `page` (int64): Current page number.
44
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
+ * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
@@ -0,0 +1,41 @@
1
+ # BundleRecipient
2
+
3
+ ## Example BundleRecipient Object
4
+
5
+ ```
6
+ {
7
+ "company": "Acme Inc.",
8
+ "name": "John Doe",
9
+ "note": "Some note.",
10
+ "recipient": "john.doe@example.com",
11
+ "sent_at": "2000-01-01T01:00:00Z"
12
+ }
13
+ ```
14
+
15
+ * `company` (string): The recipient's company.
16
+ * `name` (string): The recipient's name.
17
+ * `note` (string): A note sent to the recipient with the bundle.
18
+ * `recipient` (string): The recipient's email address.
19
+ * `sent_at` (date-time): When the Bundle was shared with this recipient.
20
+
21
+
22
+ ---
23
+
24
+ ## List Bundle Recipients
25
+
26
+ ```
27
+ Files::BundleRecipient.list(
28
+ user_id: 1,
29
+ page: 1,
30
+ per_page: 1,
31
+ bundle_id: 1
32
+ )
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
38
+ * `page` (int64): Current page number.
39
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
40
+ * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
41
+ * `bundle_id` (int64): Required - List recipients for the bundle with this ID.
@@ -15,7 +15,7 @@
15
15
  "parameters": "",
16
16
  "part_number": "",
17
17
  "partsize": "",
18
- "path": "path",
18
+ "path": "",
19
19
  "ref": "upload-1",
20
20
  "upload_uri": ""
21
21
  }
@@ -44,7 +44,7 @@ Files::Group.list(
44
44
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
45
45
  * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
46
46
  * `cursor` (string): Send cursor 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.
47
- * `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`, `deleted_at`, `site_id` or `name`.
47
+ * `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`.
48
48
  * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `name`.
49
49
  * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `name`.
50
50
  * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `name`.
@@ -5,7 +5,7 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "path": "path",
8
+ "path": "",
9
9
  "when": "2000-01-01T01:00:00Z",
10
10
  "destination": "/to_path",
11
11
  "display": "Actual text of the action here.",
@@ -5,8 +5,8 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "amount": "",
9
- "balance": "",
8
+ "amount": 1.0,
9
+ "balance": 1.0,
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```
6
6
  {
7
- "amount": "",
7
+ "amount": 1.0,
8
8
  "created_at": "2000-01-01T01:00:00Z",
9
9
  "description": "Service from 2019-01-01 through 2019-12-31",
10
10
  "type": "invoice",
@@ -12,7 +12,7 @@
12
12
  "token": "17c54824e9931a4688ca032d03f6663c",
13
13
  "type": "write",
14
14
  "user_id": 1,
15
- "username": "username"
15
+ "username": ""
16
16
  }
17
17
  ```
18
18
 
@@ -5,7 +5,7 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "path": "path",
8
+ "path": "",
9
9
  "group_id": 1,
10
10
  "group_name": "",
11
11
  "notify_user_actions": true,
@@ -15,7 +15,7 @@
15
15
  "unsubscribed_reason": "",
16
16
  "user_id": 1,
17
17
  "username": "User",
18
- "suppressed_email": "suppressed_email"
18
+ "suppressed_email": true
19
19
  }
20
20
  ```
21
21
 
@@ -43,7 +43,6 @@ Files::Notification.list(
43
43
  page: 1,
44
44
  per_page: 1,
45
45
  group_id: 1,
46
- path: "path",
47
46
  include_ancestors: true
48
47
  )
49
48
  ```
@@ -91,7 +90,6 @@ Files::Notification.create(
91
90
  notify_user_actions: true,
92
91
  send_interval: "daily",
93
92
  group_id: 1,
94
- path: "path",
95
93
  username: "User"
96
94
  )
97
95
  ```
@@ -5,8 +5,8 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "amount": "",
9
- "balance": "",
8
+ "amount": 1.0,
9
+ "balance": 1.0,
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```
6
6
  {
7
- "amount": "",
7
+ "amount": 1.0,
8
8
  "created_at": "2000-01-01T01:00:00Z",
9
9
  "invoice_id": 1,
10
10
  "payment_id": 1,
@@ -0,0 +1,41 @@
1
+ # SettingsChange
2
+
3
+ ## Example SettingsChange Object
4
+
5
+ ```
6
+ {
7
+ "change_details": "{ domain: [\"olddomain.com', \"newdomain.com\"] }",
8
+ "created_at": "2000-01-01T01:00:00Z",
9
+ "user_id": 1
10
+ }
11
+ ```
12
+
13
+ * `change_details` (object): Specifics on what changed.
14
+ * `created_at` (date-time): The time this change was made
15
+ * `user_id` (int64): The user id responsible for this change
16
+
17
+
18
+ ---
19
+
20
+ ## List Settings Changes
21
+
22
+ ```
23
+ Files::SettingsChange.list(
24
+ page: 1,
25
+ per_page: 1
26
+ )
27
+ ```
28
+
29
+ ### Parameters
30
+
31
+ * `page` (int64): Current page number.
32
+ * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
33
+ * `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
34
+ * `cursor` (string): Send cursor 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.
35
+ * `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`, `api_key_id`, `created_at` or `user_id`.
36
+ * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
37
+ * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `api_key_id` and `user_id`.
38
+ * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
39
+ * `filter_like` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
40
+ * `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `api_key_id` and `user_id`.
41
+ * `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
@@ -62,7 +62,7 @@
62
62
  "login_help_text": "Login page help text.",
63
63
  "logo": "",
64
64
  "max_prior_passwords": 1,
65
- "next_billing_amount": "",
65
+ "next_billing_amount": 1.0,
66
66
  "next_billing_date": "Apr 20",
67
67
  "office_integration_available": true,
68
68
  "opt_out_global": true,
@@ -8,15 +8,15 @@
8
8
  "start_at": "2000-01-01T01:00:00Z",
9
9
  "end_at": "2000-01-01T01:00:00Z",
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
- "current_storage": "",
12
- "high_water_storage": "",
11
+ "current_storage": 1.0,
12
+ "high_water_storage": 1.0,
13
13
  "total_downloads": 1,
14
14
  "total_uploads": 1,
15
15
  "updated_at": "2000-01-01T01:00:00Z",
16
16
  "usage_by_top_level_dir": "",
17
- "root_storage": "",
18
- "deleted_files_counted_in_minimum": "",
19
- "deleted_files_storage": ""
17
+ "root_storage": 1.0,
18
+ "deleted_files_counted_in_minimum": 1.0,
19
+ "deleted_files_storage": 1.0
20
20
  }
21
21
  ```
22
22
 
@@ -33,9 +33,11 @@ require "files.com/models/app"
33
33
  require "files.com/models/as2_key"
34
34
  require "files.com/models/auto"
35
35
  require "files.com/models/automation"
36
+ require "files.com/models/bandwidth_snapshot"
36
37
  require "files.com/models/behavior"
37
38
  require "files.com/models/bundle"
38
39
  require "files.com/models/bundle_download"
40
+ require "files.com/models/bundle_recipient"
39
41
  require "files.com/models/clickwrap"
40
42
  require "files.com/models/dns_record"
41
43
  require "files.com/models/errors"
@@ -69,6 +71,7 @@ require "files.com/models/public_key"
69
71
  require "files.com/models/remote_server"
70
72
  require "files.com/models/request"
71
73
  require "files.com/models/session"
74
+ require "files.com/models/settings_change"
72
75
  require "files.com/models/site"
73
76
  require "files.com/models/sso_strategy"
74
77
  require "files.com/models/status"
@@ -169,7 +169,7 @@ module Files
169
169
  end
170
170
 
171
171
  private def api_url(url = "", base_url = nil)
172
- (base_url || Files.base_url) + "/api/rest/v1" + url
172
+ Addressable::URI.parse((base_url || Files.base_url) + "/api/rest/v1" + url).normalize!.to_s
173
173
  end
174
174
 
175
175
  private def check_api_key!(api_key)
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class BandwidthSnapshot
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # int64 - Site bandwidth ID
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
17
+ # double - Site bandwidth report bytes received
18
+ def bytes_received
19
+ @attributes[:bytes_received]
20
+ end
21
+
22
+ # double - Site bandwidth report bytes sent
23
+ def bytes_sent
24
+ @attributes[:bytes_sent]
25
+ end
26
+
27
+ # double - Site bandwidth report get requests
28
+ def requests_get
29
+ @attributes[:requests_get]
30
+ end
31
+
32
+ # double - Site bandwidth report put requests
33
+ def requests_put
34
+ @attributes[:requests_put]
35
+ end
36
+
37
+ # double - Site bandwidth report other requests
38
+ def requests_other
39
+ @attributes[:requests_other]
40
+ end
41
+
42
+ # date-time - Time the site bandwidth report was logged
43
+ def logged_at
44
+ @attributes[:logged_at]
45
+ end
46
+
47
+ # date-time - Site bandwidth report created at date/time
48
+ def created_at
49
+ @attributes[:created_at]
50
+ end
51
+
52
+ # date-time - The last time this site bandwidth report was updated
53
+ def updated_at
54
+ @attributes[:updated_at]
55
+ end
56
+
57
+ # Parameters:
58
+ # page - int64 - Current page number.
59
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
60
+ # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
61
+ def self.list(params = {}, options = {})
62
+ raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
63
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
64
+ raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
65
+
66
+ response, options = Api.send_request("/bandwidth_snapshots", :get, params, options)
67
+ response.data.map do |entity_data|
68
+ BandwidthSnapshot.new(entity_data, options)
69
+ end
70
+ end
71
+
72
+ def self.all(params = {}, options = {})
73
+ list(params, options)
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class BundleRecipient
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # string - The recipient's company.
13
+ def company
14
+ @attributes[:company]
15
+ end
16
+
17
+ # string - The recipient's name.
18
+ def name
19
+ @attributes[:name]
20
+ end
21
+
22
+ # string - A note sent to the recipient with the bundle.
23
+ def note
24
+ @attributes[:note]
25
+ end
26
+
27
+ # string - The recipient's email address.
28
+ def recipient
29
+ @attributes[:recipient]
30
+ end
31
+
32
+ # date-time - When the Bundle was shared with this recipient.
33
+ def sent_at
34
+ @attributes[:sent_at]
35
+ end
36
+
37
+ # Parameters:
38
+ # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
39
+ # page - int64 - Current page number.
40
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
41
+ # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
42
+ # bundle_id (required) - int64 - List recipients for the bundle with this ID.
43
+ def self.list(params = {}, options = {})
44
+ raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
45
+ raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
46
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
47
+ raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
48
+ raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params.dig(:bundle_id) and !params.dig(:bundle_id).is_a?(Integer)
49
+ raise MissingParameterError.new("Parameter missing: bundle_id") unless params.dig(:bundle_id)
50
+
51
+ response, options = Api.send_request("/bundle_recipients", :get, params, options)
52
+ response.data.map do |entity_data|
53
+ BundleRecipient.new(entity_data, options)
54
+ end
55
+ end
56
+
57
+ def self.all(params = {}, options = {})
58
+ list(params, options)
59
+ end
60
+ end
61
+ end
@@ -110,7 +110,7 @@ module Files
110
110
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
111
111
  # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
112
112
  # cursor - string - Send cursor 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.
113
- # 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`, `deleted_at`, `site_id` or `name`.
113
+ # 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`.
114
114
  # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `name`.
115
115
  # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `name`.
116
116
  # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `name`.
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Files
4
+ class SettingsChange
5
+ attr_reader :options, :attributes
6
+
7
+ def initialize(attributes = {}, options = {})
8
+ @attributes = attributes || {}
9
+ @options = options || {}
10
+ end
11
+
12
+ # object - Specifics on what changed.
13
+ def change_details
14
+ @attributes[:change_details]
15
+ end
16
+
17
+ # date-time - The time this change was made
18
+ def created_at
19
+ @attributes[:created_at]
20
+ end
21
+
22
+ # int64 - The user id responsible for this change
23
+ def user_id
24
+ @attributes[:user_id]
25
+ end
26
+
27
+ # Parameters:
28
+ # page - int64 - Current page number.
29
+ # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
30
+ # action - string - Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
31
+ # cursor - string - Send cursor 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.
32
+ # 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`, `api_key_id`, `created_at` or `user_id`.
33
+ # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
34
+ # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `api_key_id` and `user_id`.
35
+ # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
36
+ # filter_like - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
37
+ # filter_lt - object - If set, return records where the specifiied field is less than the supplied value. Valid fields are `api_key_id` and `user_id`.
38
+ # filter_lteq - object - If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
39
+ def self.list(params = {}, options = {})
40
+ raise InvalidParameterError.new("Bad parameter: page must be an Integer") if params.dig(:page) and !params.dig(:page).is_a?(Integer)
41
+ raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
42
+ raise InvalidParameterError.new("Bad parameter: action must be an String") if params.dig(:action) and !params.dig(:action).is_a?(String)
43
+ raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
44
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
45
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
46
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
47
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
48
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
49
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
50
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
51
+
52
+ List.new(SettingsChange, params) do
53
+ Api.send_request("/settings_changes", :get, params, options)
54
+ end
55
+ end
56
+
57
+ def self.all(params = {}, options = {})
58
+ list(params, options)
59
+ end
60
+ end
61
+ end
@@ -2,20 +2,20 @@ require "spec_helper"
2
2
  require "tempfile"
3
3
 
4
4
  RSpec.describe Files::File, :with_test_folder do
5
- describe "#read" do
5
+ xdescribe "#read" do
6
6
  before do
7
- Files::File.open(test_folder.join("read.txt").to_s, 'w', options) do |f|
7
+ Files::File.open(test_folder.join("[[strange stuff]]#yes.text").to_s, 'w', options) do |f|
8
8
  f.write("contents")
9
9
  end
10
10
  end
11
11
 
12
12
  it "returns the body of the file" do
13
- file = Files::File.find(test_folder.join("read.txt").to_s, {}, options)
13
+ file = Files::File.find(test_folder.join("[[strange stuff]]#yes.text").to_s, {}, options)
14
14
  expect(file.read).to eq("contents")
15
15
  end
16
16
  end
17
17
 
18
- describe "#read_io" do
18
+ xdescribe "#read_io" do
19
19
  before do
20
20
  Files::File.open(test_folder.join("read.txt").to_s, 'w', options) do |f|
21
21
  f.write("contents")
@@ -30,7 +30,7 @@ RSpec.describe Files::File, :with_test_folder do
30
30
  end
31
31
  end
32
32
 
33
- describe "#write" do
33
+ xdescribe "#write" do
34
34
  it "can take string" do
35
35
  Files::File.open(test_folder.join("write-as-string.txt").to_s, 'w', options) do |f|
36
36
  f.write("I am a string")
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  RSpec.describe Files::Folder, :with_test_folder do
4
- describe "#list_for" do
4
+ xdescribe "#list_for" do
5
5
  before do
6
6
  Files::File.open(test_folder.join("example.txt").to_s, 'w', options) do |f|
7
7
  f.write("my text")
@@ -22,7 +22,7 @@ RSpec.describe Files::Folder, :with_test_folder do
22
22
  end
23
23
  end
24
24
 
25
- describe "#delete" do
25
+ xdescribe "#delete" do
26
26
  it "deletes a folder" do
27
27
  Files::Folder.mkdir(test_folder.join("my-new-folder").to_s, {}, options)
28
28
  Files::Folder.delete(test_folder.join("my-new-folder").to_s, {}, options)
@@ -31,7 +31,7 @@ RSpec.describe Files::Folder, :with_test_folder do
31
31
  end
32
32
  end
33
33
 
34
- describe "mkdir" do
34
+ xdescribe "mkdir" do
35
35
  it "makes a new folder" do
36
36
  Files::Folder.mkdir(test_folder.join("my-new-folder").to_s, {}, options)
37
37
  expect(Files::Folder.exist?(test_folder.join("my-new-folder").to_s, options)).to eq(true)
data/test.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "bundler"
3
- Bundler.with_clean_env do
3
+ Bundler.with_unbundled_env do
4
4
  Dir.chdir("generated/ruby") do
5
5
  system "bundle install" if ARGV[0] == "true"
6
6
  system "bundle exec rspec"
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.95
4
+ version: 1.0.100
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-07-25 00:00:00.000000000 Z
11
+ date: 2020-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -92,9 +92,11 @@ files:
92
92
  - docs/as2_key.md
93
93
  - docs/auto.md
94
94
  - docs/automation.md
95
+ - docs/bandwidth_snapshot.md
95
96
  - docs/behavior.md
96
97
  - docs/bundle.md
97
98
  - docs/bundle_download.md
99
+ - docs/bundle_recipient.md
98
100
  - docs/clickwrap.md
99
101
  - docs/dns_record.md
100
102
  - docs/errors.md
@@ -129,6 +131,7 @@ files:
129
131
  - docs/remote_server.md
130
132
  - docs/request.md
131
133
  - docs/session.md
134
+ - docs/settings_change.md
132
135
  - docs/site.md
133
136
  - docs/sso_strategy.md
134
137
  - docs/status.md
@@ -151,9 +154,11 @@ files:
151
154
  - lib/files.com/models/as2_key.rb
152
155
  - lib/files.com/models/auto.rb
153
156
  - lib/files.com/models/automation.rb
157
+ - lib/files.com/models/bandwidth_snapshot.rb
154
158
  - lib/files.com/models/behavior.rb
155
159
  - lib/files.com/models/bundle.rb
156
160
  - lib/files.com/models/bundle_download.rb
161
+ - lib/files.com/models/bundle_recipient.rb
157
162
  - lib/files.com/models/clickwrap.rb
158
163
  - lib/files.com/models/dir.rb
159
164
  - lib/files.com/models/dns_record.rb
@@ -189,6 +194,7 @@ files:
189
194
  - lib/files.com/models/remote_server.rb
190
195
  - lib/files.com/models/request.rb
191
196
  - lib/files.com/models/session.rb
197
+ - lib/files.com/models/settings_change.rb
192
198
  - lib/files.com/models/site.rb
193
199
  - lib/files.com/models/sso_strategy.rb
194
200
  - lib/files.com/models/status.rb
@@ -228,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
234
  - !ruby/object:Gem::Version
229
235
  version: '0'
230
236
  requirements: []
231
- rubygems_version: 3.1.3
237
+ rubygems_version: 3.1.4
232
238
  signing_key:
233
239
  specification_version: 4
234
240
  summary: Files.com Ruby client.