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 +4 -4
- data/lib/aptible/api/account.rb +2 -0
- data/lib/aptible/api/ami.rb +13 -0
- data/lib/aptible/api/ami_release.rb +13 -0
- data/lib/aptible/api/app.rb +2 -0
- data/lib/aptible/api/aws_instance.rb +19 -0
- data/lib/aptible/api/database.rb +1 -0
- data/lib/aptible/api/operation.rb +2 -2
- data/lib/aptible/api/resource.rb +3 -0
- data/lib/aptible/api/stack.rb +2 -0
- data/lib/aptible/api/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d45dbf78f9771684f979b469bd94e8f2444bbff4b19863437be133f2e92207c
|
4
|
+
data.tar.gz: e85c69495e8a7ea878ee78afb1911c6f75738c9fcc6e7db3cd79a2751ee71647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddd63f37cd1a6f44133339e93db277ff1fd5a52397c45c0ff84122b5655c3609b82e805f196ef43e543395f5e1ae39d17ac02cf6bff1d8e52260a491eff0aeef
|
7
|
+
data.tar.gz: 34c95376e82643160e4fe94e8c5b9066faa278e0c1fefd7a51cc0b6b12b3441c05e94f025cc6f4ec51550cb2ef81eed8d8a9dfa500f8092b273a0ec716734361
|
data/lib/aptible/api/account.rb
CHANGED
data/lib/aptible/api/app.rb
CHANGED
@@ -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
|
data/lib/aptible/api/database.rb
CHANGED
@@ -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
|
data/lib/aptible/api/resource.rb
CHANGED
@@ -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'
|
data/lib/aptible/api/stack.rb
CHANGED
data/lib/aptible/api/version.rb
CHANGED
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
|
+
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:
|
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
|