aptible-api 1.2.4 → 1.2.9

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: be1c6053f997574827fdcfb296226ff27099004d6c41f518e9af1282289aa6be
4
- data.tar.gz: 5358305b1616321c836cccbe74e59510f6d47f5075f5ab36cfa80bd01b9b34b8
3
+ metadata.gz: 4d45dbf78f9771684f979b469bd94e8f2444bbff4b19863437be133f2e92207c
4
+ data.tar.gz: e85c69495e8a7ea878ee78afb1911c6f75738c9fcc6e7db3cd79a2751ee71647
5
5
  SHA512:
6
- metadata.gz: 482ba8b83dc939813695cd27715767741a67fdc14920e0b152e53ee1aa9b05263762e130e973e88b13a00933c6d9cfc9afe85989e8621647c1d3f48c8663ecad
7
- data.tar.gz: 5aeaaef8f892b287f45ed953e6e0a54d765c6467bf58aed2d4e33379686c8c2cda12724c94b066e7cf647c24392de3e1fb71ba9c75be43f13d0d9448da5f70f7
6
+ metadata.gz: ddd63f37cd1a6f44133339e93db277ff1fd5a52397c45c0ff84122b5655c3609b82e805f196ef43e543395f5e1ae39d17ac02cf6bff1d8e52260a491eff0aeef
7
+ data.tar.gz: 34c95376e82643160e4fe94e8c5b9066faa278e0c1fefd7a51cc0b6b12b3441c05e94f025cc6f4ec51550cb2ef81eed8d8a9dfa500f8092b273a0ec716734361
@@ -31,6 +31,8 @@ module Aptible
31
31
  field :gentlemanjerry_certificate
32
32
  field :gentlemanjerry_docker_name
33
33
  field :gentlemanjerry_instance_id
34
+ field :ca_body
35
+ field :ca_private_key
34
36
 
35
37
  def production?
36
38
  type == 'production'
@@ -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
@@ -19,6 +20,7 @@ module Aptible
19
20
  field :created_at, type: Time
20
21
  field :updated_at, type: Time
21
22
  field :status
23
+ field :deployment_method
22
24
 
23
25
  def provisioned?
24
26
  status == 'provisioned'
@@ -0,0 +1,19 @@
1
+ module Aptible
2
+ module Api
3
+ class AwsInstance < Resource
4
+ belongs_to :stack
5
+ belongs_to :ami
6
+ has_many :operations
7
+ embeds_many :databases
8
+
9
+ field :id
10
+ field :instance_id
11
+ field :instance_type
12
+ field :availability_zone
13
+ field :name
14
+ field :layers
15
+ field :created_at, type: Time
16
+ field :updated_at, type: Time
17
+ end
18
+ end
19
+ end
@@ -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
@@ -3,8 +3,9 @@ require 'aptible/auth'
3
3
  module Aptible
4
4
  module Api
5
5
  class Operation < Resource
6
- belongs_to :account
7
6
  belongs_to :resource
7
+ belongs_to :account
8
+ belongs_to :destination_account
8
9
 
9
10
  has_many :ssh_portal_connections
10
11
  has_many :ephemeral_sessions
@@ -25,7 +26,6 @@ module Aptible
25
26
  field :command
26
27
  field :destination_region
27
28
  field :interactive
28
- belongs_to :destination_account
29
29
  field :user_name
30
30
  field :user_email
31
31
  field :immediate
@@ -15,7 +15,10 @@ 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'
21
+ require 'aptible/api/aws_instance'
19
22
  require 'aptible/api/backup'
20
23
  require 'aptible/api/certificate'
21
24
  require 'aptible/api/configuration'
@@ -1,6 +1,8 @@
1
1
  module Aptible
2
2
  module Api
3
3
  class Stack < Resource
4
+ has_many :aws_instances
5
+
4
6
  field :id
5
7
  field :type
6
8
  field :name
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.2.4'.freeze
3
+ VERSION = '1.2.9'.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.4
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-16 00:00:00.000000000 Z
11
+ date: 2021-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-auth
@@ -184,7 +184,10 @@ 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
190
+ - lib/aptible/api/aws_instance.rb
188
191
  - lib/aptible/api/backup.rb
189
192
  - lib/aptible/api/backup_retention_policy.rb
190
193
  - lib/aptible/api/certificate.rb