Parent

Class/Module Index [+]

Quicksearch

Fog::Compute::Google::Operation

Public Instance Methods

destroy() click to toggle source
# File lib/fog/google/models/compute/operation.rb, line 47
def destroy
  requires :identity

  if zone
    service.delete_zone_operation(zone, identity)
  elsif region
    service.delete_region_operation(region, identity)
  else
    service.delete_global_operation(identity)
  end
  true
end
pending?() click to toggle source
# File lib/fog/google/models/compute/operation.rb, line 35
def pending?
  self.status == PENDING_STATE
end
ready?() click to toggle source
# File lib/fog/google/models/compute/operation.rb, line 31
def ready?
  self.status == DONE_STATE
end
region_name() click to toggle source
# File lib/fog/google/models/compute/operation.rb, line 39
def region_name
  region.nil? ? nil : region.split('/')[-1]
end
reload() click to toggle source
# File lib/fog/google/models/compute/operation.rb, line 60
def reload
  requires :identity

  data = collection.get(identity, zone, region)
  new_attributes = data.attributes
  merge_attributes(new_attributes)
  self
end
zone_name() click to toggle source
# File lib/fog/google/models/compute/operation.rb, line 43
def zone_name
  zone.nil? ? nil : zone.split('/')[-1]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.