aptible-api 1.2.7 → 1.2.12

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: a602f5d0c2dfd391f197175c33805d57c1ea82162cc53dd59bb7074ab886f667
4
- data.tar.gz: 61779ef2bea4ea0eae1f0d16044d7bc50ba964e85ea868247e336678653117ee
3
+ metadata.gz: cd4de766f468b353f1832390ef3a198c38ab58d7e89ce5ca5eae20f29cdad866
4
+ data.tar.gz: 17a39ba6a14e52acf66be88431cabcae78160f7c13581386e02759c85cb70099
5
5
  SHA512:
6
- metadata.gz: 198c3d6939f0ecd108efb769f026a23799c108b88a0cabacdf4586d9563d6781680013b304096aeaa7a6f44f2679398846b9ec27c6f03a3832bd98c147f44c35
7
- data.tar.gz: 38afa63d8f31f8c576bd4b8c8ae10de16d0415c0d4448f62e69829b137ecffe3111cf247c94d3d0e1e57b6b981ca028c53d229720be9cf11823640add5b4d02f
6
+ metadata.gz: c6ece0d1f34d21f8976df897d9f40935366038c7d65540e1de1df0fa46ef49180cd976b922f248eb9f549c394e6c64f2d1513a7dc84d61c564e4aeec873f64e6
7
+ data.tar.gz: 789b6d60b712f5632ef737132ae68b2f9c4a0ae858da271abc62e7fabf76903f55ab03f92320727753b94b1f5c103ca180c044c5ca88f68669d0fe56a68c40c2
@@ -0,0 +1,13 @@
1
+ module Aptible
2
+ module Api
3
+ class Ami < Resource
4
+ belongs_to :ami_release
5
+
6
+ field :id
7
+ field :ami_id
8
+ field :region
9
+ field :created_at, type: Time
10
+ field :updated_at, type: Time
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ module Aptible
2
+ module Api
3
+ class AmiRelease < Resource
4
+ embeds_many :amis
5
+
6
+ field :id
7
+ field :channel
8
+ field :current, type: Aptible::Resource::Boolean
9
+ field :created_at, type: Time
10
+ field :updated_at, type: Time
11
+ end
12
+ end
13
+ end
@@ -11,6 +11,7 @@ module Aptible
11
11
  has_many :operations
12
12
  has_many :vhosts
13
13
  has_many :ephemeral_sessions
14
+ has_many :aws_instances
14
15
  embeds_many :services
15
16
 
16
17
  field :id
@@ -2,16 +2,17 @@ module Aptible
2
2
  module Api
3
3
  class AwsInstance < Resource
4
4
  belongs_to :stack
5
+ belongs_to :ami
5
6
  has_many :operations
6
7
  embeds_many :databases
7
8
 
8
9
  field :id
9
10
  field :instance_id
10
- field :ami
11
11
  field :instance_type
12
12
  field :availability_zone
13
13
  field :name
14
14
  field :layers
15
+ field :status
15
16
  field :created_at, type: Time
16
17
  field :updated_at, type: Time
17
18
  end
@@ -4,8 +4,9 @@ module Aptible
4
4
  belongs_to :account
5
5
  belongs_to :database
6
6
  belongs_to :database_image
7
- has_many :operations
7
+ belongs_to :created_from_operation
8
8
 
9
+ has_many :operations
9
10
  has_one :copied_from
10
11
  has_many :copies
11
12
 
@@ -12,6 +12,7 @@ module Aptible
12
12
  has_many :backups
13
13
  has_many :dependents
14
14
  has_many :configurations
15
+ has_many :aws_instances
15
16
  embeds_many :database_credentials
16
17
 
17
18
  field :id
@@ -8,6 +8,7 @@ module Aptible
8
8
 
9
9
  field :id
10
10
  field :handle
11
+ field :backend
11
12
  field :drain_type
12
13
  field :drain_host
13
14
  field :drain_port
@@ -15,6 +15,8 @@ module Aptible
15
15
  end
16
16
 
17
17
  require 'aptible/api/account'
18
+ require 'aptible/api/ami'
19
+ require 'aptible/api/ami_release'
18
20
  require 'aptible/api/app'
19
21
  require 'aptible/api/aws_instance'
20
22
  require 'aptible/api/backup'
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.2.7'.freeze
3
+ VERSION = '1.2.12'.freeze
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: 1.2.7
4
+ version: 1.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-auth
@@ -184,6 +184,8 @@ files:
184
184
  - lib/aptible/api.rb
185
185
  - lib/aptible/api/account.rb
186
186
  - lib/aptible/api/agent.rb
187
+ - lib/aptible/api/ami.rb
188
+ - lib/aptible/api/ami_release.rb
187
189
  - lib/aptible/api/app.rb
188
190
  - lib/aptible/api/aws_instance.rb
189
191
  - lib/aptible/api/backup.rb