aptible-api 1.5.4 → 1.6.0

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: 37f81ac26053d44e79b5e85304e4622fed77b9bee881817f8a47fbe23c43d597
4
- data.tar.gz: a83fc88bbe26d8cacfc116d8ef98a7de9a97779643c7d86e779e126cd756c1c6
3
+ metadata.gz: beae2c3e4600b20209e7878ab2e926c0c0297ed1b638030fa33f768a4e29ecde
4
+ data.tar.gz: 62385a3d4b0732d8463c17e83507cdae9bec236b27fb02994d02a1adab945a12
5
5
  SHA512:
6
- metadata.gz: 93aa77093f634ba21ad26e8986b9a012e4c8a9a45240593a3c0d2c0f5b09907b80d2ba6ca4754424cfb68db778abbc8d6106c4d2ef322eabf91d7a61a5724fcb
7
- data.tar.gz: d52f7a5bc97e59fdf00d2bf64ed8a7dbd024a61f654b7ed97c01653f73645ee42f9a1a0c9ba11731ec9553abae88b6ef8f5a6cbd87ade67970d7e26d4ed5c90e
6
+ metadata.gz: f8a0272dd75526c2168ee231ed51f570984afcfbbeb34fab5cf9b6aad9a951d4d413853a12c207c0ebf21bd6afeafacceed20a73b9f0032746bd174c29a35eb3
7
+ data.tar.gz: 372587fe6c81f075e93335d4596f63746d10ed1fcf2d38ee48bd8465b46d7f8f7decf35e96457c8786a1ede72d73c55f5ca253f99c40bdd4daee08d500507cdb
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.5.4'.freeze
3
+ VERSION = '1.6.0'.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.0
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-20 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