Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Google::Network

Represents a Network resource

@see developers.google.com/compute/docs/reference/latest/networks

Public Instance Methods

destroy(async=true) click to toggle source
# File lib/fog/google/models/compute/network.rb, line 30
def destroy(async=true)
  requires :identity

  data = service.delete_network(identity)
  operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body['name'])
  unless async
    operation.wait_for { ready? }
  end
  operation
end
save() click to toggle source
# File lib/fog/google/models/compute/network.rb, line 21
def save
  requires :identity, :ipv4_range

  data = service.insert_network(identity, self.ipv4_range, self.attributes)
  operation = Fog::Compute::Google::Operations.new(:service => service).get(data.body['name'])
  operation.wait_for { !pending? }
  reload
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.