An Operation resource contains information about database instance operations such as create, delete, and restart
@see developers.google.com/cloud-sql/docs/admin-api/v1beta3/operations
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 35 def pending? self.state == PENDING_STATE end
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 43 def ready? self.state == DONE_STATE end
Reloads an instance operation
@return [Fog::Google::SQL::Operation] Instance operation resource
# File lib/fog/google/models/sql/operation.rb, line 51 def reload requires :identity data = collection.get(self.instance, self.identity) merge_attributes(data.attributes) self end