class Fog::Google::SQL::Operation
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
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 35 def pending? self.state == 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 43 def ready? self.state == 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 51 def reload requires :identity data = collection.get(self.instance, self.identity) merge_attributes(data.attributes) self end