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