files.com 1.0.147 → 1.0.148
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/api_key.md +18 -2
- data/docs/session.md +9 -1
- data/docs/site.md +18 -2
- data/lib/files.com/models/api_key.rb +12 -0
- data/lib/files.com/models/session.rb +6 -0
- data/lib/files.com/models/site.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91969c32f2739e80ba36afcb84573c5356fea023cec6640609365e2c50c81a52
|
4
|
+
data.tar.gz: dcd7764d961cef3ed70baa4e066a1c1162886e4d1ac1f73ae4deb3564ac4d662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6726b3c67fc2d344f824717033a344b0b1e24fdf42d49666d7ca26d6b566656e5d2f1d7bce39082395b0c6d07572ae6bf9b697424b6887e9845b24ebf4cf8536
|
7
|
+
data.tar.gz: 4097f21d68b4d49e2f9d180ac37f927c7902abde37abe1a81a8597e009a3cdb10d0fb5df4746b107728a46f7cecef9bca28b097d2301e4e50f1953a73dfdde85
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.148
|
data/docs/api_key.md
CHANGED
@@ -61,9 +61,17 @@ Files::ApiKey.list(
|
|
61
61
|
## Show information about current API key. (Requires current API connection to be using an API key.)
|
62
62
|
|
63
63
|
```
|
64
|
-
Files::ApiKey.find_current
|
64
|
+
Files::ApiKey.find_current(
|
65
|
+
format: "",
|
66
|
+
api_key: ""
|
67
|
+
)
|
65
68
|
```
|
66
69
|
|
70
|
+
### Parameters
|
71
|
+
|
72
|
+
* `format` (string):
|
73
|
+
* `api_key` (object):
|
74
|
+
|
67
75
|
|
68
76
|
---
|
69
77
|
|
@@ -145,9 +153,17 @@ Files::ApiKey.update(id,
|
|
145
153
|
## Delete current API key. (Requires current API connection to be using an API key.)
|
146
154
|
|
147
155
|
```
|
148
|
-
Files::ApiKey.delete_current
|
156
|
+
Files::ApiKey.delete_current(
|
157
|
+
format: "",
|
158
|
+
api_key: ""
|
159
|
+
)
|
149
160
|
```
|
150
161
|
|
162
|
+
### Parameters
|
163
|
+
|
164
|
+
* `format` (string):
|
165
|
+
* `api_key` (object):
|
166
|
+
|
151
167
|
|
152
168
|
---
|
153
169
|
|
data/docs/session.md
CHANGED
data/docs/site.md
CHANGED
@@ -324,18 +324,34 @@
|
|
324
324
|
## Show site settings
|
325
325
|
|
326
326
|
```
|
327
|
-
Files::Site.get
|
327
|
+
Files::Site.get(
|
328
|
+
format: "",
|
329
|
+
site: ""
|
330
|
+
)
|
328
331
|
```
|
329
332
|
|
333
|
+
### Parameters
|
334
|
+
|
335
|
+
* `format` (string):
|
336
|
+
* `site` (object):
|
337
|
+
|
330
338
|
|
331
339
|
---
|
332
340
|
|
333
341
|
## Get the most recent usage snapshot (usage data for billing purposes) for a Site
|
334
342
|
|
335
343
|
```
|
336
|
-
Files::Site.get_usage
|
344
|
+
Files::Site.get_usage(
|
345
|
+
format: "",
|
346
|
+
site: ""
|
347
|
+
)
|
337
348
|
```
|
338
349
|
|
350
|
+
### Parameters
|
351
|
+
|
352
|
+
* `format` (string):
|
353
|
+
* `site` (object):
|
354
|
+
|
339
355
|
|
340
356
|
---
|
341
357
|
|
@@ -176,7 +176,13 @@ module Files
|
|
176
176
|
list(params, options)
|
177
177
|
end
|
178
178
|
|
179
|
+
# Parameters:
|
180
|
+
# format - string
|
181
|
+
# api_key - object
|
179
182
|
def self.find_current(params = {}, options = {})
|
183
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
184
|
+
raise InvalidParameterError.new("Bad parameter: api_key must be an Hash") if params.dig(:api_key) and !params.dig(:api_key).is_a?(Hash)
|
185
|
+
|
180
186
|
response, options = Api.send_request("/api_key", :get, params, options)
|
181
187
|
ApiKey.new(response.data, options)
|
182
188
|
end
|
@@ -244,7 +250,13 @@ module Files
|
|
244
250
|
ApiKey.new(response.data, options)
|
245
251
|
end
|
246
252
|
|
253
|
+
# Parameters:
|
254
|
+
# format - string
|
255
|
+
# api_key - object
|
247
256
|
def self.delete_current(params = {}, options = {})
|
257
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
258
|
+
raise InvalidParameterError.new("Bad parameter: api_key must be an Hash") if params.dig(:api_key) and !params.dig(:api_key).is_a?(Hash)
|
259
|
+
|
248
260
|
response, _options = Api.send_request("/api_key", :delete, params, options)
|
249
261
|
response.data
|
250
262
|
end
|
@@ -235,7 +235,13 @@ module Files
|
|
235
235
|
Session.new(response.data, options)
|
236
236
|
end
|
237
237
|
|
238
|
+
# Parameters:
|
239
|
+
# format - string
|
240
|
+
# session - object
|
238
241
|
def self.delete(params = {}, options = {})
|
242
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
243
|
+
raise InvalidParameterError.new("Bad parameter: session must be an Hash") if params.dig(:session) and !params.dig(:session).is_a?(Hash)
|
244
|
+
|
239
245
|
response, _options = Api.send_request("/sessions", :delete, params, options)
|
240
246
|
response.data
|
241
247
|
end
|
@@ -574,12 +574,24 @@ module Files
|
|
574
574
|
@attributes[:disable_users_from_inactivity_period_days]
|
575
575
|
end
|
576
576
|
|
577
|
+
# Parameters:
|
578
|
+
# format - string
|
579
|
+
# site - object
|
577
580
|
def self.get(params = {}, options = {})
|
581
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
582
|
+
raise InvalidParameterError.new("Bad parameter: site must be an Hash") if params.dig(:site) and !params.dig(:site).is_a?(Hash)
|
583
|
+
|
578
584
|
response, options = Api.send_request("/site", :get, params, options)
|
579
585
|
Site.new(response.data, options)
|
580
586
|
end
|
581
587
|
|
588
|
+
# Parameters:
|
589
|
+
# format - string
|
590
|
+
# site - object
|
582
591
|
def self.get_usage(params = {}, options = {})
|
592
|
+
raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
|
593
|
+
raise InvalidParameterError.new("Bad parameter: site must be an Hash") if params.dig(:site) and !params.dig(:site).is_a?(Hash)
|
594
|
+
|
583
595
|
response, options = Api.send_request("/site/usage", :get, params, options)
|
584
596
|
UsageSnapshot.new(response.data, options)
|
585
597
|
end
|