class Fog::Google::SQL::Operation

An Operation resource contains information about database instance operations such as create, delete, and restart

@see cloud.google.com/sql/docs/mysql/admin-api/v1beta4/operations

Constants

DONE_STATE
PENDING_STATE
RUNNING_STATE
UNKNOWN_STATE

Public Instance Methods

pending?() click to toggle source

Checks if the instance operation is pending

@return [Boolean] True if the operation is pending; False otherwise

# File lib/fog/google/models/sql/operation.rb, line 41
def pending?
  status == PENDING_STATE
end
ready?() click to toggle source

Checks if the instance operation is done

@return [Boolean] True if the operation is done; False otherwise

# File lib/fog/google/models/sql/operation.rb, line 49
def ready?
  status == DONE_STATE
end
reload() click to toggle source

Reloads an instance operation

@return [Fog::Google::SQL::Operation] Instance operation resource

# File lib/fog/google/models/sql/operation.rb, line 57
def reload
  requires :identity

  data = collection.get(identity)
  merge_attributes(data.attributes)
  self
end