aptible-api 1.5.0 → 1.5.1

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: 7e52258f6e6d7e604f0b7dbf04a9dada403ddfb8aa2ee6aeb36f45023ca02e62
4
- data.tar.gz: bda2837e7e31c2f1c037acff578e8dbb2bd3fba72a15bbff6da69535087bfd38
3
+ metadata.gz: d1b4a3502eb2f1f93ab9a5290e27b5e63c51646eecf41354e2963551d8039e1e
4
+ data.tar.gz: 2e1244b3ebe0dff92eae7073ec76291d3831a23bfebc477ca36dd40fd5608a77
5
5
  SHA512:
6
- metadata.gz: 0a35dc653690fb17ebe760415f6cb5da30403c8606043830dd9c14778b629dd8ed4166fcf38035492cebe5dee92c8022dff9e3b29ed4e7dea68f4ac343b202b6
7
- data.tar.gz: 644a9dff14d18fad34ce25f46c3dad7745e851de2b4af4c2466f4503d824c7abd36d3e38870fa3abc58dde49467577220bb8f1024ff14ec3269d84b68dbd2a92
6
+ metadata.gz: e440f02e7aab218e69a9dfff7cc9b565d325ea223f9d526166219862176d7e83e8850538e9fac07101adf909b941c41b2c5bb1578c1a53e48a4db71b12d71a1d
7
+ data.tar.gz: fb1434f01b705b0ceab85e947892a27531bcbd9a3706e6010e58254de61a4efc467f47475a2dd1e41861b4e0d9b9132a132619b5ea78e6828dafc60870b331b7
@@ -51,3 +51,4 @@ require 'aptible/api/plan'
51
51
  require 'aptible/api/persistent_disk'
52
52
  require 'aptible/api/disk_attachment'
53
53
  require 'aptible/api/maintenance'
54
+ require 'aptible/api/vpn_tunnel'
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Api
3
- VERSION = '1.5.0'.freeze
3
+ VERSION = '1.5.1'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,35 @@
1
+ module Aptible
2
+ module Api
3
+ class VpnTunnel < Resource
4
+ belongs_to :stack
5
+ has_many :operations
6
+
7
+ field :id
8
+ field :stack_id
9
+ field :handle
10
+ field :psk
11
+ field :phase_1_alg
12
+ field :phase_1_dh_group
13
+ field :phase_1_lifetime
14
+ field :phase_2_alg
15
+ field :phase_2_dh_group
16
+ field :phase_2_lifetime
17
+ field :peer_id
18
+ field :our_gateway
19
+ field :our_networks
20
+ field :peer_gateway
21
+ field :peer_networks
22
+ field :key_exchange
23
+ field :auto
24
+ field :status
25
+ field :backend
26
+ field :deleted_at, type: Time
27
+ field :created_at, type: Time
28
+ field :updated_at, type: Time
29
+
30
+ def provisioned?
31
+ status == 'provisioned'
32
+ end
33
+ end
34
+ end
35
+ 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.0
4
+ version: 1.5.1
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: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aptible-auth
@@ -237,6 +237,7 @@ files:
237
237
  - lib/aptible/api/stack_layer.rb
238
238
  - lib/aptible/api/version.rb
239
239
  - lib/aptible/api/vhost.rb
240
+ - lib/aptible/api/vpn_tunnel.rb
240
241
  - spec/aptible/api/agent_spec.rb
241
242
  - spec/aptible/api/operation_spec.rb
242
243
  - spec/aptible/api/resource_spec.rb
@@ -247,7 +248,7 @@ homepage: https://github.com/aptible/aptible-api-ruby
247
248
  licenses:
248
249
  - MIT
249
250
  metadata: {}
250
- post_install_message:
251
+ post_install_message:
251
252
  rdoc_options: []
252
253
  require_paths:
253
254
  - lib
@@ -263,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
264
  version: '0'
264
265
  requirements: []
265
266
  rubygems_version: 3.0.3.1
266
- signing_key:
267
+ signing_key:
267
268
  specification_version: 4
268
269
  summary: Ruby client for api.aptible.com
269
270
  test_files: