Sha256: f7e04018c8131ffe13e303cbf54653b1f4c8b26d99f30b003e5362c55f2eab41

Contents?: true

Size: 607 Bytes

Versions: 11

Compression:

Stored size: 607 Bytes

Contents

require 'fog/core/collection'
require 'fog/google/models/compute/target_http_proxy'

module Fog
  module Compute
    class Google
      class TargetHttpProxies < Fog::Collection
        model Fog::Compute::Google::TargetHttpProxy

        def all(filters={})
          data = service.list_target_http_proxies.body['items'] || []
          load(data)
        end

        def get(identity)
          if target_http_proxy = service.get_target_http_proxy(identity).body
            new(target_http_proxy)
          end
        rescue Fog::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

11 entries across 9 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/lib/fog/google/models/compute/target_http_proxies.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/lib/fog/google/models/compute/target_http_proxies.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/lib/fog/google/models/compute/target_http_proxies.rb
fog-google-0.1.3 lib/fog/google/models/compute/target_http_proxies.rb
fog-google-0.1.2 lib/fog/google/models/compute/target_http_proxies.rb
fog-google-0.1.1 lib/fog/google/models/compute/target_http_proxies.rb
fog-google-0.1.0 lib/fog/google/models/compute/target_http_proxies.rb
fog-google-0.0.9 lib/fog/google/models/compute/target_http_proxies.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/lib/fog/google/models/compute/target_http_proxies.rb
fog-google-0.0.7 lib/fog/google/models/compute/target_http_proxies.rb
fog-google-0.0.6 lib/fog/google/models/compute/target_http_proxies.rb