aptible-api 1.2.13 → 1.2.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/api/aws_instance.rb +8 -1
- data/lib/aptible/api/instance_layer_membership.rb +2 -0
- data/lib/aptible/api/log_drain.rb +5 -1
- data/lib/aptible/api/log_drain_backend.rb +17 -0
- data/lib/aptible/api/operation.rb +2 -0
- data/lib/aptible/api/resource.rb +1 -0
- data/lib/aptible/api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e221c4079ecd99cac13848e82c578dd900e66c64dc9d4d51eb8360de1bd74bbb
|
4
|
+
data.tar.gz: 50dba7afd79d223e4d5bfdaddf895b7026b9dcafaf6ee4d47f1d107a9e79f268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ca505dc67980c8e0aa538f607453f65cecffded03387ee4455a2b063a749165590c8d9f7625ee1dba8a1ee6fa030b6a0e6455c652fcd3ea349bd116e84894dc
|
7
|
+
data.tar.gz: 81212840ea5ad15d9452c5812ce00679b4dd4b8800affa7fb1d945a858384d05fc947f0ceb1eb0f3ac0b79c3d0fd8de9fbe8c3db447cac80fa3201a3b7ea81bd
|
@@ -5,7 +5,7 @@ module Aptible
|
|
5
5
|
belongs_to :ami
|
6
6
|
has_many :operations
|
7
7
|
has_many :instance_layer_memberships
|
8
|
-
|
8
|
+
has_many :databases
|
9
9
|
|
10
10
|
field :id
|
11
11
|
field :instance_id
|
@@ -13,8 +13,15 @@ module Aptible
|
|
13
13
|
field :availability_zone
|
14
14
|
field :name
|
15
15
|
field :status
|
16
|
+
field :kernel_version
|
17
|
+
field :os_version
|
18
|
+
field :docker_version
|
19
|
+
field :runtime_data
|
20
|
+
field :deprovisionable, type: Aptible::Resource::Boolean
|
16
21
|
field :created_at, type: Time
|
17
22
|
field :updated_at, type: Time
|
23
|
+
field :retain_until, type: Time
|
24
|
+
field :runtime_published_at, type: Time
|
18
25
|
|
19
26
|
def stack_layers
|
20
27
|
instance_layer_memberships.map(&:links)
|
@@ -6,9 +6,13 @@ module Aptible
|
|
6
6
|
has_many :operations
|
7
7
|
has_many :containers
|
8
8
|
|
9
|
+
# Temporary until deploy-api renames this field
|
10
|
+
embeds_one :new_backend
|
11
|
+
# Necessary to avoid downtime when new_backend becomes backend
|
12
|
+
embeds_one :backend
|
13
|
+
|
9
14
|
field :id
|
10
15
|
field :handle
|
11
|
-
field :backend
|
12
16
|
field :drain_type
|
13
17
|
field :drain_host
|
14
18
|
field :drain_port
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Aptible
|
2
|
+
module Api
|
3
|
+
class LogDrainBackend < Resource
|
4
|
+
has_many :log_drains
|
5
|
+
|
6
|
+
field :id
|
7
|
+
field :current, type: Aptible::Resource::Boolean
|
8
|
+
field :channel
|
9
|
+
field :gentlemanjerry_image
|
10
|
+
field :gentlemanjerry_tag
|
11
|
+
field :joecool_image
|
12
|
+
field :joecool_tag
|
13
|
+
field :created_at, type: Time
|
14
|
+
field :updated_at, type: Time
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -29,8 +29,10 @@ module Aptible
|
|
29
29
|
field :user_name
|
30
30
|
field :user_email
|
31
31
|
field :immediate
|
32
|
+
field :stack_settings
|
32
33
|
field :created_at, type: Time
|
33
34
|
field :updated_at, type: Time
|
35
|
+
field :instance_profile
|
34
36
|
|
35
37
|
def user
|
36
38
|
auth = Aptible::Auth::User.new(token: token, headers: headers)
|
data/lib/aptible/api/resource.rb
CHANGED
@@ -29,6 +29,7 @@ require 'aptible/api/disk'
|
|
29
29
|
require 'aptible/api/image'
|
30
30
|
require 'aptible/api/instance_layer_membership'
|
31
31
|
require 'aptible/api/log_drain'
|
32
|
+
require 'aptible/api/log_drain_backend'
|
32
33
|
require 'aptible/api/operation'
|
33
34
|
require 'aptible/api/permission'
|
34
35
|
require 'aptible/api/release'
|
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.17
|
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-
|
11
|
+
date: 2021-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aptible-auth
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- lib/aptible/api/image.rb
|
203
203
|
- lib/aptible/api/instance_layer_membership.rb
|
204
204
|
- lib/aptible/api/log_drain.rb
|
205
|
+
- lib/aptible/api/log_drain_backend.rb
|
205
206
|
- lib/aptible/api/metric_drain.rb
|
206
207
|
- lib/aptible/api/operation.rb
|
207
208
|
- lib/aptible/api/permission.rb
|
@@ -238,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
239
|
- !ruby/object:Gem::Version
|
239
240
|
version: '0'
|
240
241
|
requirements: []
|
241
|
-
rubygems_version: 3.0.
|
242
|
+
rubygems_version: 3.0.3
|
242
243
|
signing_key:
|
243
244
|
specification_version: 4
|
244
245
|
summary: Ruby client for api.aptible.com
|