files.com 1.0.152 → 1.0.153
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/api_key.md +2 -18
- data/docs/session.md +1 -9
- data/docs/site.md +2 -18
- data/lib/files.com/models/api_key.rb +0 -12
- data/lib/files.com/models/session.rb +0 -6
- data/lib/files.com/models/site.rb +0 -12
- 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: 28523a4c4682607284945a68a641740c5aca7296198a31c433b52b581bd85024
|
4
|
+
data.tar.gz: f4963e7b92698c9e45e0ee6728d290b37d3e93afc9b0142ba6b735bb4178ba3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e46d87ea687b2a4e392c635dc8f3ff90cff9ec2e0f31b5fdcc5a57c73246e7699031fca4f014905dbe5ac04cd1a30b9f51d68041dcd0d15311efc99d40df45c1
|
7
|
+
data.tar.gz: 4330b4f76272d153b35d1329ebc875dace28a89c18298c67ae187c866ee4ad13987e932f7f2a060592d3d72d2dc167fb37d5fc95530753b925168d55d9267ac7
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.153
|
data/docs/api_key.md
CHANGED
@@ -61,17 +61,9 @@ 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
|
65
|
-
format: "",
|
66
|
-
api_key: ""
|
67
|
-
)
|
64
|
+
Files::ApiKey.find_current
|
68
65
|
```
|
69
66
|
|
70
|
-
### Parameters
|
71
|
-
|
72
|
-
* `format` (string):
|
73
|
-
* `api_key` (object):
|
74
|
-
|
75
67
|
|
76
68
|
---
|
77
69
|
|
@@ -153,17 +145,9 @@ Files::ApiKey.update(id,
|
|
153
145
|
## Delete current API key. (Requires current API connection to be using an API key.)
|
154
146
|
|
155
147
|
```
|
156
|
-
Files::ApiKey.delete_current
|
157
|
-
format: "",
|
158
|
-
api_key: ""
|
159
|
-
)
|
148
|
+
Files::ApiKey.delete_current
|
160
149
|
```
|
161
150
|
|
162
|
-
### Parameters
|
163
|
-
|
164
|
-
* `format` (string):
|
165
|
-
* `api_key` (object):
|
166
|
-
|
167
151
|
|
168
152
|
---
|
169
153
|
|
data/docs/session.md
CHANGED
data/docs/site.md
CHANGED
@@ -324,34 +324,18 @@
|
|
324
324
|
## Show site settings
|
325
325
|
|
326
326
|
```
|
327
|
-
Files::Site.get
|
328
|
-
format: "",
|
329
|
-
site: ""
|
330
|
-
)
|
327
|
+
Files::Site.get
|
331
328
|
```
|
332
329
|
|
333
|
-
### Parameters
|
334
|
-
|
335
|
-
* `format` (string):
|
336
|
-
* `site` (object):
|
337
|
-
|
338
330
|
|
339
331
|
---
|
340
332
|
|
341
333
|
## Get the most recent usage snapshot (usage data for billing purposes) for a Site
|
342
334
|
|
343
335
|
```
|
344
|
-
Files::Site.get_usage
|
345
|
-
format: "",
|
346
|
-
site: ""
|
347
|
-
)
|
336
|
+
Files::Site.get_usage
|
348
337
|
```
|
349
338
|
|
350
|
-
### Parameters
|
351
|
-
|
352
|
-
* `format` (string):
|
353
|
-
* `site` (object):
|
354
|
-
|
355
339
|
|
356
340
|
---
|
357
341
|
|
@@ -176,13 +176,7 @@ module Files
|
|
176
176
|
list(params, options)
|
177
177
|
end
|
178
178
|
|
179
|
-
# Parameters:
|
180
|
-
# format - string
|
181
|
-
# api_key - object
|
182
179
|
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
|
-
|
186
180
|
response, options = Api.send_request("/api_key", :get, params, options)
|
187
181
|
ApiKey.new(response.data, options)
|
188
182
|
end
|
@@ -250,13 +244,7 @@ module Files
|
|
250
244
|
ApiKey.new(response.data, options)
|
251
245
|
end
|
252
246
|
|
253
|
-
# Parameters:
|
254
|
-
# format - string
|
255
|
-
# api_key - object
|
256
247
|
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
|
-
|
260
248
|
response, _options = Api.send_request("/api_key", :delete, params, options)
|
261
249
|
response.data
|
262
250
|
end
|
@@ -235,13 +235,7 @@ module Files
|
|
235
235
|
Session.new(response.data, options)
|
236
236
|
end
|
237
237
|
|
238
|
-
# Parameters:
|
239
|
-
# format - string
|
240
|
-
# session - object
|
241
238
|
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
|
-
|
245
239
|
response, _options = Api.send_request("/sessions", :delete, params, options)
|
246
240
|
response.data
|
247
241
|
end
|
@@ -574,24 +574,12 @@ module Files
|
|
574
574
|
@attributes[:disable_users_from_inactivity_period_days]
|
575
575
|
end
|
576
576
|
|
577
|
-
# Parameters:
|
578
|
-
# format - string
|
579
|
-
# site - object
|
580
577
|
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
|
-
|
584
578
|
response, options = Api.send_request("/site", :get, params, options)
|
585
579
|
Site.new(response.data, options)
|
586
580
|
end
|
587
581
|
|
588
|
-
# Parameters:
|
589
|
-
# format - string
|
590
|
-
# site - object
|
591
582
|
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
|
-
|
595
583
|
response, options = Api.send_request("/site/usage", :get, params, options)
|
596
584
|
UsageSnapshot.new(response.data, options)
|
597
585
|
end
|
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.153
|
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-03-
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|