aptible-api 1.2.6 → 1.2.11

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
- SHA256:
3
- metadata.gz: 11486a74413506d5253d3aa80d89010b6c59684e6b05047e7a375facce6e473d
4
- data.tar.gz: 9790aaccc3c86d4eeb67f93d053ab54dd5794a50bc78649bad4cc7a2dfbf2240
2
+ SHA1:
3
+ metadata.gz: 4753ce54a57bef68c819c495abac0227fafcc229
4
+ data.tar.gz: b59aa1f84e277df09dfc00d52aa3b961ff920292
5
5
  SHA512:
6
- metadata.gz: 56146c4e1b43e32ab1b991745a51b916c3603ee76c181c9427595ea32acde2c25298cf3b0f8f972a32e349bfc6bb23bc1ef201cbd104a85184a781e8c4636b3e
7
- data.tar.gz: 3c1462715bc56a7e2b0e925c8a7f01ee95529a1ddcea01a0e7304e8bd328c1533a0690cb4b5133912b061fb18a59278f9353a6464cb76e0f0463f240d024b3cb
6
+ metadata.gz: 72657f4b8bef68d1d8134983ff16124c7e27ee24883dc19ca33564bbd94e2477a6e42aad71204c1bea761753042588ecb0b1cc11d5549999b33f7be8bae702f5
7
+ data.tar.gz: 69aa168cf1aa856ca4cb435ece169578a4c1fc2406091fa436ee16fbbbb23140a7d87faaca6968bf58fe93b899c78640351325b21357b59c9ca2f0e75de0a756
@@ -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,15 +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
7
+ embeds_many :databases
6
8
 
7
9
  field :id
8
10
  field :instance_id
9
- field :ami
10
11
  field :instance_type
11
12
  field :availability_zone
12
13
  field :name
13
14
  field :layers
15
+ field :status
14
16
  field :created_at, type: Time
15
17
  field :updated_at, type: Time
16
18
  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
@@ -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,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.6'.freeze
3
+ VERSION = '1.2.11'.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.6
4
+ version: 1.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-19 00:00:00.000000000 Z
11
+ date: 2021-05-14 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
@@ -219,7 +221,7 @@ homepage: https://github.com/aptible/aptible-api-ruby
219
221
  licenses:
220
222
  - MIT
221
223
  metadata: {}
222
- post_install_message:
224
+ post_install_message:
223
225
  rdoc_options: []
224
226
  require_paths:
225
227
  - lib
@@ -234,8 +236,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
236
  - !ruby/object:Gem::Version
235
237
  version: '0'
236
238
  requirements: []
237
- rubygems_version: 3.0.3
238
- signing_key:
239
+ rubyforge_project:
240
+ rubygems_version: 2.4.5.5
241
+ signing_key:
239
242
  specification_version: 4
240
243
  summary: Ruby client for api.aptible.com
241
244
  test_files: