files.com 1.1.15 → 1.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/ip_address.md +16 -0
- data/lib/files.com/models/ip_address.rb +12 -0
- data/lib/files.com/version.rb +1 -1
- data/shared/url_test_data.json +18 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be2a6549dec5348828e42b06e9ac8d0b09d716a28c02041946424fbf50ddfe5e
|
4
|
+
data.tar.gz: c3f695cf4986f2c97e384f94253b9c41879dc0dbe7bd23c58fa51f781ef24e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77e4ef6a418d26927e41518685547204c7ecfa3243024a63fa25098374405c95c6ec3c061021eacbdac607f8dd9f8a9fce9022974440551998e04b574e358126
|
7
|
+
data.tar.gz: d5ca4d0526e3ca6f773d5cc167e30cbc65e8786e201d4e103f133e81fa42c8adc63a8d58a423da52d1bc9e557f9a0940821bcaab9fb7f6536c82d740f4779dd1
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.17
|
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 SmartFile IP addresses
|
41
|
+
|
42
|
+
```
|
43
|
+
Files::IpAddress.get_smartfile_reserved(
|
44
|
+
per_page: 1
|
45
|
+
)
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
* `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.
|
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 ExaVault IP addresses
|
@@ -45,6 +45,18 @@ module Files
|
|
45
45
|
list(params, options)
|
46
46
|
end
|
47
47
|
|
48
|
+
# Parameters:
|
49
|
+
# 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.
|
50
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
51
|
+
def self.get_smartfile_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/smartfile-reserved", :get, params, options)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
48
60
|
# Parameters:
|
49
61
|
# 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.
|
50
62
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
data/lib/files.com/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"substitute_urls": [
|
3
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=%s&X-Goog-Expires=%s&X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-SignedHeaders=host",
|
4
|
+
"https://s3.amazonaws.com/test.example.com/metadata/1234/00000000-0000-0000-0001-00000000?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=%s&X-Amz-Expires=%s",
|
5
|
+
"https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=se=%s"
|
6
|
+
],
|
7
|
+
"error_urls": [
|
8
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z",
|
9
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z&X-Goog-Date=20220202T120000Z",
|
10
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Expires=900&X-Goog-Expires=600",
|
11
|
+
"https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=se=20220101T120000Z&sp=se=20220202T120000Z",
|
12
|
+
"https://filescomtests.blob.core.windows.net/testazureremote/ntie3buw/file-to-download.txt?sp=20220101T120000Z",
|
13
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101&X-Goog-Expires=900",
|
14
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=asdf&X-Goog-Expires=900",
|
15
|
+
"https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Date=20220101T120000Z&&X-Goog-Expires=900",
|
16
|
+
"https://s3.amazonaws.com/test.example.com/metadata/1234/00000000-0000-0000-0001-00000000?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=asdf&X-Amz-Expires=900"
|
17
|
+
]
|
18
|
+
}
|
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.1.
|
4
|
+
version: 1.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -296,6 +296,7 @@ files:
|
|
296
296
|
- lib/files.com/version.rb
|
297
297
|
- setup.sh
|
298
298
|
- shared/normalization_for_comparison_test_data.json
|
299
|
+
- shared/url_test_data.json
|
299
300
|
- spec/lib/api_client_spec.rb
|
300
301
|
- spec/list_spec.rb
|
301
302
|
- spec/models/file_spec.rb
|