files.com 1.0.167 → 1.0.172
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/external_event.md +15 -0
- data/docs/site.md +4 -0
- data/lib/files.com/models/external_event.rb +21 -0
- data/lib/files.com/models/site.rb +10 -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: 0ae2e27593675e8373a4c25834e2796573d290603b2c11675828f6e351b521ba
|
4
|
+
data.tar.gz: 31150189bd18686cddfa3d95b4439f9dd2f83486e75eb4f8d98fa2a3864cb863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1015ed46777e080899658262aecd9b0a6e38fe5d07fb415f49b6560e4cb25517047d686705cc5ded6ae267dd10d088d84d82e6273aaf92d9494b51411ca7ef2
|
7
|
+
data.tar.gz: 6e0846071cb02a4abe9a0a5dc61b3f91dc822abc518d33a0e8d53232741adbe64ca645fd781771ac288716765275094539418df1e7175dcae765a56d9dd7c133
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.172
|
data/docs/external_event.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
{
|
7
|
+
"id": 1,
|
7
8
|
"event_type": "",
|
8
9
|
"status": "",
|
9
10
|
"body": "",
|
@@ -11,6 +12,7 @@
|
|
11
12
|
}
|
12
13
|
```
|
13
14
|
|
15
|
+
* `id` (int64): Event ID
|
14
16
|
* `event_type` (string): Type of event being recorded.
|
15
17
|
* `status` (string): Status of event.
|
16
18
|
* `body` (string): Event body
|
@@ -38,3 +40,16 @@ Files::ExternalEvent.list(
|
|
38
40
|
* `filter_like` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
39
41
|
* `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
40
42
|
* `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type` or `status`.
|
43
|
+
|
44
|
+
|
45
|
+
---
|
46
|
+
|
47
|
+
## Show External Event
|
48
|
+
|
49
|
+
```
|
50
|
+
Files::ExternalEvent.find(id)
|
51
|
+
```
|
52
|
+
|
53
|
+
### Parameters
|
54
|
+
|
55
|
+
* `id` (int64): Required - External Event ID.
|
data/docs/site.md
CHANGED
@@ -22,6 +22,7 @@
|
|
22
22
|
"color2_text": "#0066a7",
|
23
23
|
"color2_top": "#000000",
|
24
24
|
"color2_top_text": "#ffffff",
|
25
|
+
"contact_name": "John Doe",
|
25
26
|
"created_at": "2000-01-01T01:00:00Z",
|
26
27
|
"currency": "USD",
|
27
28
|
"custom_namespace": true,
|
@@ -84,6 +85,7 @@
|
|
84
85
|
"next_billing_amount": 1.0,
|
85
86
|
"next_billing_date": "Apr 20",
|
86
87
|
"office_integration_available": true,
|
88
|
+
"oncehub_link": "https://go.oncehub.com/files",
|
87
89
|
"opt_out_global": true,
|
88
90
|
"overage_notified_at": "2000-01-01T01:00:00Z",
|
89
91
|
"overage_notify": true,
|
@@ -223,6 +225,7 @@
|
|
223
225
|
* `color2_text` (string): Page link and button color
|
224
226
|
* `color2_top` (string): Top bar background color
|
225
227
|
* `color2_top_text` (string): Top bar text color
|
228
|
+
* `contact_name` (string): Site main contact name
|
226
229
|
* `created_at` (date-time): Time this site was created
|
227
230
|
* `currency` (string): Preferred currency
|
228
231
|
* `custom_namespace` (boolean): Is this site using a custom namespace for users?
|
@@ -270,6 +273,7 @@
|
|
270
273
|
* `next_billing_amount` (double): Next billing amount
|
271
274
|
* `next_billing_date` (string): Next billing date
|
272
275
|
* `office_integration_available` (boolean): Allow users to use Office for the web?
|
276
|
+
* `oncehub_link` (string): Link to scheduling a meeting with our Sales team
|
273
277
|
* `opt_out_global` (boolean): Use servers in the USA only?
|
274
278
|
* `overage_notified_at` (date-time): Last time the site was notified about an overage
|
275
279
|
* `overage_notify` (boolean): Notify site email of overages?
|
@@ -9,6 +9,11 @@ module Files
|
|
9
9
|
@options = options || {}
|
10
10
|
end
|
11
11
|
|
12
|
+
# int64 - Event ID
|
13
|
+
def id
|
14
|
+
@attributes[:id]
|
15
|
+
end
|
16
|
+
|
12
17
|
# string - Type of event being recorded.
|
13
18
|
def event_type
|
14
19
|
@attributes[:event_type]
|
@@ -58,5 +63,21 @@ module Files
|
|
58
63
|
def self.all(params = {}, options = {})
|
59
64
|
list(params, options)
|
60
65
|
end
|
66
|
+
|
67
|
+
# Parameters:
|
68
|
+
# id (required) - int64 - External Event ID.
|
69
|
+
def self.find(id, params = {}, options = {})
|
70
|
+
params ||= {}
|
71
|
+
params[:id] = id
|
72
|
+
raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
|
73
|
+
raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
|
74
|
+
|
75
|
+
response, options = Api.send_request("/external_events/#{params[:id]}", :get, params, options)
|
76
|
+
ExternalEvent.new(response.data, options)
|
77
|
+
end
|
78
|
+
|
79
|
+
def self.get(id, params = {}, options = {})
|
80
|
+
find(id, params, options)
|
81
|
+
end
|
61
82
|
end
|
62
83
|
end
|
@@ -99,6 +99,11 @@ module Files
|
|
99
99
|
@attributes[:color2_top_text]
|
100
100
|
end
|
101
101
|
|
102
|
+
# string - Site main contact name
|
103
|
+
def contact_name
|
104
|
+
@attributes[:contact_name]
|
105
|
+
end
|
106
|
+
|
102
107
|
# date-time - Time this site was created
|
103
108
|
def created_at
|
104
109
|
@attributes[:created_at]
|
@@ -334,6 +339,11 @@ module Files
|
|
334
339
|
@attributes[:office_integration_available]
|
335
340
|
end
|
336
341
|
|
342
|
+
# string - Link to scheduling a meeting with our Sales team
|
343
|
+
def oncehub_link
|
344
|
+
@attributes[:oncehub_link]
|
345
|
+
end
|
346
|
+
|
337
347
|
# boolean - Use servers in the USA only?
|
338
348
|
def opt_out_global
|
339
349
|
@attributes[:opt_out_global]
|
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.172
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|