files.com 1.1.588 → 1.1.589
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +0 -1
- metadata +1 -3
- data/docs/priority.md +0 -28
- data/lib/files.com/models/priority.rb +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c425bc08860abfce19896c570e9839ac0837c7cde03bacae445601d44af224b1
|
|
4
|
+
data.tar.gz: b67fd865e85e6ca6c725167a0074518434f3f8cef2770490f76a3ec86bce057f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22cde396547b278b162050d4db6439f86e320be5e23c8a61c82a7039d15b2680e61a3b9346fa438ba1bb2df2188dbbcf4f9bcce6644883afe503ff1ebe3fd315
|
|
7
|
+
data.tar.gz: 7ad317c46635f6b082ad07323a4790fbef882eb328b4fef38e38ec79d989fae715daab041ba829e0b5713a6acae7f947342f8fd4c5470f88312fc0cd8fd84b61
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.589
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -111,7 +111,6 @@ require "files.com/models/payment"
|
|
|
111
111
|
require "files.com/models/payment_line_item"
|
|
112
112
|
require "files.com/models/permission"
|
|
113
113
|
require "files.com/models/preview"
|
|
114
|
-
require "files.com/models/priority"
|
|
115
114
|
require "files.com/models/project"
|
|
116
115
|
require "files.com/models/public_hosting_request_log"
|
|
117
116
|
require "files.com/models/public_ip_address"
|
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.
|
|
4
|
+
version: 1.1.589
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
@@ -250,7 +250,6 @@ files:
|
|
|
250
250
|
- docs/payment_line_item.md
|
|
251
251
|
- docs/permission.md
|
|
252
252
|
- docs/preview.md
|
|
253
|
-
- docs/priority.md
|
|
254
253
|
- docs/project.md
|
|
255
254
|
- docs/public_hosting_request_log.md
|
|
256
255
|
- docs/public_ip_address.md
|
|
@@ -377,7 +376,6 @@ files:
|
|
|
377
376
|
- lib/files.com/models/payment_line_item.rb
|
|
378
377
|
- lib/files.com/models/permission.rb
|
|
379
378
|
- lib/files.com/models/preview.rb
|
|
380
|
-
- lib/files.com/models/priority.rb
|
|
381
379
|
- lib/files.com/models/project.rb
|
|
382
380
|
- lib/files.com/models/public_hosting_request_log.rb
|
|
383
381
|
- lib/files.com/models/public_ip_address.rb
|
data/docs/priority.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Priority
|
|
2
|
-
|
|
3
|
-
## Example Priority Object
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
{
|
|
7
|
-
"path": "foo/bar",
|
|
8
|
-
"color": "pink"
|
|
9
|
-
}
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
* `path` (string): The path corresponding to the priority color. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
13
|
-
* `color` (string): The priority color
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## List Priorities
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
Files::Priority.list(path)
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### Parameters
|
|
25
|
-
|
|
26
|
-
* `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.
|
|
27
|
-
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
28
|
-
* `path` (string): Required - The path to query for priorities
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Files
|
|
4
|
-
class Priority
|
|
5
|
-
attr_reader :options, :attributes
|
|
6
|
-
|
|
7
|
-
def initialize(attributes = {}, options = {})
|
|
8
|
-
@attributes = attributes || {}
|
|
9
|
-
@options = options || {}
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
# string - The path corresponding to the priority color. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
|
13
|
-
def path
|
|
14
|
-
@attributes[:path]
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# string - The priority color
|
|
18
|
-
def color
|
|
19
|
-
@attributes[:color]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# Parameters:
|
|
23
|
-
# 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.
|
|
24
|
-
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
25
|
-
# path (required) - string - The path to query for priorities
|
|
26
|
-
def self.list(path, params = {}, options = {})
|
|
27
|
-
params ||= {}
|
|
28
|
-
params[:path] = path
|
|
29
|
-
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
30
|
-
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
31
|
-
raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
|
|
32
|
-
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
|
33
|
-
|
|
34
|
-
List.new(Priority, params) do
|
|
35
|
-
Api.send_request("/priorities", :get, params, options)
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def self.all(path, params = {}, options = {})
|
|
40
|
-
list(path, params, options)
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|