Sha256: 5cfa94a4ceb1027a45021aa7c4da0a962804c693a79a533423c5adfab3a0edca

Contents?: true

Size: 970 Bytes

Versions: 85

Compression:

Stored size: 970 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class TrustedNetworkGroup < Fog::Ecloud::Model
        identity :href

        attribute :name, :aliases => :Name
        attribute :type, :aliases => :Type
        attribute :other_links, :aliases => :Links
        attribute :hosts, :aliases => :Hosts

        def internet_services
          @internet_services ||= Fog::Compute::Ecloud::InternetServices.new(:service => service, :href => href)
        end

        def edit(options)
          options[:uri] = href
          data = service.trusted_network_groups_edit(options).body
          task = Fog::Compute::Ecloud::Tasks.new(:service => service, :href => data[:href])[0]
        end

        def delete
          data = service.trusted_network_groups_delete(href).body
          task = Fog::Compute::Ecloud::Tasks.new(:service => service, :href => data[:href])[0]
        end

        def id
          href.scan(/\d+/)[0]
        end
      end
    end
  end
end

Version data entries

85 entries across 85 versions & 10 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/models/trusted_network_group.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/ecloud/models/compute/trusted_network_group.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/models/trusted_network_group.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/models/trusted_network_group.rb
fog-ecloud-0.0.2 lib/fog/ecloud/models/compute/trusted_network_group.rb
fog-ecloud-0.0.1 lib/fog/ecloud/models/compute/trusted_network_group.rb
fog-1.25.0 lib/fog/ecloud/models/compute/trusted_network_group.rb
nsidc-fog-1.24.1 lib/fog/ecloud/models/compute/trusted_network_group.rb
fog-1.24.0 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.11 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.10 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.9 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.8 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.7 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.6 lib/fog/ecloud/models/compute/trusted_network_group.rb
fog-1.23.0 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.4 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.3 lib/fog/ecloud/models/compute/trusted_network_group.rb
ns-fog-1.22.2 lib/fog/ecloud/models/compute/trusted_network_group.rb
fog-1.22.1 lib/fog/ecloud/models/compute/trusted_network_group.rb