client/operations.go
func (op *operation) Refresh() error {
	// Get the current version of the operation
	newOp, _, err := op.r.GetOperation(op.ID)
	if err != nil {
		return err
	}

	// Update the operation struct
	op.Operation = *newOp

	return nil
}
func (op *operation) Refresh() error {
	// Get the current version of the operation
	newOp, _, err := op.r.GetOperation(op.ID)
	if err != nil {
		return err
	}

	// Update the operation struct
	op.Operation = *newOp

	return nil
}
func ( op * operation ) Refresh ( ) error { // Get the current version of the operation newOp , _ , err := op . r . GetOperation ( op . ID ) if err != nil { return err } // Update the operation struct op . Operation = * newOp return nil }
// Refresh pulls the current version of the operation and updates the struct
Refresh pulls the current version of the operation and updates the struct