files.com 1.0.146 → 1.0.147

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e03f466a5dda5e9e54d15fdbd0d73bab1004b5381a4265f0e0a70c0a04fa546
4
- data.tar.gz: 21beac2eff34e959ef704dbee593702f7f50304a5fa0fdb5c60d3a75378b90ba
3
+ metadata.gz: 5ff882920d191b3e5b7735eac44e2c0cf49de08d38bd7de88599d162f387e15a
4
+ data.tar.gz: ba1b8f635412dd1347ae7888f7786cec95f7a51dca98407834e40dc2be6ab9bf
5
5
  SHA512:
6
- metadata.gz: ff7a8fe30649bbdc09c6250cc44c080c4656059cd6e3677127c226267384d35c9cf14fdedd90630ad47558fa417b18490d3c235358d66361b2c9b1c6048b6d29
7
- data.tar.gz: 79bdd6986dde71dcaabd4965b18d6a38595a36e38ed2636e8376dc1c98813491e617bd893f925c22a6d8b1ab6fc09a1be3caae9b6235f0a14153f2dc488d01e6
6
+ metadata.gz: d9a30e50de3d17daa4268f3dd1b488a85c130490f8c1255e0662715a604d23d2b164c7ba3821b83248b53bf0504f7d54dc2e9eafbfb6d7be8d8a83f7a2ea75ce
7
+ data.tar.gz: 70d58ca954bd501b98412cadac8eb78de9442f0c03cd53f37acc0ad3dcf313ac34cb466bfdfc7927dc02b75104b81eb11dff0931f4a28ed0682eeaf4c321846a
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.146
1
+ 1.0.147
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
@@ -74,13 +74,5 @@ Files::Session.create(
74
74
  ## Delete user session (log out)
75
75
 
76
76
  ```
77
- Files::Session.delete(
78
- format: "",
79
- session: ""
80
- )
77
+ Files::Session.delete
81
78
  ```
82
-
83
- ### Parameters
84
-
85
- * `format` (string):
86
- * `session` (object):
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.146
4
+ version: 1.0.147
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 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable