Sha256: 978c164cb2d4f31cb008a0c86ca685c33512c409ca875bdfe91a7369958203c6

Contents?: true

Size: 1.6 KB

Versions: 48

Compression:

Stored size: 1.6 KB

Contents

require 'fog/openstack/models/model'

module Fog
  module Network
    class OpenStack
      class IpsecSiteConnection < Fog::OpenStack::Model
        identity :id

        attribute :name
        attribute :description
        attribute :status
        attribute :admin_state_up
        attribute :tenant_id
        attribute :vpnservice_id
        attribute :ikepolicy_id
        attribute :ipsecpolicy_id
        attribute :peer_address
        attribute :peer_id
        attribute :peer_cidrs
        attribute :psk
        attribute :mtu
        attribute :dpd
        attribute :initiator

        def create
          requires :name, :vpnservice_id, :ikepolicy_id, :ipsecpolicy_id,
                   :peer_address, :peer_id, :peer_cidrs, :psk
          merge_attributes(service.create_ipsec_site_connection(vpnservice_id,
                                                                ikepolicy_id,
                                                                ipsecpolicy_id,
                                                                attributes).body['ipsec_site_connection'])
          self
        end

        def update
          requires :id, :name, :vpnservice_id, :ikepolicy_id, :ipsecpolicy_id,
                   :peer_address, :peer_id, :peer_cidrs, :psk
          merge_attributes(service.update_ipsec_site_connection(id,
                                                                attributes).body['ipsec_site_connection'])
          self
        end

        def destroy
          requires :id
          service.delete_ipsec_site_connection(id)
          true
        end
      end
    end
  end
end

Version data entries

48 entries across 46 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.10 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.1.30 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.1.29 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.9 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.1.28 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.8 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.7 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.6 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.5 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.4 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.3 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.2 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.3.0 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.2.4 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.2.3 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.2.2 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.2.1 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-openstack-0.2.0 lib/fog/network/openstack/models/ipsec_site_connection.rb
fog-zj-0.1.28 lib/fog/network/openstack/models/ipsec_site_connection.rb