files.com 1.0.301 → 1.0.303
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/docs/file.md +2 -0
- data/docs/folder.md +2 -0
- data/docs/ip_address.md +16 -0
- data/lib/files.com/models/file.rb +9 -0
- data/lib/files.com/models/folder.rb +9 -0
- data/lib/files.com/models/ip_address.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9eb227d267506d2473579e384fa0a20564662f27e31c0741238f3c70275529e0
|
4
|
+
data.tar.gz: e20e3aba839ac51e238dde9a2bedcfa6e8a390ddba9e3ae8890bdb0883198c2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 747f5ef9d3267b8fd2b6e9ae6825a552b94d195b126b8cea9429d5fcf376c90b7c0e01df4bf31ed6df0c8e87b300a42edb4f8bbd5079f1da926d4b91f304b9ba
|
7
|
+
data.tar.gz: 9a0e0dd4c0098d2d74801ae7fdcf6d1faba951e22068d7b5ca7187716e1031773e747c521841fb0525f3bd5b65a436876fc2ccea3bf8a6f86905822603d920c2
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.303
|
data/docs/file.md
CHANGED
@@ -20,6 +20,7 @@ may places where a Ruby File object can be used.
|
|
20
20
|
"region": "us-east-1",
|
21
21
|
"permissions": "rwd",
|
22
22
|
"subfolders_locked?": true,
|
23
|
+
"is_locked": true,
|
23
24
|
"download_uri": "https://mysite.files.com/...",
|
24
25
|
"priority_color": "red",
|
25
26
|
"preview_id": 1,
|
@@ -40,6 +41,7 @@ may places where a Ruby File object can be used.
|
|
40
41
|
* `region` (string): Region location
|
41
42
|
* `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
|
42
43
|
* `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
|
44
|
+
* `is_locked` (boolean): Is this folder locked and unable to be modified?
|
43
45
|
* `download_uri` (string): Link to download file. Provided only in response to a download request.
|
44
46
|
* `priority_color` (string): Bookmark/priority color of file/folder
|
45
47
|
* `preview_id` (int64): File preview ID
|
data/docs/folder.md
CHANGED
@@ -22,6 +22,7 @@ Files::Dir is an alias of Files::Folder
|
|
22
22
|
"region": "us-east-1",
|
23
23
|
"permissions": "rwd",
|
24
24
|
"subfolders_locked?": true,
|
25
|
+
"is_locked": true,
|
25
26
|
"download_uri": "https://mysite.files.com/...",
|
26
27
|
"priority_color": "red",
|
27
28
|
"preview_id": 1,
|
@@ -42,6 +43,7 @@ Files::Dir is an alias of Files::Folder
|
|
42
43
|
* `region` (string): Region location
|
43
44
|
* `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
|
44
45
|
* `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
|
46
|
+
* `is_locked` (boolean): Is this folder locked and unable to be modified?
|
45
47
|
* `download_uri` (string): Link to download file. Provided only in response to a download request.
|
46
48
|
* `priority_color` (string): Bookmark/priority color of file/folder
|
47
49
|
* `preview_id` (int64): File preview ID
|
data/docs/ip_address.md
CHANGED
@@ -35,6 +35,22 @@ Files::IpAddress.list(
|
|
35
35
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
36
36
|
|
37
37
|
|
38
|
+
---
|
39
|
+
|
40
|
+
## List all possible public ExaVault IP addresses
|
41
|
+
|
42
|
+
```
|
43
|
+
Files::IpAddress.get_exavault_reserved(
|
44
|
+
per_page: 1
|
45
|
+
)
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
* `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.
|
51
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
52
|
+
|
53
|
+
|
38
54
|
---
|
39
55
|
|
40
56
|
## List all possible public IP addresses
|
@@ -676,6 +676,15 @@ module Files
|
|
676
676
|
@attributes[:subfolders_locked?] = value
|
677
677
|
end
|
678
678
|
|
679
|
+
# boolean - Is this folder locked and unable to be modified?
|
680
|
+
def is_locked
|
681
|
+
@attributes[:is_locked]
|
682
|
+
end
|
683
|
+
|
684
|
+
def is_locked=(value)
|
685
|
+
@attributes[:is_locked] = value
|
686
|
+
end
|
687
|
+
|
679
688
|
# string - Link to download file. Provided only in response to a download request.
|
680
689
|
def download_uri
|
681
690
|
@attributes[:download_uri]
|
@@ -263,6 +263,15 @@ module Files
|
|
263
263
|
@attributes[:subfolders_locked?] = value
|
264
264
|
end
|
265
265
|
|
266
|
+
# boolean - Is this folder locked and unable to be modified?
|
267
|
+
def is_locked
|
268
|
+
@attributes[:is_locked]
|
269
|
+
end
|
270
|
+
|
271
|
+
def is_locked=(value)
|
272
|
+
@attributes[:is_locked] = value
|
273
|
+
end
|
274
|
+
|
266
275
|
# string - Link to download file. Provided only in response to a download request.
|
267
276
|
def download_uri
|
268
277
|
@attributes[:download_uri]
|
@@ -45,6 +45,18 @@ module Files
|
|
45
45
|
list(params, options)
|
46
46
|
end
|
47
47
|
|
48
|
+
# Parameters:
|
49
|
+
# 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.
|
50
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
51
|
+
def self.get_exavault_reserved(params = {}, options = {})
|
52
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
53
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
54
|
+
|
55
|
+
List.new(PublicIpAddress, params) do
|
56
|
+
Api.send_request("/ip_addresses/exavault-reserved", :get, params, options)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
48
60
|
# Parameters:
|
49
61
|
# 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.
|
50
62
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
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.
|
4
|
+
version: 1.0.303
|
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-
|
11
|
+
date: 2022-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|