brick_ftp 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f72f787154323bf71db253479add1ae727d50dc
4
- data.tar.gz: c4cef1a4a3144b8335b08434b2f7a624d5f98ca2
3
+ metadata.gz: 79ccc04291b5b8b7f7f51257f844ee9061d11221
4
+ data.tar.gz: 5dc14fa8240e3242aeac9f613760e1b28dd442df
5
5
  SHA512:
6
- metadata.gz: e3d30929cf2fabbac4b340f739b3b78491df2f3186f42392fae5c7d8afbe15aabe97f7623cde45c5e54f8b3cd3a83f434aad5bcdccf28ad6946033f99e0f2014
7
- data.tar.gz: f601b717e76175f5de9af387d4fd65d2ec63a3c910779c16f3cbfc8ad0245931e4b770f43ce69d3fd103092c34df15877da5889cc5329645feade3abd26a0dec
6
+ metadata.gz: d74ddc3854f64857abb6ee9655883df0f48c964a472f430be09c5fca4c6885ea4c20b0467f708606f1fd0ffc8a1263c0ff96c5504d050025278993487cbfec3b
7
+ data.tar.gz: cc6eb4f0ef1b66cd33b05383f0225b485445da9d1c76562456ea2b794bdac2ca60b986ef77f554a049748e2ddf8129634f026f2a7397cdb300d75e4829d25954
data/lib/brick_ftp.rb CHANGED
@@ -32,6 +32,7 @@ require 'brick_ftp/api/file_operation'
32
32
  require 'brick_ftp/api/file_operation/move'
33
33
  require 'brick_ftp/api/file_operation/copy'
34
34
  require 'brick_ftp/api/file_operation/upload'
35
+ require 'brick_ftp/api/site_usage'
35
36
 
36
37
  module BrickFTP
37
38
  # Return configuration.
@@ -0,0 +1,21 @@
1
+ module BrickFTP
2
+ module API
3
+ class SiteUsage < Base
4
+ endpoint :get, :show, '/api/rest/v1/site/usage'
5
+
6
+ attribute :id
7
+ attribute :live_current_storage
8
+ attribute :current_storage
9
+ attribute :usage_by_top_level_dir
10
+ attribute :high_water_storage
11
+ attribute :start_at
12
+ attribute :end_at
13
+ attribute :created_at
14
+ attribute :updated_at
15
+
16
+ def self.find
17
+ super('')
18
+ end
19
+ end
20
+ end
21
+ end
@@ -356,5 +356,11 @@ module BrickFTP
356
356
  def upload_file(path:, source:)
357
357
  BrickFTP::API::FileOperation::Upload.create(path: path, source: source)
358
358
  end
359
+
360
+ # Get usage of site.
361
+ # @return [BrickFTP::API::SiteUsage]
362
+ def site_usage
363
+ BrickFTP::API::SiteUsage.find
364
+ end
359
365
  end
360
366
  end
@@ -1,3 +1,3 @@
1
1
  module BrickFTP
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick_ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - koshigoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-18 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -151,6 +151,7 @@ files:
151
151
  - lib/brick_ftp/api/notification.rb
152
152
  - lib/brick_ftp/api/permission.rb
153
153
  - lib/brick_ftp/api/public_key.rb
154
+ - lib/brick_ftp/api/site_usage.rb
154
155
  - lib/brick_ftp/api/user.rb
155
156
  - lib/brick_ftp/api_component.rb
156
157
  - lib/brick_ftp/api_definition.rb