Sha256: f0dcaba32cc037fbbc76b14a1364f18c99a04349d7f3c5d9c2d4596f95530e23

Contents?: true

Size: 859 Bytes

Versions: 7

Compression:

Stored size: 859 Bytes

Contents

module Aptible
  module Api
    class VpnTunnel < Resource
      belongs_to :stack
      has_many :operations

      field :id
      field :stack_id
      field :handle
      field :psk
      field :phase_1_alg
      field :phase_1_dh_group
      field :phase_1_lifetime
      field :phase_2_alg
      field :phase_2_dh_group
      field :phase_2_lifetime
      field :peer_id
      field :our_gateway
      field :our_networks
      field :peer_gateway
      field :peer_networks
      field :key_exchange
      field :auto
      field :dpd_action
      field :status
      field :backend
      field :state
      field :tunnel_status
      field :tunnel_attributes
      field :deleted_at, type: Time
      field :created_at, type: Time
      field :updated_at, type: Time

      def provisioned?
        status == 'provisioned'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aptible-api-1.6.5 lib/aptible/api/vpn_tunnel.rb
aptible-api-1.6.4 lib/aptible/api/vpn_tunnel.rb
aptible-api-1.6.3 lib/aptible/api/vpn_tunnel.rb
aptible-api-1.6.2 lib/aptible/api/vpn_tunnel.rb
aptible-api-1.6.1 lib/aptible/api/vpn_tunnel.rb
aptible-api-1.6.0 lib/aptible/api/vpn_tunnel.rb
aptible-api-1.5.4 lib/aptible/api/vpn_tunnel.rb