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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08b810a717ae7abceaa2303632b4bd23f29171808414e35b8fa2c0b2f603e09b'
4
- data.tar.gz: f7de485dda77b683de22d77c43270aa9312bc64579e23bc78c13092eef706b6a
3
+ metadata.gz: 9eb227d267506d2473579e384fa0a20564662f27e31c0741238f3c70275529e0
4
+ data.tar.gz: e20e3aba839ac51e238dde9a2bedcfa6e8a390ddba9e3ae8890bdb0883198c2f
5
5
  SHA512:
6
- metadata.gz: 0d8d6a5192bcf8b1fc4a73d9d434dec1f8023b1ac2e9bff48c8d3b0037aa3216016c739b34cc727c9fabee5d5a4d12ba5554ad83fd1a3d999782ebdc90e9d839
7
- data.tar.gz: 8a8552ae2eb2519e9b322bc0c14b2ce8b207d16abc616ec8a0353e0ab18185c8378438ec56b37f5cfa76bbabd7466f5ad339818defbc2bbb9ca06650759e3722
6
+ metadata.gz: 747f5ef9d3267b8fd2b6e9ae6825a552b94d195b126b8cea9429d5fcf376c90b7c0e01df4bf31ed6df0c8e87b300a42edb4f8bbd5079f1da926d4b91f304b9ba
7
+ data.tar.gz: 9a0e0dd4c0098d2d74801ae7fdcf6d1faba951e22068d7b5ca7187716e1031773e747c521841fb0525f3bd5b65a436876fc2ccea3bf8a6f86905822603d920c2
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.301
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.301
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-10-20 00:00:00.000000000 Z
11
+ date: 2022-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable