files.com 1.1.509 → 1.1.510
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/bundle.md +1 -1
- data/docs/partner_site.md +29 -0
- data/lib/files.com/models/bundle.rb +1 -1
- data/lib/files.com/models/partner_site.rb +43 -0
- data/lib/files.com/version.rb +1 -1
- data/lib/files.com.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a89300b2fb95e9eaabb4f7a8dd8dc98d8d55a79b0a27495c82224a2406ad71b2
|
|
4
|
+
data.tar.gz: 8746e30b6793a431f883bc5595ca5cb9a3cf713f7035d6ea4d5f418131d6994d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a955c1ea79870919d6441bf22922ebff5237c7ea0abf51c3dddf14cacda2240023e41a29f02f3b0aed755ff5481dadd620da3420acc2074b93c57e7ee5b41a83
|
|
7
|
+
data.tar.gz: 21191e9fd1b71a6e59474770c3ee9acf949e828c2eed9ea7a4f1b28ea2c724c23708e00de9033c625d522c0420ffa0f01858d67fbb07c5f4c7755eab2d3ed51a
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.510
|
data/docs/bundle.md
CHANGED
|
@@ -154,7 +154,7 @@ Files::Bundle.list(
|
|
|
154
154
|
* `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.
|
|
155
155
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
156
156
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
157
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
157
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
158
158
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
159
159
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
160
160
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# PartnerSite
|
|
2
|
+
|
|
3
|
+
## Example PartnerSite Object
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
{
|
|
7
|
+
"partner_id": 1,
|
|
8
|
+
"partner_name": "Acme Corp",
|
|
9
|
+
"linked_site_id": 1
|
|
10
|
+
}
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
* `partner_id` (int64): Partner ID
|
|
14
|
+
* `partner_name` (string): Partner Name
|
|
15
|
+
* `linked_site_id` (int64): Linked Site ID
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## List Partner Sites
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
Files::PartnerSite.list
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Parameters
|
|
27
|
+
|
|
28
|
+
* `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.
|
|
29
|
+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
@@ -531,7 +531,7 @@ module Files
|
|
|
531
531
|
# 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.
|
|
532
532
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
533
533
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
534
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id,
|
|
534
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
535
535
|
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
536
536
|
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
|
537
537
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Files
|
|
4
|
+
class PartnerSite
|
|
5
|
+
attr_reader :options, :attributes
|
|
6
|
+
|
|
7
|
+
def initialize(attributes = {}, options = {})
|
|
8
|
+
@attributes = attributes || {}
|
|
9
|
+
@options = options || {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# int64 - Partner ID
|
|
13
|
+
def partner_id
|
|
14
|
+
@attributes[:partner_id]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# string - Partner Name
|
|
18
|
+
def partner_name
|
|
19
|
+
@attributes[:partner_name]
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# int64 - Linked Site ID
|
|
23
|
+
def linked_site_id
|
|
24
|
+
@attributes[:linked_site_id]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Parameters:
|
|
28
|
+
# 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.
|
|
29
|
+
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
30
|
+
def self.list(params = {}, options = {})
|
|
31
|
+
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
32
|
+
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
33
|
+
|
|
34
|
+
List.new(PartnerSite, params) do
|
|
35
|
+
Api.send_request("/partner_sites", :get, params, options)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.all(params = {}, options = {})
|
|
40
|
+
list(params, options)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
data/lib/files.com/version.rb
CHANGED
data/lib/files.com.rb
CHANGED
|
@@ -100,6 +100,7 @@ require "files.com/models/message_reaction"
|
|
|
100
100
|
require "files.com/models/notification"
|
|
101
101
|
require "files.com/models/outbound_connection_log"
|
|
102
102
|
require "files.com/models/partner"
|
|
103
|
+
require "files.com/models/partner_site"
|
|
103
104
|
require "files.com/models/partner_site_request"
|
|
104
105
|
require "files.com/models/payment"
|
|
105
106
|
require "files.com/models/payment_line_item"
|
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.510
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
@@ -225,6 +225,7 @@ files:
|
|
|
225
225
|
- docs/notification.md
|
|
226
226
|
- docs/outbound_connection_log.md
|
|
227
227
|
- docs/partner.md
|
|
228
|
+
- docs/partner_site.md
|
|
228
229
|
- docs/partner_site_request.md
|
|
229
230
|
- docs/payment.md
|
|
230
231
|
- docs/payment_line_item.md
|
|
@@ -345,6 +346,7 @@ files:
|
|
|
345
346
|
- lib/files.com/models/notification.rb
|
|
346
347
|
- lib/files.com/models/outbound_connection_log.rb
|
|
347
348
|
- lib/files.com/models/partner.rb
|
|
349
|
+
- lib/files.com/models/partner_site.rb
|
|
348
350
|
- lib/files.com/models/partner_site_request.rb
|
|
349
351
|
- lib/files.com/models/payment.rb
|
|
350
352
|
- lib/files.com/models/payment_line_item.rb
|