aptible-api 0.8.4 → 0.9.0

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
  SHA1:
3
- metadata.gz: aef2058361d687074c6d7b765ec7245d76104448
4
- data.tar.gz: db280d818f72c042401e2241150ce80635a20d0c
3
+ metadata.gz: d7550400e69d250a3c3fdea466423fcb2c5ec19b
4
+ data.tar.gz: 95e0534ea311ea0f009a5a33d905bf46af4d01b1
5
5
  SHA512:
6
- metadata.gz: 5742db753b03fe319c62ae508f7e22b5f739992699015893e32adb76a07c1d99e93952598f8a8238273e2d49c39b9b5ab9724a5bc356299e4ef1fc375ee1018c
7
- data.tar.gz: 1532e18f22bbc666ca6a8dee2b4cc4679d29bcdd8f402d950d4af5e2b3004813220e991f244f6a0ef26857d979d2e267fe601143f32896bfb87f37b45329c838
6
+ metadata.gz: 3055622758d51127006460c90589ef9352c8bbde76afbca9687452a7cf83b83b2ddb257e64384035e7bf4a357ec9ea30ad5a8b101a86ffb5ed4bb6a4e3d433da
7
+ data.tar.gz: 5c70785f2ab73c91ee37d9ab2f9bd6c08c1de7b2aae6aaf4e31dad4530adb69bf9fb89ff7c9fc09e3d72850fa443e3f14ec1761ea7e129ac449c2a1fc948441a
@@ -5,6 +5,7 @@ module Aptible
5
5
  module Api
6
6
  class Account < Resource
7
7
  has_many :apps
8
+ has_many :backups
8
9
  has_many :certificates
9
10
  has_many :databases
10
11
  has_many :disks
@@ -0,0 +1,15 @@
1
+ module Aptible
2
+ module Api
3
+ class Backup < Resource
4
+ belongs_to :account
5
+ belongs_to :database
6
+ has_many :operations
7
+
8
+ field :id
9
+ field :aws_snapshot_id
10
+ field :aws_region
11
+ field :created_at, type: Time
12
+ field :updated_at, type: Time
13
+ end
14
+ end
15
+ end
@@ -6,6 +6,7 @@ module Aptible
6
6
  embeds_one :disk
7
7
  has_one :service
8
8
  has_many :operations
9
+ has_many :backups
9
10
 
10
11
  field :id
11
12
  field :handle
@@ -16,6 +16,7 @@ end
16
16
 
17
17
  require 'aptible/api/account'
18
18
  require 'aptible/api/app'
19
+ require 'aptible/api/backup'
19
20
  require 'aptible/api/certificate'
20
21
  require 'aptible/api/configuration'
21
22
  require 'aptible/api/container'
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '0.8.4'
3
+ VERSION = '0.9.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-resource
@@ -198,6 +198,7 @@ files:
198
198
  - lib/aptible/api/account.rb
199
199
  - lib/aptible/api/agent.rb
200
200
  - lib/aptible/api/app.rb
201
+ - lib/aptible/api/backup.rb
201
202
  - lib/aptible/api/certificate.rb
202
203
  - lib/aptible/api/configuration.rb
203
204
  - lib/aptible/api/container.rb