aptible-api 1.5.4 → 1.6.1

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
2
  SHA256:
3
- metadata.gz: 37f81ac26053d44e79b5e85304e4622fed77b9bee881817f8a47fbe23c43d597
4
- data.tar.gz: a83fc88bbe26d8cacfc116d8ef98a7de9a97779643c7d86e779e126cd756c1c6
3
+ metadata.gz: f8a580423a27f46ba7289476a253741a2ee541458f93f5745948f0f18db36a06
4
+ data.tar.gz: 430152741e8f84551f877c50d172686ac2fdae3ad179d594c3acd2eccbe5479c
5
5
  SHA512:
6
- metadata.gz: 93aa77093f634ba21ad26e8986b9a012e4c8a9a45240593a3c0d2c0f5b09907b80d2ba6ca4754424cfb68db778abbc8d6106c4d2ef322eabf91d7a61a5724fcb
7
- data.tar.gz: d52f7a5bc97e59fdf00d2bf64ed8a7dbd024a61f654b7ed97c01653f73645ee42f9a1a0c9ba11731ec9553abae88b6ef8f5a6cbd87ade67970d7e26d4ed5c90e
6
+ metadata.gz: 04a39825f03c9f72accf7912f8cb4b48e841878c8a8526d345b24059eb198c64b46a397d8a4638cacfd427e1278f43190bcda6ebdc3d55da3d10abcab309d121
7
+ data.tar.gz: 62e11e2decd75db7b533d407ca0dc6078775046a527c079024063d2e82d270d677455676a6c5ba342f62f734a4e36c51f7093288751ee2186946943bed14b7c2
data/.travis.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  sudo: false
2
2
 
3
3
  rvm:
4
- - "2.1"
5
- - "2.2"
4
+ - "2.1.10"
5
+ - "2.2.10"
6
6
  - "2.3"
7
7
  - "2.4"
8
8
  - "2.5"
@@ -4,6 +4,7 @@ module Aptible
4
4
  belongs_to :account
5
5
  belongs_to :current_configuration
6
6
  has_one :last_code_scan_result
7
+ has_one :current_deployment
7
8
  embeds_one :current_image
8
9
  embeds_one :last_operation
9
10
  embeds_one :last_deploy_operation
@@ -0,0 +1,25 @@
1
+ module Aptible
2
+ module Api
3
+ class Deployment < Resource
4
+ belongs_to :operation
5
+ belongs_to :app
6
+ belongs_to :configuration
7
+ belongs_to :image
8
+ belongs_to :source
9
+
10
+ field :id
11
+ field :status
12
+ field :docker_image
13
+ field :docker_repository_url
14
+ field :git_repository_url
15
+ field :git_ref
16
+ field :git_commit_sha
17
+ field :git_commit_url
18
+ field :git_commit_message
19
+ field :git_commit_timestamp
20
+
21
+ field :created_at, type: Time
22
+ field :updated_at, type: Time
23
+ end
24
+ end
25
+ end
@@ -25,6 +25,7 @@ require 'aptible/api/configuration'
25
25
  require 'aptible/api/container'
26
26
  require 'aptible/api/database'
27
27
  require 'aptible/api/database_image'
28
+ require 'aptible/api/deployment'
28
29
  require 'aptible/api/disk'
29
30
  require 'aptible/api/image'
30
31
  require 'aptible/api/instance_layer_membership'
@@ -34,6 +35,7 @@ require 'aptible/api/operation'
34
35
  require 'aptible/api/permission'
35
36
  require 'aptible/api/release'
36
37
  require 'aptible/api/service'
38
+ require 'aptible/api/source'
37
39
  require 'aptible/api/vhost'
38
40
  require 'aptible/api/ssh_portal_connection'
39
41
  require 'aptible/api/stack'
@@ -0,0 +1,16 @@
1
+ module Aptible
2
+ module Api
3
+ class Source < Resource
4
+ has_many :apps
5
+ has_many :deployments
6
+
7
+ field :id
8
+ field :organization_id
9
+ field :qualified_name
10
+ field :url
11
+
12
+ field :created_at, type: Time
13
+ field :updated_at, type: Time
14
+ end
15
+ end
16
+ end
@@ -17,6 +17,9 @@ module Aptible
17
17
  field :ssh_portal_host
18
18
  field :ssh_portal_port
19
19
  field :organization_id
20
+ field :allow_c_instance_profile
21
+ field :allow_m_instance_profile
22
+ field :allow_r_instance_profile
20
23
  field :created_at, type: Time
21
24
  field :updated_at, type: Time
22
25
 
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.5.4'.freeze
3
+ VERSION = '1.6.1'.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.5.4
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-10 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-auth
@@ -213,6 +213,7 @@ files:
213
213
  - lib/aptible/api/database.rb
214
214
  - lib/aptible/api/database_credential.rb
215
215
  - lib/aptible/api/database_image.rb
216
+ - lib/aptible/api/deployment.rb
216
217
  - lib/aptible/api/disk.rb
217
218
  - lib/aptible/api/disk_attachment.rb
218
219
  - lib/aptible/api/ephemeral_container.rb
@@ -232,6 +233,7 @@ files:
232
233
  - lib/aptible/api/resource.rb
233
234
  - lib/aptible/api/service.rb
234
235
  - lib/aptible/api/service_definition.rb
236
+ - lib/aptible/api/source.rb
235
237
  - lib/aptible/api/ssh_portal_connection.rb
236
238
  - lib/aptible/api/stack.rb
237
239
  - lib/aptible/api/stack_layer.rb